Binden Sie die IAM -Rolle an EC2 Instance CLI an
$aws ec2 associate-iam-instance-profile --instance-id YourInstanceId --iam-instance-profile Name=YourNewRole-Instance-Profile
Worried Wasp