Closed sidlinux22 closed 4 months ago
Have the same issue. Seems to be a duplicate of #3532
Closing in favor of #3532
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.
Expected Behavior
cdktf deploy
should run without errors, properly recognizing the replace_triggered_by lifecycle configuration when using a dynamic value.Actual Behavior
I'm encountering the following errors when running
terraform init
cdktf deploy
This issue occurs only when using the replaceTriggeredBy lifecycle property with a dynamic value. It works fine if a static value is provided, such as replaceTriggeredBy: ["aws_vpc.VpcConstruct_Vpc_test2-cdktf-app-vpc_576D1A6F.id"]. The error seems to be caused by the ${} syntax when using dynamic values.
Code Snippet
Here is the relevant code snippet:
cdk.tf.json Snippet
Steps to Reproduce
Versions
Providers
provider-aws@^19.12.0
Gist
No response
Possible Solutions
No response
Workarounds
No response
Anything Else?
No response
References
No response
Help Wanted
Community Note