"A resource's name is enough to find it." Not in AWS. Thousands of accounts have a server called web and a bucket folder called reports. AWS needs a name that is unique everywhere, and that's the ARN, the Amazon Resource Name. Think of it as the full postal address of a resource.
How to read an ARN
An ARN is a list of parts separated by colons:
arn:partition:service:region:account-id:resource
For example, an EC2 instance:
arn:aws:ec2:us-east-1:123456789012:instance/i-0abc123def456
- arn: every ARN starts with it.
- partition: usually
aws. Isolated partitions such as AWS GovCloud (US) and the China Regions use their own. - service: the AWS service, such as
ec2,s3oriam. - region: where the resource lives, such as
us-east-1. - account-id: the 12-digit AWS account that owns it.
- resource: the resource type and its ID or name. Depending on the service, a
/or a:separates them.
Why some parts are empty
Not every resource needs every part. S3 bucket names are globally unique, so a bucket's ARN has no Region and no account:
arn:aws:s3:::my-bucket
IAM is a global service, so IAM ARNs have an account but no Region:
arn:aws:iam::123456789012:role/app-server
Those empty spaces between colons are on purpose. Don't "fix" them.
Where you'll use ARNs
You'll meet ARNs most often in IAM policies. A policy statement says which actions are allowed on which resources, and the resources are ARNs:
"Action": "s3:GetObject",
"Resource": "arn:aws:s3:::reports/*"
The is a wildcard that matches many resources at once. That's powerful, and it's also where many security problems start. A common mistake is "Resource": "" "just to make it work", which grants the action on every resource of that kind in the account. Scope policies to the specific ARNs a role needs.
ARNs also show up when you connect services: a Lambda function's trigger, an SNS topic subscription or a CloudWatch alarm action all point at ARNs.
Where AI fits
AI resources follow the same rules. Amazon Bedrock foundation models, inference profiles, knowledge bases and agents all have ARNs. So an IAM policy can allow bedrock:InvokeModel only on the model ARNs a team is approved to use. That's a simple, auditable way to control which models are used, and what they cost, as AI adoption spreads across teams.
Quick recap
- An ARN is a resource's full, unique address.
- Its parts: partition, service, Region, account, resource. Some are empty on purpose.
- IAM policies point at ARNs, so scope them tightly, including for AI models.