aws.namingConventions.dev

Consistent, valid cloud resource names — from each provider's live naming rules.
by VARØ Industries

AWS naming conventions — reference

35 resource types · 46 regions. Exact abbreviation or short-code matches are highlighted.

All 35 Amazon Web Services resource abbreviations and naming rules
ResourceTypeAbbreviationLengthAllowed characters
Application Load Balancerelasticloadbalancing:albalb1–32Alphanumerics and hyphens; cannot start/end with a hyphen or start with "internal-".
Aurora DB clusterrds:clusteraur1–63Start with a letter; letters, numbers, hyphens; no "--" or trailing hyphen.
Auto Scaling groupautoscaling:groupasg1–255Name tag: up to 255 Unicode characters.
CloudFormation stackcloudformation:stackstk1–128Start with a letter; alphanumerics and hyphens.
CloudWatch log grouplogs:log-grouplg1–512Alphanumerics and ._-/#
DynamoDB tabledynamodb:tableddb3–255Alphanumerics, underscores, hyphens, dots.
EC2 instanceec2:instanceec21–255Name tag: up to 255 Unicode characters.
ECR repositoryecr:repositoryecr2–256Lowercase alphanumerics separated by . _ - or /
ECS clusterecs:clusterecs1–255Alphanumerics, hyphens and underscores.
ECS serviceecs:servicesvc1–255Alphanumerics, hyphens and underscores.
EFS file systemelasticfilesystem:file-systemefs1–255Name tag: up to 255 Unicode characters.
EKS clustereks:clustereks1–100Starts alphanumeric; then alphanumerics, hyphens, underscores.
ElastiCache clusterelasticache:clusterec1–40Start with a letter; letters, numbers, hyphens; no "--" or trailing hyphen.
IAM policyiam:policypol1–128Alphanumerics and +=,.@_-
IAM roleiam:rolerole1–64Alphanumerics and +=,.@_-
Internet gatewayec2:internet-gatewayigw1–255Name tag: up to 255 Unicode characters.
Kinesis data streamkinesis:streamkds1–128Alphanumerics, underscores, hyphens, dots.
KMS key alias (after alias/)kms:aliaskms1–250Alphanumerics, /, _ and -
Lambda functionlambda:functionlambda1–64Alphanumerics, hyphens and underscores.
Launch templateec2:launch-templatelt3–128Alphanumerics and ().-/_
NAT gatewayec2:natgatewaynat1–255Name tag: up to 255 Unicode characters.
Network Load Balancerelasticloadbalancing:nlbnlb1–32Alphanumerics and hyphens; cannot start/end with a hyphen or start with "internal-".
RDS DB instancerds:dbrds1–63Start with a letter; letters, numbers, hyphens; no "--" or trailing hyphen.
Route tableec2:route-tablert1–255Name tag: up to 255 Unicode characters.
S3 buckets3:buckets33–63Lowercase letters, numbers, dots, hyphens; start/end with letter or number. Globally unique.
SageMaker endpointsagemaker:endpointsme1–63Alphanumerics and hyphens; no leading/trailing hyphen.
Secrets Manager secretsecretsmanager:secretsec1–512Alphanumerics and /_+=.@-
Security groupec2:security-groupsg1–255a-z, A-Z, 0-9, spaces and ._-:/()#,@[]+=&;{}!$*
SNS topicsns:topicsns1–256Alphanumerics, hyphens, underscores.
SQS queuesqs:queuesqs1–80Alphanumerics, hyphens, underscores.
Step Functions state machinestates:stateMachinesfn1–80Alphanumerics, hyphens, underscores.
Subnetec2:subnetsnet1–255Name tag: up to 255 Unicode characters.
Target groupelasticloadbalancing:targetgrouptg1–32Alphanumerics and hyphens; cannot start/end with a hyphen.
Transit gatewayec2:transit-gatewaytgw1–255Name tag: up to 255 Unicode characters.
VPCec2:vpcvpc1–255Name tag: up to 255 Unicode characters.
All 46 Amazon Web Services region short codes
RegionCodeShort code
Africa (Cape Town)af-south-1afs1
Asia Pacific (Hong Kong)ap-east-1ape1
Asia Pacific (Taipei)ap-east-2ape2
Asia Pacific (Tokyo)ap-northeast-1apne1
Asia Pacific (Seoul)ap-northeast-2apne2
Asia Pacific (Osaka)ap-northeast-3apne3
Asia Pacific (Mumbai)ap-south-1aps1
Asia Pacific (Hyderabad)ap-south-2aps2
Asia Pacific (Singapore)ap-southeast-1apse1
Asia Pacific (Sydney)ap-southeast-2apse2
Asia Pacific (Jakarta)ap-southeast-3apse3
Asia Pacific (Melbourne)ap-southeast-4apse4
Asia Pacific (Malaysia)ap-southeast-5apse5
Asia Pacific (New Zealand)ap-southeast-6apse6
Asia Pacific (Thailand)ap-southeast-7apse7
Canada (Central)ca-central-1cac1
Canada West (Calgary)ca-west-1caw1
Europe (Frankfurt)eu-central-1euc1
Europe (Zurich)eu-central-2euc2
Europe (Stockholm)eu-north-1eun1
Europe (Milan)eu-south-1eus1
Europe (Spain)eu-south-2eus2
Europe (Ireland)eu-west-1euw1
Europe (London)eu-west-2euw2
Europe (Paris)eu-west-3euw3
Israel (Tel Aviv)il-central-1ilc1
Middle East (UAE)me-central-1mec1
Middle East (Bahrain)me-south-1mes1
Mexico (Central)mx-central-1mxc1
South America (Sao Paulo)sa-east-1sae1
US East (N. Virginia)us-east-1use1
US East (Ohio)us-east-2use2
US West (N. California)us-west-1usw1
US West (Oregon)us-west-2usw2
China (Beijing)cn-north-1cnn1
China (Ningxia)cn-northwest-1cnnw1
AWS GovCloud (US-East)us-gov-east-1usgove1
AWS GovCloud (US-West)us-gov-west-1usgovw1
US ISO Eastus-iso-east-1usisoe1
US ISO WESTus-iso-west-1usisow1
US ISOB East (Ohio)us-isob-east-1usisobe1
US ISOB Westus-isob-west-1usisobw1
EU ISOE Westeu-isoe-west-1euisoew1
US ISOF EASTus-isof-east-1usisofe1
US ISOF SOUTHus-isof-south-1usisofs1
AWS European Sovereign Cloud (Germany)eusc-de-east-1euscdee1

Does AWS publish an official naming convention?

No. AWS publishes naming rules per service (length and allowed characters) and tagging best practices, but not a standard abbreviation list. The abbreviations here (s3, lambda, ddb, sg…) are widely used community conventions that you can override.

What are the S3 bucket naming rules?

S3 bucket names must be 3 to 63 characters, lowercase letters, numbers, dots and hyphens, start and end with a letter or number, and be globally unique. Many teams include an organization prefix to avoid collisions.

How are AWS region short codes built?

Region codes are fetched live from the AWS SDK endpoint list and shortened by convention: us-east-1 becomes use1, ap-southeast-2 becomes apse2, eu-west-1 becomes euw1.

Why use Name tags for EC2, VPCs and subnets?

Those resources are identified by generated IDs, so their human-readable name lives in the Name tag (up to 255 characters). A consistent Name tag pattern makes consoles, billing and inventory readable.

AWS does not publish official abbreviations; these are widely used community conventions. Length and character rules come from AWS service documentation. Sources: raw.githubusercontent.com, docs.aws.amazon.com.