Using AWS CLI commands, it is now possible to attach an IAM role to a running EC2 instance.
Command/s:
$aws ec2 associate-iam-instance-profile --instance-id YourInstanceId --iam-instance-profile Name=YourNewRole-Instance-Profile
Refer the complete article here.
Command/s:
$aws ec2 associate-iam-instance-profile --instance-id YourInstanceId --iam-instance-profile Name=YourNewRole-Instance-Profile
Refer the complete article here.
No comments:
Post a Comment