You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request
Please do not leave "+1" or other comments that do not add relevant new information or questions, they generate extra noise for issue followers and do not help prioritize the request
If you are interested in working on this issue or have submitted a pull request, please leave a comment
If I run cdktf diff or cdktf deploy, it either hangs forever, produces the error shown earlier or shows wrong diff results (wanting to delete resources of other environments).
The only way to make it work is to do rm -rf cdktf.out. If I always delete the out folder then it works so it has to do with its existence. This also seems to be universal across every type of resource. Right now my script just runs rm -rf cdktf.out and it works well that way.
Important Factoids
References
#0000
The text was updated successfully, but these errors were encountered:
I think this is the same as #398; I could not reproduce that one, if it's fundamentally different please let me know and I'll see if this is still an issue 👍
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
cdktf & Language Versions
Terraform v0.12.29
"cdktf": "0.0.17",
"constructs": "^3.0.4"
"cdktf-cli": "0.0.17",
Affected Resource(s)
Debug Output
Expected Behavior
diff & deploy should work normally.
Actual Behavior
Sometimes cdktf hangs forever at
initializing <name>...
and sometimes I get:And sometimes different states get entangled so that diffing a dev environment will want to destroy staging and prod resources.
Steps to Reproduce
I am using env variables to parametrize cdktf. I have ENV set to dev/staging/prod. Each env specifies a diff remote state:
I also have two stacks:
app
andbuilds
stacks. They both have the same env specific parameters, andbuilds
stack has this:If I run cdktf diff or cdktf deploy, it either hangs forever, produces the error shown earlier or shows wrong diff results (wanting to delete resources of other environments).
The only way to make it work is to do
rm -rf cdktf.out
. If I always delete theout
folder then it works so it has to do with its existence. This also seems to be universal across every type of resource. Right now my script just runsrm -rf cdktf.out
and it works well that way.Important Factoids
References
The text was updated successfully, but these errors were encountered: