Parse AWS ARN

Parse an AWS ARN into partition, service, region, account, and resource fields.

freeworks offlinenothing uploaded
ToolAWS ARN Parser
Input
Output
Put this on your own site

The frame below runs the same code as this page, in the reader's own browser. Nothing is sent to us, and nothing is sent to you.

Pick a dark background and the text and panels follow it, so the frame stays readable on a dark page.

Preview

How it works

Colon separators split the stable ARN envelope, then service-specific resource delimiters expose the remaining name. Wildcards remain literal policy characters rather than being expanded.

  • The six envelope fields are stable across AWS services.
  • Resource syntax varies by service.

Worked example

Parse IAM User ARN
Extract components from an AWS IAM user ARN
Input
											arn:aws:iam::123456789012:user/johndoe
										
Output
												Arn: arn:aws:iam::123456789012:user/johndoe
Partition: aws
Service: iam
Region: (global)
Account ID: 123456789012
Resource: user/johndoe
Resource type: user
Resource ID: johndoe
											

When to use this

IAM reviews, deployment configs, and security inventory parse ARNs.

Edge cases

  • Global services can have empty region or account fields.
  • Resource text can contain colons or slashes.
  • A wildcard ARN is a policy pattern, not one resource.

References