Skip to content

Instantly share code, notes, and snippets.

@ShubhamRasal
Last active December 6, 2020 10:08
Show Gist options
  • Save ShubhamRasal/92672324bba8ca6172ae81798a2d822f to your computer and use it in GitHub Desktop.
Save ShubhamRasal/92672324bba8ca6172ae81798a2d822f to your computer and use it in GitHub Desktop.
run-instances-role
aws ec2 run-instances --image-id ami-0e306788ff2473ccb \
--count 1 --instance-type t2.micro \
--key-name creatorsbyheart \
--security-groups "MySecurityGroup" \
--placement AvailabilityZone=ap-south-1a \
--iam-instance-profile "Name=aws-system-manager"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment