Cloud Provider Limitations
We've listed the known limitations related to specific cloud providers when working with StackGen. These limitations stem from the underlying cloud providers and are not resolvable within StackGen itself.
AWS
data.archive_file
: File Deleted When Path Not Found
data.archive_file: File Deleted When Path Not Found
Summary: Terraform may attempt to delete the data.archive_file
resource if the file path is not valid after code generation.
Cause: When the IaC is downloaded, the file path specified in the data.archive_file
block may no longer point to a valid file in the local environment. Terraform detects this as a missing file and flags it for deletion during plan
.
Workaround: After downloading the generated IaC, update the filename path in the data.archive_file
block to point to a valid local file. This ensures Terraform recognizes the resource correctly and avoids deletion.
aws_mq_broker
: Password Field Cannot Be Retrieved
aws_mq_broker: Password Field Cannot Be Retrieved
Summary: Terraform plan will fail because AWS does not return the password field for aws_mq_broker
.
Cause: AWS security constraints prevent the retrieval of passwords for existing managed message brokers. When StackGen attempts to infer the state or run a plan, the missing password field triggers an error.
Workaround: Manually re-enter the password in your Terraform configuration if you need to re-create or update the resource. The password cannot be recovered from AWS once the broker is created.