-
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
Tags are not applied, instances are not placed in ELB #477
Comments
Can you narrow down "at random times" to a repro case? It is hard for us to diagnose the issue properly without a set of steps to repro it. Even if the set of steps sometimes works and sometimes doesn't, it would help. |
@mitchellh Thanks a lot, ya'll seriously rock. Hopefully, it's a moot point now, but I'm trying to get some more color on this. If it helps, all I'm doing is applying an unchanged plan with a new ami id. My plan looks like this:
More times than not, the tags aren't applied and the instances don't get placed in the ELB. Either way, thanks again and I'll try a build from master. |
Thanks for the config. If you still see the issue with 0.3.1 let me know. |
@mitchellh The issue with the tags seems to be fixed, but the instances are still not being placed into the ELB. |
Great! I'll reopen for the ELB |
I was just asking in the mailing list about how to ensure resources are created before the old ones are destroyed and @pearkes pointed me to the
Parenthetically, I can just use count = 2 to create two instances instead of creating two separate resource blocks for the instances, right? |
…tive for making the ELB load the instances. There is already an issue open regarding this problem (hashicorp/terraform#477)
I encountered this exact issue while mimicking some of @levinotik's work. I managed a workaround by always renaming the ELB to force it to rebuild. For anyone in need, this is how I did it: In my shell script, I create a timestamp to append to the name and pass it in as a var: timestamp=`date +"%Y%m%d%H%M%S"`
ELB_NAME=elb-${timestamp}
./terraform/terraform apply \
-var "elb_name=${ELB_NAME}" Then of course, I add it to my variables
|
Hey folks - I'm making a sweep of old issues. We change up tags and ELB instance registration on a near-daily basis in our own environments, and we've seen no troubles in recent versions of Terraform. If any of you are still experiencing issues, would you mind filing a fresh issue w/ repro steps? Thanks! |
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. |
I'm using binaries built directly from master and it seems that at random times, tags are not applied to AWS instances and instances are not placed in ELBs. I experienced this same behavior with 0.2.2 as well as 0.3.0
The text was updated successfully, but these errors were encountered: