-
Notifications
You must be signed in to change notification settings - Fork 9.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
EIP association issues with lifecycle create_before_destroy #6758
Comments
Quick update here. I was able to get this working by removing the aws_eip_association and doing the association directly in aws_eip:
Still think original config is valid and should probably allow a soft fail when it loses its association. This would allow it to still succeed when an association is lost. For now the workaround is fine for me, but i was planing to move EIP creation out of this module and only perform the association. |
I'm facing a similar issue. My config is simple:
|
Any chance of this getting addressed? It seems like a valid use case, and the current implementation can lead to a Terraform state being totally broken/unusable (I’m currently dealing with this). |
Same here utilizing Terraform v0.7.2 as well. |
Hi all Apologies this is causing issues for you. I have just managed to fix this error up - I am currently running tests and will submit a PR. It will be released as part of Terraform 0.7.5 Sorry it has taken so long to get to the error! Paul |
Fixes #6758 We used to throw an error when this was the case - we should refresh from state so the association can be recreated ``` % make testacc TEST=./builtin/providers/aws TESTARGS='-run=TestAccAWSEIPAssociation_' ==> Checking that code complies with gofmt requirements... go generate $(go list ./... | grep -v /terraform/vendor/) 2016/09/26 16:42:37 Generated command/internal_plugin_list.go TF_ACC=1 go test ./builtin/providers/aws -v -run=TestAccAWSEIPAssociation_ -timeout 120m === RUN TestAccAWSEIPAssociation_basic --- PASS: TestAccAWSEIPAssociation_basic (272.92s) === RUN TestAccAWSEIPAssociation_disappears --- PASS: TestAccAWSEIPAssociation_disappears (119.62s) PASS ok github.com/hashicorp/terraform/builtin/providers/aws392.559s ```
Strange i m still getting this on v 0.10.3
and i get
|
Hi on Terraform v0.10.7, Config:
Actions:
Problem:When allocating the ip under aws_eip_association.eip_assoc_XXX2, it doesn't record the aws_eip_association.eip_assoc_XXX one as been deleted. Hence when I destroy the XXX instance, it doesn't find the aws_eip_association.eip_assoc_XXX and breaks. Hope that is clear enough... |
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 have 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. |
using Terraform v0.6.16 and having issues with EIP associations when used with lifecycle create_before_destroy
Here is the basic config:
We are seeing the following error:
it seems it loses track of the eip association because it associates it and then tries to destroy the old association. At this point terraform state is completely broken. It is unable to refresh or do anything, displaying the following error:
* aws_eip_association.eip_assoc: Unable to find EIP Association: eipassoc-1c60627a
The text was updated successfully, but these errors were encountered: