Terraform AWS Autoscaling
Auto Scaling groups with launch templates, instance refresh, health checks, scaling policies, mixed instance options, IAM instance profiles, and security group based network controls.
Controls Enforced
The following compliance controls are enforced by this module at terraform plan time.
- EC2 launch templates should use Instance Metadata Service Version 2 (IMDSv2) low effort
- AWS EC2 launch templates should not assign public IPs to network interfaces low effort
Quick Start
module "autoscaling" {
source = "acscessentialeight.compliance.tf/terraform-aws-modules/autoscaling/aws"
version = "<version>"
# ... your arguments here
}
module "autoscaling" {
source = "acscism2023.compliance.tf/terraform-aws-modules/autoscaling/aws"
version = "<version>"
# ... your arguments here
}
module "autoscaling" {
source = "awscontroltower.compliance.tf/terraform-aws-modules/autoscaling/aws"
version = "<version>"
# ... your arguments here
}
module "autoscaling" {
source = "awsgenai.compliance.tf/terraform-aws-modules/autoscaling/aws"
version = "<version>"
# ... your arguments here
}
module "autoscaling" {
source = "awswellarchitected.compliance.tf/terraform-aws-modules/autoscaling/aws"
version = "<version>"
# ... your arguments here
}
module "autoscaling" {
source = "cccsmedium.compliance.tf/terraform-aws-modules/autoscaling/aws"
version = "<version>"
# ... your arguments here
}
module "autoscaling" {
source = "cfrpart11.compliance.tf/terraform-aws-modules/autoscaling/aws"
version = "<version>"
# ... your arguments here
}
module "autoscaling" {
source = "cis.compliance.tf/terraform-aws-modules/autoscaling/aws"
version = "<version>"
# ... your arguments here
}
module "autoscaling" {
source = "cisv500.compliance.tf/terraform-aws-modules/autoscaling/aws"
version = "<version>"
# ... your arguments here
}
module "autoscaling" {
source = "cisv600.compliance.tf/terraform-aws-modules/autoscaling/aws"
version = "<version>"
# ... your arguments here
}
module "autoscaling" {
source = "cisv80ig1.compliance.tf/terraform-aws-modules/autoscaling/aws"
version = "<version>"
# ... your arguments here
}
module "autoscaling" {
source = "cisacyberessentials.compliance.tf/terraform-aws-modules/autoscaling/aws"
version = "<version>"
# ... your arguments here
}
module "autoscaling" {
source = "eugmpannex11.compliance.tf/terraform-aws-modules/autoscaling/aws"
version = "<version>"
# ... your arguments here
}
module "autoscaling" {
source = "fedramplow.compliance.tf/terraform-aws-modules/autoscaling/aws"
version = "<version>"
# ... your arguments here
}
module "autoscaling" {
source = "fedrampmoderate.compliance.tf/terraform-aws-modules/autoscaling/aws"
version = "<version>"
# ... your arguments here
}
module "autoscaling" {
source = "ffiec.compliance.tf/terraform-aws-modules/autoscaling/aws"
version = "<version>"
# ... your arguments here
}
module "autoscaling" {
source = "gdpr.compliance.tf/terraform-aws-modules/autoscaling/aws"
version = "<version>"
# ... your arguments here
}
module "autoscaling" {
source = "hipaa.compliance.tf/terraform-aws-modules/autoscaling/aws"
version = "<version>"
# ... your arguments here
}
module "autoscaling" {
source = "iso27001.compliance.tf/terraform-aws-modules/autoscaling/aws"
version = "<version>"
# ... your arguments here
}
module "autoscaling" {
source = "nis2.compliance.tf/terraform-aws-modules/autoscaling/aws"
version = "<version>"
# ... your arguments here
}
module "autoscaling" {
source = "nist800171.compliance.tf/terraform-aws-modules/autoscaling/aws"
version = "<version>"
# ... your arguments here
}
module "autoscaling" {
source = "nist80053.compliance.tf/terraform-aws-modules/autoscaling/aws"
version = "<version>"
# ... your arguments here
}
module "autoscaling" {
source = "nistcsf.compliance.tf/terraform-aws-modules/autoscaling/aws"
version = "<version>"
# ... your arguments here
}
module "autoscaling" {
source = "nydfs23.compliance.tf/terraform-aws-modules/autoscaling/aws"
version = "<version>"
# ... your arguments here
}
module "autoscaling" {
source = "pcidss.compliance.tf/terraform-aws-modules/autoscaling/aws"
version = "<version>"
# ... your arguments here
}
module "autoscaling" {
source = "rbicybersecurity.compliance.tf/terraform-aws-modules/autoscaling/aws"
version = "<version>"
# ... your arguments here
}
module "autoscaling" {
source = "rbiitfnbfc.compliance.tf/terraform-aws-modules/autoscaling/aws"
version = "<version>"
# ... your arguments here
}
module "autoscaling" {
source = "soc2.compliance.tf/terraform-aws-modules/autoscaling/aws"
version = "<version>"
# ... your arguments here
}
See the Get Started guide to get started and read the Features section for more details on how to customize the module for your requirements.
Migration from Upstream
Already using terraform-aws-modules? Change only the source URL:
module "autoscaling" {
source = "terraform-aws-modules/autoscaling/aws"
version = "1.0"
}
module "autoscaling" {
source = "soc2.compliance.tf/terraform-aws-modules/autoscaling/aws"
version = "1.0"
}
Same arguments. Same outputs. Compliance controls are enforced automatically at terraform plan. If a required value is missing, you get a clear validation error telling you what to set.
See the Migration Guide for step-by-step instructions.
Reversibility
No lock-in. Switch back by reverting the source URL to the upstream path:
module "autoscaling" {
source = "terraform-aws-modules/autoscaling/aws"
}
Run terraform init -upgrade. Terraform state is unchanged — same resource addresses, same provider, no compliance.tf-specific resources. Controls you already applied remain in AWS.
Mapped compliance frameworks
A.8.20 Network security
- EC2 launch templates should use Instance Metadata Service Version 2 (IMDSv2)
- AWS EC2 launch templates should not assign public IPs to network interfaces
A.8.21 Security of network services
- EC2 launch templates should use Instance Metadata Service Version 2 (IMDSv2)
- AWS EC2 launch templates should not assign public IPs to network interfaces
A.8.22 Segregation of networks
3 Incident handling
6 Security in network and information systems acquisition, development and maintenance
1.4.5 The disclosure of internal IP addresses and routing information is limited to only authorized parties
1.4.5: Network connections between trusted and untrusted networks are controlled.
CC6.6: The entity implements logical access security measures to protect against threats from sources outside its system boundaries.
Framework Coverage
Which controls from this module are active under each framework endpoint. ● enforced by default · ○ not activated by this endpoint
| Control | ISO/IEC 27001:2022 | NIS2 Directive (EU 2022/2555) | NIST Cybersecurity Framework v2.0 | PCI DSS v4.0 | SOC 2 |
|---|---|---|---|---|---|
| EC2 launch templates should use Instance Metadata Service Version 2 (IMDSv2) | ● | ● | ● | ○ | ○ |
| AWS EC2 launch templates should not assign public IPs to network interfaces | ● | ● | ○ | ● | ● |
Showing top 5 frameworks by coverage. All framework endpoints →