Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- aws iam create-instance-profile
- --instance-profile-name BastionInstanceProfile
- aws iam add-role-to-instance-profile
- --instance-profile-name BastionInstanceProfile
- --role-name awscli
- aws ec2 run-instances
- --image-id ami-76817c1e
- --key-name jv_virginia
- --security-group-ids sg-f3b4cd96
- --instance-type t2.micro
- --region us-east-1
- --subnet-id subnet-809357f7
- --iam-instance-profile Name=BastionInstanceProfile
- --associate-public-ip-address
- aws ec2 create-tags
- --resources i-XXXXXXX
- --tags Key=Name,Value=bastion
- --region us-east-1
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement