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.
More on Global Infrastructure and IAM Basics
What is the difference between a Region, an Availability Zone and an edge location?BeginnerHow do you choose a Region for a workload?BeginnerWhat is the difference between an AZ name like `us-east-1a` and an AZ ID like `use1-az1`?IntermediateExplain the shared responsibility model.BeginnerWhat is the root user and how should you treat it?BeginnerWhat is the difference between an IAM user, group and role?Beginner