Closed a0s closed 2 years ago
I looked into it: Backends can not take references (named values) in their configuration, Terraform does not support this.
Closing this as there is nothing we can do about this from the CDK side :)
I'm going to lock this issue because it has been closed for 30 days. This helps our maintainers find and focus on the active issues. If you've found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.
Community Note
I am trying to migrate local state to s3 that is in aws account with role assuming access.
After cdktf synth it leaves link in backend block in
cdk.tf.json
:Then
terraform -chdir=./cdktf.out/stacks/STACK2 init -migrate-state
fails withInvalidBucketName: The specified bucket is not valid
But It works ok when
bucket: "is_a_static_string"
.cdktf & Language Versions
Debug Output
Expected Behavior
It should migrate state to s3
Actual Behavior
Steps to Reproduce