AWS in 1 Min · Episode 15

ARNs in 1 minute

How AWS names things. Watch the one-minute video, then read the details.

David Gomez1:16 video · 2 min read

"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, s3 or iam.
  • 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.
AWS in 1 Min #15 · 1:16

Need an AWS expert on your team?

I'm David, an AWS expert and fractional cloud consultant. I work alongside your team to run your cloud and infrastructure: architecture, security, cost and day-to-day operations. You get senior AWS experience when you need it, without the cost of a full-time hire.

  • Architecture reviews and a clear plan for what to fix first
  • Security hardening: IAM, networking, audits
  • Lower AWS bills without slowing your team down
  • Hands-on help with AI workloads on AWS