Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

attach iam role to ec2 instance cli

$aws ec2 associate-iam-instance-profile --instance-id YourInstanceId --iam-instance-profile Name=YourNewRole-Instance-Profile
Source by aws.amazon.com #
 
PREVIOUS NEXT
Tagged: #attach #iam #role #instance #cli
ADD COMMENT
Topic
Name
6+9 =