Of course. Here are practical, real-world examples for the services you mentioned and other common ones, all based on the universal template.
For our scenario, let's assume:
- Organization (
<Org>): acme
- Project (
<Proj>): webshop
- Environment (
<Env>): prod
- Region (
<Region>): us-east-1
Universal Template (for reference)
acme-webshop-prod-us-east-1-<Service/Component>-<ResourceType>-<FreeForm>
Scenario 1: Core Networking (VPC, Subnets, Gateways)
These resources form the foundation of your environment. Their names should describe their function and placement.
| Service | Resource Type | Full Example Name | Notes |
|---|
| VPC | vpc | acme-webshop-prod-us-east-1-vpc | The central network. Only one per environment. |
| Internet Gateway (IGW) | igw | acme-webshop-prod-us-east-1-igw | Connects the VPC to the internet. |
| Subnet | subnet | acme-webshop-prod-us-east-1-subnet-public-az1 | Use <FreeForm> (public-az1) to denote purpose (public/private) and AZ. |
| | acme-webshop-prod-us-east-1-subnet-private-app-az1 | A private subnet for application servers. |
| | acme-webshop-prod-us-east-1-subnet-private-db-az2 | A separate private subnet for databases in another AZ for high availability. |
| Route Table | rtb | acme-webshop-prod-us-east-1-rtb-public | The route table for all public subnets (points to the IGW). |
| | acme-webshop-prod-us-east-1-rtb-private-az1 | Route table for private subnets in AZ1 (might point to a NAT Gateway). |
| Elastic Network Interface (ENI) | eni | acme-webshop-prod-us-east-1-eni-nat-gateway-az1 | Important: You typically don't name the ENI ID itself, but you apply a Name tag. This example is for a Name tag on the ENI used by a NAT Gateway. |
| | acme-webshop-prod-us-east-1-eni-rds-primary | Name tag for the ENI attached to the primary RDS instance. |
Scenario 2: Compute & Security (EC2, Lambda, Security Groups)
These resources run your application code. Names should specify the workload.
| Service | Resource Type | Full Example Name | Notes |
|---|
| EC2 Instance | inst | acme-webshop-prod-us-east-1-webserver-inst-001 | This is for the Name tag. Use <FreeForm> for numbering (001). |
| | acme-webshop-prod-us-east-1-bastion-inst-001 | A bastion host for secure administrative access. |
| Security Group (SG) | sg | acme-webshop-prod-us-east-1-webserver-sg | The SG for web servers, allowing HTTP/S traffic. Name describes what it protects. |
| | acme-webshop-prod-us-east-1-rds-mysql-sg | SG for the RDS database, allowing port 3306 only from the webserver-sg. |
| | acme-webshop-prod-us-east-1-bastion-sg | SG for the bastion host, allowing SSH only from a specific IP range. |
| Lambda Function | lambda | acme-webshop-prod-us-east-1-orders-lambda-process | Component is orders (the service), freeform is process (the action). |
| | acme-webshop-dev-us-east-1-users-lambda-auth | A dev environment example for a user authentication function. |
| IAM Role | role | acme-webshop-prod-lambda-orders-role | The name clearly states this role is for the orders Lambda function. |
| | |
Scenario 3: Event-Driven Services (EventBridge, SQS, SNS)
These services connect your application components. Names should reflect the event or message being handled.
| Service | Resource Type | Full Example Name | Notes |
|---|
| EventBridge Bus | bus | acme-webshop-prod-us-east-1-orders-bus | A custom event bus for all events related to the orders domain. |
| EventBridge Rule | rule | acme-webshop-prod-us-east-1-order-created-rule | The rule name describes the event it's listening for (order-created). |
| | acme-webshop-prod-us-east-1-nightly-report-rule | A scheduled (cron) rule that runs a report nightly. |
| SQS Queue | queue | acme-webshop-prod-order-processing-queue | Note: SQS names are shorter (80 chars). The <Region> is often dropped to save space. |
| | acme-webshop-prod-invoice-generation-queue.fifo | Add the .fifo suffix for FIFO queues as required by AWS. |
| SNS Topic | topic | acme-webshop-prod-user-notifications-topic | A topic for fanning out notifications to users. |
| | acme-webshop-prod-critical-alerts-topic | A topic used for operational alerts sent to engineers. |
Scenario 4: Data Storage (S3, DynamoDB)
Storage resources are critical. Names must be clear and, for S3, globally unique.
| Service | Resource Type | Full Example Name | Notes |
|---|
| S3 Bucket | bucket | acme-webshop-prod-us-east-1-customer-uploads | CRITICAL: S3 names are globally unique. The template makes this easy to achieve. Lowercase, no underscores. |
| | acme-webshop-prod-us-east-1-static-assets | For hosting the website's static JS/CSS/images. |
| | acme-webshop-prod-us-east-1-access-logs | A bucket dedicated to storing access logs from other services like ELB or CloudFront. |
| DynamoDB Table | table | acme-webshop-prod-us-east-1-orders-table | Unique per account/region. The template works perfectly. |
| | acme-webshop-prod-us-east-1-users-table | |
Key Takeaways from the Examples
- Consistency is Key: The same pattern is applied everywhere, making it easy to find and understand resources.
- The "Component" part is flexible: For an EC2 instance, it might be
webserver; for a Lambda, it might be orders; for a Security Group, it might be rds-mysql. It describes the workload.
- The "FreeForm" part adds specifics: Use it for numbering (
-001), availability zones (-az1), or clarifying actions (-process).
- Adapt for Constraints: For services like SQS with shorter name limits, you can drop less critical parts like the
<Region> if all your infrastructure is in one region anyway.
- Tags vs. Names: For resources like EC2 Instances and ENIs, the "name" you see in the console is a
Name tag. The naming convention applies to the value of that tag. The actual resource ID is AWS-generated.