Which is a valid Amazon Resource name (ARN) for IAM?
aws:iam::123456789012:instance-profile/Webserver
arn:aws:iam::123456789012:instance-profile/Webserver
123456789012:aws:iam::instance-profile/Webserver
arn:aws:iam::123456789012::instance-profile/Webserver
Explanations:
This format is missing the “arn:” prefix and has an incorrect structure for an ARN.
This is the correct ARN format for IAM, including the “arn:”, service, account ID, and resource.
This format is missing the “arn:” prefix and has an incorrect order of elements for an ARN.
This format has an extra colon before the resource name, which is not valid for ARNs.
In my opinion, the answer is:
arn:aws:iam::123456789012:instance-profile/Webserver