You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A client error (InvalidParameterCombination) occurred when calling the RunInstances operation: Network interfaces and an instance-level subnet ID may not be specified on the same request
When running command with --secondary-private-ip-address-count 1:
aws ec2 run-instances --image-id ami-eef31499 --security-group-ids sg-bp8eo6dd --user-data data --instance-type t1.micro --subnet-id subnet-14d4uc63 --iam-instance-profile Name=gateway --count 1 --secondary-private-ip-address-count 1 --region eu-west-1 --profile int
I get:
A client error (InvalidParameterCombination) occurred when calling the RunInstances operation: Network interfaces and an instance-level subnet ID may not be specified on the same request
However setting separately --secondary-private-ip-address-count 1:
aws ec2 assign-private-ip-addresses --network-interface-id eni-243a2357 --secondary-private-ip-address-count 1 --region eu-west-1 --profile int
everything goes fine.
The text was updated successfully, but these errors were encountered: