Releases: Azure/aztfexport
v0.15.0
0.15.0 (Aug 19, 2024)
ENHANCEMENTS
-
Authentication related options now pass through to the provider as the provider configuration (#546)
The new options (or existing flags but now passed to providers) are listed below:
env
tenant-id
auxiliary-tenant-ids
client-id
client-id-file-path
client-certificate
client-certificate-path
client-certificate-password
client-secret
client-secret-file-path
oidc-request-token
oidc-request-url
oidc-token
oidc-token-file-path
use-managed-identity-cred
(defaults to false)use-azure-cli-cred
(defaults to true)use-oidc-cred
(defaults to false)
-
New option:
-mask-sensitive
to allow masking sensitive attributes (#551) -
Resource mode supports multiple resources (#552)
-
Behavior change of
--overwrite
to avoid deleting user files (#553)
SECURITY ISSUES
- Update github.com/hashicorp/hc-install to v0.7.0 to solve CVE issues (#538)
v0.14.2
v0.14.1
0.14.1 (Apr 16, 2024)
BUG FIXES
- Fix
rg
mode not export empty resource group (#500) - Fix cross RP parent-child dependency (#505)
- Update
github.com/hashicorp/terraform-exec
: v0.17.2 -> v0.20.0 to fix an issue relating to terraform cloud (#508) - New option:
--generate-import-block
to allow users to select whether to generate theimport.tf
after exporting. This fixes appending to a submodule fails due to import block can only resides in the root module (#516) - Update
aztft
andtfadd
for terraform-provider-azurerm v3.99.0, which fixes import issues reside in the upstream provider (#517)
v0.14.0
0.14.0 (Nov 13, 2023)
ENHANCEMENTS
- New auth method: Fedorated Workload Identity (a.k.a OIDC) (#438)
- New option
--provider-name=[azurerm|azapi]
to export to different providers, eitherazurerm
(default), orazapi
(new) (#462, #464, #465) resource-group
andquery
modes add new option:--include-role-assignment
for exporting role assignments directly assigned to the exported resources (#468)query
mode add new option--include-resource-group
for exporting the resource group(s) containing the exported resources (#468)- Support
azurerm
provider v3.77.0 (#463)
BUG FIXES
- Update aztft to fix the id construction for
azurerm_role_definition
(#437)
v0.13.1
v0.13.0
0.13.0 (Jul 17, 2023)
ENHANCEMENTS
- Resource mapping file (i.e.
aztfexportResourceMapping.json
) will now be generated together with theimport.tf
that is the Terraform official import blocks, as long as the version ofterraform
being used is v1.5.0 or later (#398) - New option:
--plain-ui
which can be used together with--non-interactive
for environment that has no/dev/tty
available (#423) - Support azurerm provider v3.65.0 (#430)
BUG FIXES
v0.12.0
0.12.0 (May 24, 2023)
FEATURES
- Integrate with
terraform-client-go
for "HCL only" mode that replaces theterraform
binary, for better performance and lower resource consumption (#381)
ENHANCEMENTS
- New option:
--provider-version
to overwrite the provider version used for importing (other than using the bound version) (#376) - New option:
--env
to specify a different environment rather than public cloud (#378) - 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) - Support azurerm provider v3.56.0 (#396)
BUG FIXES
- Extend
--append
to remote backend, and the backend type now honors the existing type in append mode (#373)
v0.11.0
0.11.0 (Mar 7, 2023)
This release only contains the RP #370 that renames the tool from aztfy
to aztfexport
. This also brings some other breaking changes, including:
- Resource mapping file name: aztfyResourceMapping.json -> aztfexportResourceMapping.json
- Skipped resource list file name: aztfySkippedResources.txt -> aztfexportSkippedResources.txt
- Config directory name: .aztfy -> .aztfexport
Meanwhile, the package name of this tool in the package manager of your choice is now also renamed to aztfexport
.
v0.10.0
0.10.0 (Mar 3, 2023)
BREAKING CHANGES
aztfy
now depends on a pre-installedterraform
executable that is located at$PATH
. Also, the directory under UserCacheDir/aztfy used for caching the downloaded terraform is now not needed and can be safely deleted. (#347)aztfy
now by default will collect telemetry for identifying issues and areas for improvement (see https://github.com/Azure/aztfy#config). Users can opt out by runningaztfy config set telemetry_enabled false
(#360)- Create the output directory (specified by
-o
) if not exists (#364)
ENHANCEMENTS:
- New option
--log-level
(#317) - New option
--module-path
to support appending to nested module (#322) - Interactive mode keybinding del be used for reverting skip (#326)
- Performance improvement:
- Parallelize resource mapping (aztft), discovering (azlist) (#340) and initialization for importing (#341)
- When there is no base state given, state merging will not use
tfmerge
(#347) - Only run
terraform show
once when converting from state to config (#349) - Avoid
terraform init
for import workspaces when--dev-provider
is specified (#350)
- New command
config [get|set|show]
to manage aztfy config file, which is under $HOME/.aztfy/config.json (#360) map
mode allows to reference a resource mapping file in the output directory even when--overwrite
is specified. Previously, that resource mapping file will also be cleaned during overwriting (#361)- Keep resource mapping file and skipped resource file in hcl only mode (#365)
- Supporting terraform-provider-azurerm v3.46.0 (#369)
BUG FIXES:
- Don't push state if there is no state to push (#327)
- Keep resource order in the config as is in the import list (#329)
- Fix
--append
leaks to be used together with--hcl-only
in interactive mode (#363)
OTHERS:
v0.9.0
0.9.0 (Nov 16, 2022)
ENHANCEMENTS:
- Importing resources in parallel - rather than in serial. The default parallelism is set to 10. Users can change it via the option
--parallelism
(#260) - Supports Terraform AzureRM provider v3.31.0 (#302)
BUG FIXES:
- Handle multiple azure resources having the same Terraform IDs when resolving Terraform dependencies by adding a comment containing all the candidates and let users to choose (#251)
- Fix panic in azlist (#262)
- Avoid using
os.Rename()
to move files as it doesn't work for Windows when moving files across drives (#269) - In resource mode, handle Terraform address conflicts on multiple same typed prop-like resources (previously we incorrectly assume there will be only one such resource) (#281)
- Fix some incorrect import specs in aztft (#294, #299, #300)