Skip to content
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

"Network interfaces and an instance-level subnet ID may not be specified on the same request" #518

Closed
danackerson opened this issue Nov 29, 2013 · 7 comments

Comments

@danackerson
Copy link

the new --associate-public-ip-address introduced in #479 doesn't seem to work for VPC instances

the error is noted in the title above

@JPalmerGithub
Copy link

http://drewblas.com/2012/08/24/aws-vpc-error-client-invalidparametercombination/
As he states as below:

Luckily, my company has premium AWS support and a quick 10 minute chat got the answer I needed. You must use the --network-attachment param, which takes the place of --group, --private-ip-address, and --subnet

The resulting command looks like this:

ec2-run-instances ami-abc123
--network-attachment :0:subnet-abc123::10.0.1.10:sg-abc123::
.... your other params

Good luck, I hope this helps!

@garnaat
Copy link
Contributor

garnaat commented Dec 2, 2013

The comment above from @JPalmerGithub applies to the legacy EC2 CLI tool, not AWS CLI.

The specific issue with using --associate-public-ip-address and the --subnet-id option together should have been fixed in #502. Are you using the latest version of the AWS CLI software?

@danackerson
Copy link
Author

just confirmed it works as expected with 1.2.6 (I was running 1.2.5). Thanks!

@JPalmerGithub
Copy link

garnaat
&
danackerson
just confirmed it works as expected with 1.2.6 (I was running 1.2.5). Thanks!

Thank You & Best Regards: JPalmer

@pwaller
Copy link

pwaller commented Jul 3, 2014

This problem has reappeared. I just upgraded from 1.3.2 to 1.3.21 and both manifest this problem.

These are the parameters I am passing in to run-instances.

['--key-name',
 '--image-id',
 '--security-groups',
 '--user-data',
 '--instance-type',
 '--subnet-id',
 '--block-device-mappings',
 '--associate-public-ip-address']

@loganfuller
Copy link

I'm also running into this issue on 1.5.3

@kbroughton
Copy link

same
(dev)] aws --version
aws-cli/1.7.0 Python/2.7.6 Darwin/14.3.0

aws ec2 run-instances --key-name csbeanstalk --security-groups ****-v1 --instance-type m3.medium --associate-public-ip-address --image-id ami-d05e75b8 --placement Tenancy=dedicated --subnet-id subnet-*********a

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants