Граф коммитов

460 Коммитов

Автор SHA1 Сообщение Дата
magodo 7623995320 Update tfadd to make azapi export more useful & UI adpotion for azapi 2023-10-25 13:57:16 +08:00
Steven 1b065fd6f4
Merge pull request #464 from magodo/readme_for_azapi
Update provider version (and dev-provider) handlings for azapi export
2023-10-24 11:32:27 -07:00
magodo 7ad15b2f84 Update provider-version/dev-provider handling for azapi 2023-10-24 11:12:16 +08:00
magodo a26138a0f2 restore makefile 2023-10-24 10:04:52 +08:00
magodo 0ea5ec0de8 Update readme to mention that both azurerm and azapi are supported 2023-10-24 09:58:46 +08:00
magodo 74b1daf4e5
Update deps to support azurerm provider v3.77.0 (#463) 2023-10-24 09:52:58 +08:00
Xu Wu a24308b054
feature: add support for exporting to `azapi` provider (#462)
* add azapi support

* remove azurerm config when exporting to azapi

* code format and remove GenTFResources

* set only corresponding provider in provider config file

* format
2023-10-20 10:18:23 +08:00
magodo eb789a40d2
Stick on gosec v2.16.0 (#456)
* Stick on gosec v2.16.0

The now latest version v2.17.0 will cause error as below:

    Golang errors in file: []:

      > [line 0 : column 0] - error obtaining VCS status: exit status 128
            Use -buildvcs=false to disable VCS stamping.

      > [line 0 : column 0] - error obtaining VCS status: exit status 128
            Use -buildvcs=false to disable VCS stamping.

      > [line 0 : column 0] - error obtaining VCS status: exit status 128
            Use -buildvcs=false to disable VCS stamping.

      > [line 0 : column 0] - error obtaining VCS status: exit status 128
            Use -buildvcs=false to disable VCS stamping.

This probably due to the fact that 2.17.0 updated its Go version, which might conflicts with the github action OS installed version.

* fix lint warnings
2023-09-25 17:21:15 +08:00
magodo b3500d6242
Update deps to support v3.74.0 (#455) 2023-09-25 13:52:57 +08:00
guangwu 8c4f7f9c43
fix: should typo (#447) 2023-08-28 09:21:22 +08:00
magodo 36ad82b534
Avoid using 3rd-party Docker images: Build Linux packages directly on the VM && Skip Linux package download verification (#439)
* Avoid using 3rd-party Docker images: Build Linux packages directly on the VM && Skip Linux package download verification

* update gem setup

* update
2023-08-09 08:21:16 +08:00
magodo 6b91f93f0a
New auth method: Fedorated Workload Identity (a.k.a OIDC) (#438)
* Auth: Support OIDC

* Fix ut
2023-07-26 08:21:33 +08:00
magodo dabd9634a0
Update aztft to statically build id for `azurerm_role_definition` (#437)
* Update aztft to statically build id for `azurerm_role_definition`

* tidy

* update
2023-07-25 14:03:49 +08:00
magodo c690456672
Update aztft to fix a panic when querying unknown resource types (#434) 2023-07-18 11:04:22 +08:00
magodo a590751bd2
Pipeline update (#431)
* update pipeline

* update

* update again

* update3

* update4

* Update container cmd
2023-07-17 10:45:16 +08:00
magodo 6b2ef2a38f
Update dep for provider v3.65.0 (#430) 2023-07-14 11:37:10 +08:00
magodo 1a231e28d1
Import block stop generate for skipped resources (#428) 2023-07-11 14:59:21 +08:00
magodo 86a5b1f2ac
Update aztft to move azurerm_virtual_machine out of skip list (#427) 2023-07-11 14:58:41 +08:00
magodo 13fe97e0cd
Update aztft to allow VM resolving fallback to `azurerm_virtual_machine` (#425) 2023-07-10 10:06:09 +08:00
magodo ebf167e135
CLI: Expose `--plain-ui` to be used in environment that has no /dev/tty (#423) 2023-07-10 09:46:29 +08:00
magodo d581f469e5
Update aztft to support populate logic app workflow's prop-like resources (#421) 2023-07-04 14:35:12 +08:00
magodo 159dc709ae
Update dep for provider v3.63.0 (#419)
* Update dep for provider v3.63.0

* Update
2023-07-03 11:10:15 +08:00
Steven 4e7b7ef05c
Add youtube video, remove previous demo video (#414) 2023-06-16 08:19:52 +08:00
Steven 6f0926b63b
Merge pull request #398 from magodo/import_block
Resource mapping file will now be generated together with the `import.tf` that is the TF plannable import blocks
2023-06-15 09:33:47 -07:00
Kodai Sakabe 86758f48a7
Update README.md (#411) 2023-06-06 12:56:26 +08:00
magodo ce76e98b42 actually it is v1.5.0 2023-05-25 09:43:38 +08:00
magodo f51db41a2c
PMC migration to vNext (#403)
* PMC migration

* only try one repo

* Update

* Upgrade pyOpenSSL

* debug

* use cli to get key vault certificate

* update

* continue using keyvautl task

* typo

* Enable other deb distro/release

* Enable for the rhel8-amd64

* Enable other rpm distro/release
2023-05-24 15:28:08 +08:00
magodo d2a1082373 Revert "Pipeline: PMC migration"
This reverts commit ad48ad02c4.
2023-05-19 17:16:57 +08:00
magodo 311e453a15 Revert "Update ADO"
This reverts commit 768c4160b4.
2023-05-19 17:16:52 +08:00
magodo 768c4160b4 Update ADO 2023-05-19 17:04:55 +08:00
magodo ad48ad02c4 Pipeline: PMC migration 2023-05-19 16:51:59 +08:00
magodo fc6e1ff783
Remove replacement (#400) 2023-05-19 10:04:57 +08:00
magodo e6ef980b95
Update azlist to eliminate child resource listing for problematic resource types (#399) 2023-05-18 18:31:25 +08:00
magodo 791fefb2a1 Only generate import.tf for tf >= v1.6.0 2023-05-17 10:13:12 +08:00
magodo 4d26f5fe0a Resource mapping file will now be generated together with the `import.tf` that is the TF plannable import blocks 2023-05-16 11:48:10 +08:00
Steven 96381ec1ca
Updating README.md (#397) 2023-05-15 10:32:31 +08:00
magodo 859340d9c2
Update dep for provider v3.56.0 (#396) 2023-05-12 16:14:02 +08:00
magodo 852f37db2b
Telemetry collect subscription ID (#389)
* Collect subscription id in telemetry

* Separating the error trace to 2, so that we only need to redacate the details

* Split aztfexport end error to 2

* Fix a minor bug in the effective cli arg
2023-04-25 09:00:00 +08:00
magodo 66596c4e4e
New CLI options: `--use-environment-cred`, `--use-managed-identiy-cred` and `--use-azure-cli-cred` to allow users to explicitly choose auth method instead of the default auth chain (#390)
* New CLI options: `--use-environment-cred`, `--use-managed-identiy-cred` and `--use-azure-cli-cred` to allow users to explicitly choose auth method instead of the default auth chain

* test cases for the new cli options
2023-04-17 14:11:27 +08:00
magodo 42b7b4fd55
Add cloud env section in readme (#388) 2023-04-11 10:03:43 +08:00
magodo 846cd37105
Fix a bug during provider config setting (#382)
* Fix a bug in provider config construction

* Fix a bug in provider config construction
2023-03-29 15:05:41 +08:00
magodo b794b083c7
Integrate with terraform-client-go for hcl only mode to eliminate `terraform` binary (#381)
* Integrate with terraform-client-go for hcl only mode to eliminate `terraform` binary

Integrate with terraform-client-go for hcl only mode to eliminate `terraform` binary. This improves the performance (quicker speed and lower footprint) of importing.

To use it, users have to explicitly specify a new hidden flag (`--tfclient-plugin-go`). This flag is hidden since it is not supposed for CLI users to use, but is meant to be used by module users who wants to get the benefit of performance improvement.
2023-03-29 10:03:52 +08:00
magodo 19b00eca4e
New option: "--env" (#378) 2023-03-15 14:30:17 +08:00
magodo eb40000f1d
Add test case and CLI trace for the newly added flag: --provider-version (#377) 2023-03-15 14:30:05 +08:00
magodo 890a944117
New option: `--provider-version` to overwrite the provider version used for importing (other than using the bound version) (#376)
* New option: `--provider-version` to overwrite the provider version used for importing (other than using the bound version)

* Determine the provider version constraint under used if not specified
2023-03-14 09:41:12 +08:00
magodo 40c9d05519
Add trace for effective CLI being issued (with non-interesting/sensitive flags removed) (#374) 2023-03-14 09:40:58 +08:00
magodo 9ed90aea08
Extend `--append` to remote backend, and the backend type now honors the existing type in append mode (#373)
* Extend `--append` to remote backend, and the backend type now honors the existing type in append mode

* Pass CI

* Update readme
2023-03-09 09:34:49 +08:00
Steven a70eab5274
Merge pull request #370 from magodo/rename
Rename command and brand name
2023-03-06 10:44:40 -08:00
magodo 9deea3e090
readme 2023-03-06 14:09:24 +08:00
magodo 3a925ebd99
rename in the ui title 2023-03-06 14:05:13 +08:00