-
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
aws_instance associate_public_ip_address doesn't seem to work #252
Comments
eip resource? resource "aws_eip" "example" {
instance = "${aws_instance.example.id}"
} |
@hden That worked, thanks. |
I just tested and we're sending it properly, but it is up to whether or not you configure your VPC properly to determine if it gets one. It appears Amazon doesn't give us any error. I'd have to say this is working as intended. Glad you figured it out! |
@mitchellh Alright. I'm probably misunderstanding something about the way instances launched into a VPC work, but can't you have public ips that are not EIPs? I can use the EC2 launch wizard to do that. |
I am having the exact same problem. I used VPCs before from the webinterface, and I was always able to attach public IPs. @mitchellh could you please clarify what you mean with "it is up to whether or not you configure your VPC properly to determine if it gets one". In what way are we configuring our VPC wrongly? |
See #277 how to (temporarily) solve the issue |
@arnuschky thanks. if i understood your solution in #277 it's pretty manual... using terraform to avoid those kind of headaches! Thanks for the temp workaround though. |
@levinotik yes, it is very manual - it's more a proof of what's missing/going wrong than an actual workaround. |
I have the following .tf file:
I have tried applying this plan several times and each time it creates all of the specified resources, but the EC2 instance is not launched with a public ip address.
Is this a bug or am I doing something wrong?
The text was updated successfully, but these errors were encountered: