-
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
Error Retrieving EIP #122
Comments
I imagine your configuration needs to have the EIP has 2 unique IDs, depending on how you're using them. It's pretty frustrating, but to use it inside of a vpc, you set the attribute to true as above and it will use the allocation ID. If you're using EC2 Classic EIPs, it uses the IP address as the unique ID. Can you try that or post your configuration? Thanks! |
Thanks @pearkes ! I just tried adding `vpc = "true"`` to my EIP resource - but no luck. Here's my config:
Any ideas? |
@pearkes is this resolved? Really wanting to use Terraform on an upcoming project! |
This should be fixed now. If you want to give it a try from master you're welcome to. |
thanks @mitchellh ! What's the best way to update Terraform? Do I need to build it myself? I don't have Go or any of it's deps |
@hhff The README contains info on how to compile, should be descriptive enough (towards the bottom) |
kk. Will let you know when i get around to trying it out. Big love! |
Just built the latest terraform from master to try and work around this, but I still seem to be hitting it. Worked through the examples, created an elastic IP, tried to destroy but getting the exact same error as above. I can't do a "terraform refresh", a " terraform plan -destroy -out=terraform.tfplan" or "terraform apply" after deleting my resources from my config file. All commands give me a: "Error refreshing state: Error retrieving EIP: Invalid value 'eipalloc-xxxxxxxx' for PublicIp. Not a valid IPv4 address. (InvalidParameterValue)" |
Just read a comment on another thread saying "The eip is created and deleted fine. It looks like the problem still exists if the vcp = "true" is applied after the eip is already created which might explain why the poster of #122 was still getting the error. Creating from scratch does not reproduce the error." - I'll throw away all of my resources manually and start afresh now I'm running against the dev version. |
@wilb Oof. If you can come up with some steps to reproduce this error, I'd gladly fix it, but I've been having trouble getting it to show. |
I pretty much followed your intro walkthrough using the 0.1.1 from your site - don't think I changed very much at all! I then built the dev version to see if it fixed it as per above, no go though. I'll see if I can recreate it and let you know. |
I've just run through the same steps from start to finish with the dev version and all seems to have worked fine. |
Guys! I'm loving Terraform. I'm not a devops person, so this is really appealing to me.
So I'm running through the Terraform tutorial - and I hit a snag.
I'm at the Provisioners step - and I accidentally ran
before deleting my previous infra.
Now I'm getting this error:
(redacted the actual key in the above)
Any ideas why this is happening?
The text was updated successfully, but these errors were encountered: