-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
Unable to use --associate-public-ip-address #1019
Comments
I believe what's going on here is that we need to update our logic for |
Thanks Jmaes, I would use the --network-interfaces option, but documentation of it is sparce, can you recommend a good source? When I tried with --network-interface I could not get it to accept a true or false for "Associate an EIP", also it looked as though if I used it I would have to specify an internal IP address explicitly - which would mean calculating a free one. ATB |
This command works for me:
you'll obviously need to change the sg- value and the subnet- value to your own, and that particular AMI is Ubuntu in eu-west-1 |
I did some work with fixing some issues related to this customization in this PR: #1874. The problem is that you are using the
Unfortunately we can never map |
I am unable to run an instance within a VPC, with a security group and associate a public IP address in awe cli version 1.5.1 .
When I run:
aws ec2 run-instances --image-id ami-4e75c339 --count 1 --instance-type t2.micro --key-name WTI --security-groups sg-ba71f1df --subnet-id vpc-53677f31 --associate-public-ip-address
I see:
A client error (InvalidParameterCombination) occurred when calling the RunInstances operation: Network interfaces and an instance-level security groups may not be specified on the same request
This look very much like a regression of #479, #502 & #516
I have the same problem on version 1.5.1 and the current version 1.6.3
(As a workaround I have to instead do a run-instances without the --associate-public-ip-address, then do an allocate-address with --domain vpc and then an associate-address .)
The text was updated successfully, but these errors were encountered: