All Tools View Categories About Contact Privacy

Lambda ARN Generator

Build a Lambda function ARN, optionally qualified with a version or alias.

Runs entirely in your browser — your account id and function name never leave this page.
Fill in region, account id and function name to build an ARN.

About Lambda ARN Generator

A Lambda function ARN carries more moving parts than most people remember on the first try: a region, a 12-digit account id, the literal word function, the function name, and — optionally — a version number or alias tacked on with one more colon. Lambda ARN Generator takes those pieces as separate form fields and assembles them into the exact ARN Lambda expects, so you don’t have to hand-count colons or remember whether the version goes before or after the function name (it goes after, with its own colon).

The form has four fields: region, account id, function name, and an optional version-or-alias suffix. Leave the suffix blank and you get the unqualified ARN — arn:aws:lambda:region:account:function:name — which always resolves to whatever is currently deployed as $LATEST. That form is what most people reach for when writing an IAM policy that should apply to a function regardless of which version is live, or when wiring up a Lambda trigger during initial development. Fill in the suffix with either a published numeric version (7) or an alias name (PROD, live, staging) and the tool appends it as a third colon-separated segment — arn:aws:lambda:region:account:function:name:PROD — pinning the ARN to a specific, known version. This qualified form matters anywhere you want guaranteed behavior: an API Gateway Lambda proxy integration pointed at a stable alias, an event source mapping that should never silently pick up an untested deploy, or a resource-based policy statement scoping lambda:InvokeFunction to exactly one alias.

Unlike S3, Lambda ARNs are fully regional and account-scoped — the same function name can exist independently in us-east-1 and eu-west-1, or under two different AWS accounts, so both the region and account id are required fields here rather than optional extras. The region field expects a real AWS region code shape (like us-east-1); the account field expects exactly 12 digits. Both are checked at build time by the same validator used across every ARN tool in this family, so a region that doesn’t look like a real region code or an account id with the wrong digit count gets flagged before you copy the ARN into a policy or template where the mistake would be harder to spot.

The tool sticks to the one shape most people actually need — function:name[:version-or-alias] — rather than trying to cover every Lambda-adjacent ARN type. Layer ARNs use a different resource type entirely (layer:name:version) and aren’t built here; if you need one, the underlying pattern is similar but distinct enough that conflating the two in one form would be more confusing than helpful.

Once the required fields are filled, a live preview shows the ARN updating as you type, before you even click Build. Clicking Build runs the result through structural validation, surfaces any warnings about the region or account format, and reveals a one-click Copy button. A Load sample button fills in a realistic region, account, function name, and alias so you can see the qualified form immediately, and Clear resets everything for the next function. As with every tool in this family, construction and validation happen entirely in your browser — the account id you type, which uniquely identifies an AWS account, is never transmitted anywhere.

Features

  • Four-field form — region, account id, function name, optional version/alias.
  • Unqualified or qualified ARN depending on whether a suffix is supplied.
  • Handles both numeric versions and named aliases identically, since they attach the same way.
  • Live preview that updates as you type.
  • Region and account format validation using the shared ARN validator.
  • Built on the shared buildARN engine, not a hand-rolled string template.
  • Sample region/account/function/alias preloaded with one click.
  • One-click copy and clear.
  • 100% client-side — account ids and function names never leave the page.

How to Use

  1. Enter a region (e.g. us-east-1) and a 12-digit account id.
  2. Type the function name.
  3. Optionally add a version number or alias if you need a qualified ARN.
  4. Watch the live preview update as you fill in fields.
  5. Click Build to validate and reveal the copy action.
  6. Review any warnings about region or account format.
  7. Copy the ARN into your IAM policy, event source mapping, or API Gateway integration.
  8. Clear and repeat for the next function.

Examples

Example 1 — Unqualified function ARN. Region eu-west-1, account 123456789012, name my-func, no suffix, gives arn:aws:lambda:eu-west-1:123456789012:function:my-func — always resolves to $LATEST.

Example 2 — Alias-qualified ARN. Same fields plus suffix PROD gives arn:aws:lambda:eu-west-1:123456789012:function:my-func:PROD, suitable for an API Gateway integration pointed at a stable alias.

Example 3 — Version-qualified ARN. Function resize-image, suffix 7, gives arn:aws:lambda:us-east-1:123456789012:function:resize-image:7, pinning to a specific published version.

Example 4 — Cross-region function. The same function name notify-worker deployed independently in us-east-1 and ap-southeast-2 under the same account produces two entirely distinct ARNs, differing only in the region field.

Example 5 — Invalid account id. Entering account id 12345 still builds an ARN, but the validation step flags it since a real AWS account id is always exactly 12 digits.

Benefits

  • No colon-counting — every field maps directly onto its position in the ARN.
  • Correctly distinguishes unqualified from qualified ARNs without extra thought.
  • Catches malformed regions and account ids before they reach a policy document.
  • Consistent with the shared ARN engine used across this entire tool family.
  • Faster than hand-assembling event source mapping or API Gateway integration ARNs.
  • Private — account ids never leave your browser.

Frequently Asked Questions

What goes in the version-or-alias field?
Either a published numeric version (like <code>7</code>) or an alias name (like <code>PROD</code> or <code>live</code>). Both attach the same way — a third colon-separated segment after the function name — so the tool treats them identically; leave it blank to reference the function’s unqualified/$LATEST ARN.
What’s the difference between the unqualified ARN and a qualified one?
The unqualified ARN (<code>arn:aws:lambda:region:account:function:name</code>) always points at whatever is currently deployed as <code>$LATEST</code>. Adding a version or alias suffix pins the ARN to that specific published version or to whatever version an alias currently points to — useful in event source mappings, API Gateway integrations, or IAM policies that should only ever invoke a known-good version.
Why does Lambda need both a region and an account id, unlike S3?
Lambda functions are regional and scoped to a single AWS account — the same function name can exist independently in multiple regions or accounts, so both fields are required to point at exactly one function. This is the normal case for most AWS services; S3 is the exception, not Lambda.
Does the tool check that the account id is a real AWS account?
No — it only checks the id is present and, during validation, that it’s exactly 12 digits, which is the required shape for every AWS account id. It does not verify the account, function, version, or alias actually exist.
Can I use this for Lambda layer ARNs instead of function ARNs?
No, layer ARNs use a different resource type (<code>layer:name:version</code>) and this tool is specifically built around the <code>function:name[:version-or-alias]</code> shape. The underlying <code>buildARN</code> engine could build a layer ARN too, but this form is scoped to functions.
What region and account format is expected?
Region should look like a real AWS region code, for example <code>us-east-1</code> or <code>eu-west-1</code>. Account id should be exactly 12 digits, with no dashes or spaces. Both are checked during validation and flagged if they look wrong.
Is my account id sent anywhere?
No. Everything is built locally in your browser — no network requests are made, so the account id you type never leaves the page.
Can function names contain anything other than letters and numbers?
Lambda function names may include letters, numbers, hyphens, and underscores. The tool does not restrict what you type into the name field beyond requiring it to be non-empty — it is your responsibility to match Lambda’s actual naming rules if you plan to deploy against this ARN.