if (FALSE) {
# This example associates an IAM instance profile named admin-role with
# the specified instance.
svc$associate_iam_instance_profile(
IamInstanceProfile = list(
Name = "admin-role"
),
InstanceId = "i-123456789abcde123"
)
}
Run the code above in your browser using DataLab