Cloud/TerraformAzTfExport
- Export from Azure and create a main.tf and terraform.tfstate
Need env with Terraform and the AzTfExport in it
docker run -it -v $PWD:/root/tf diepes/debug
- Install latest terraform
tfswitch
Run script
export AZTFEXPORT_RG="<RG>" export AZTFEXPORT_SUBSCRIPTION_ID="<>-<>-<>-<>-<>" # TWG Shared Services az account set --subscription "$AZTFEXPORT_SUBSCRIPTION_ID" aztfexport resource-group \ --output-dir="aztf_out" \ --provider-version="3.99.0" \ --non-interactive="false" \ --generate-mapping-file="false" \ --generate-import-block="false" \ "$AZTFEXPORT_RG"
- [w] - write into --output-dir
- Python rename script in debug container