Create an Application Load Balancer with a security group, target group, and HTTP listener using the default VPC.
- ID: elbv2/getting-started
- Level: intermediate
- Core actions:
elbv2:CreateLoadBalancer,elbv2:CreateListener,elbv2:CreateTargetGroup
- Get VPC and subnets
- Create a security group
- Create a target group
- Create the Application Load Balancer
- Wait for ALB to be active
- Create an HTTP listener
- Describe the ALB
| Resource | Type |
|---|---|
tut-alb-<random> |
Application Load Balancer |
tut-tg-<random> |
Target group |
tut-alb-sg-<random> |
Security group |
| HTTP listener on port 80 | Listener |
~121 seconds (most time spent waiting for ALB provisioning)
~$0.02/hr while the ALB is running. Clean up promptly to avoid charges.
- Getting started with Application Load Balancers
- Create an Application Load Balancer
- Target groups for ALBs
- Elastic Load Balancing pricing
| Field | Value |
|---|---|
| Date | 2026-04-14 |
| Script lines | 112 |
| Exit code | 0 |
| Runtime | 121s |
| Steps | 7 |
| Issues | None |
| Version | v1 |