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

aws ec2 run-instances should also request a new public IP #2

Open
jim-minter opened this issue Oct 30, 2015 · 0 comments
Open

aws ec2 run-instances should also request a new public IP #2

jim-minter opened this issue Oct 30, 2015 · 0 comments

Comments

@jim-minter
Copy link
Contributor

Perhaps optional, as you may have already allocated public IPs and want to retain them.

aws ec2 run-instances --image-id $AMI --key-name $KEYNAME
--associate-public-ip-address
--security-group-ids $SECGROUP --instance-type m4.large
--subnet-id $SUBNET --ebs-optimized
--block-device-mappings '{"DeviceName":"/dev/sda1","Ebs":{"DeleteOnTermination":"true","VolumeType":"gp2"}}'
--count $N`

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

1 participant