aws_ launch_ configuration cost estimation
A launch configuration is free. It is a legacy blueprint for EC2 instances, so cost appears only when an Auto Scaling Group uses it to launch instances.
An aws_
Launch configurations are the older mechanism and are immutable: you cannot edit one, you must replace it. AWS now steers new work toward aws_
The cost drivers are the same as any EC2 fleet: the instance_
Terraform example
A minimal but realistic configuration that C3X can estimate.
resource "aws_launch_configuration" "web" {
name_prefix = "web-"
image_id = data.aws_ami.al2023.id
instance_type = "m5.large"
security_groups = [aws_security_group.web.id]
root_block_device {
volume_size = 30
volume_type = "gp3"
}
lifecycle {
create_before_destroy = true
}
}Pricing dimensions
What you actually pay for when you provision aws_.
| Dimension | Unit | What's being charged |
|---|---|---|
| Launch configuration | free | The configuration has no charge. $0 |
| Instances it launches | per instance-hour | The instance_ m5.large on-demand: ~$0.096/hour |
| Root block device | per GB-month | The root volume carried by every launched instance. gp3: $0.08/GB-month |
Optimization tips
Common ways to reduce aws_ cost without changing the workload.
Migrate to a launch template for Spot
Up to 90% on eligible instancesLaunch configurations cannot request Spot or run a mixed-instances policy. Move to aws_
Right-size the instance_ type
50% per size reductionThe configuration's instance type multiplies across the whole group, so downsizing it once is the cheapest change you can make to the fleet.
Trim the root_ block_ device
A smaller gp3 root volume reduces the storage cost carried by every instance the group launches.
FAQ
Does a launch configuration cost anything?
No. The launch configuration is free. Cost appears only when an Auto Scaling Group uses it to launch EC2 instances, which are billed per hour along with their root volumes.
Should I use a launch configuration or a launch template?
Use a launch template. It supports Spot, multiple versions, and mixed-instances policies that a launch configuration cannot, all of which matter for cost. AWS steers new work to launch templates.
How do I estimate the cost behind a launch configuration?
Multiply the instance_
Related resources
More AWS resources
Estimate this resource in your own Terraform
Free, open source, no API key. C3X parses your Terraform and shows line-item cost for every resource, including aws_.