Interview Prep/AWS/Global Infrastructure and IAM Basics

What is an ARN and how is it structured?

BeginnerConceptGlobal Infrastructure and IAM Basics
Answer

arn:partition:service:region:account-id:resource. Partition is aws, aws-cn or aws-us-gov. Some fields are empty for global or account-less resources: S3 buckets have no region or account (arn:aws:s3:::my-bucket), IAM has no region (arn:aws:iam::123456789012:role/app).

Wildcards work in policies, so arn:aws:s3:::my-bucket/* matches all objects. Hard-coding the partition breaks GovCloud portability; use ${AWS::Partition} in CloudFormation.

aws All AWS questions Roadmap: AWS core services

More on Global Infrastructure and IAM Basics