lifecycle: replaceTriggeredBy should not be a string interpolation #3532
Labels
bug/has-workaround
A bug with a workaround (may not be elegant)
bug
Something isn't working
cdktf
priority/important-longterm
Medium priority, to be worked on within the following 1-2 business quarters.
Expected Behavior
When a value is provided for lifecycle.replaceTriggeredBy, it should not use string interpolation in the final terraform code.
For example:
Actual Behavior
Currently, it creates a string interpolation
For example:
This throws an error:
Steps to Reproduce
Create a resource with replaceTriggeredBy
I got the error while following the steps for creating firebase rules, which requires replaceTriggeredBy: docs
Versions
language: typescript
cdktf-cli: 0.20.4
node: v20.10.0
cdktf: 0.20.4
constructs: 10.3.0
jsii: null
terraform: 1.7.4
arch: x64
os: MacOS Monterey
Providers
No response
Gist
No response
Possible Solutions
No response
Workarounds
Currently, it can be solved by manually constructing it, as noted at: issue comment
Anything Else?
No response
References
replace_triggered_by
lifecycle #2082Help Wanted
Community Note
The text was updated successfully, but these errors were encountered: