Releases: terraform-aws-modules/terraform-aws-ec2-instance
Releases · terraform-aws-modules/terraform-aws-ec2-instance
v6.1.4
v6.1.3
v6.1.2
v6.1.1
v6.1.0
v6.0.2
v6.0.1
v6.0.0
6.0.0 (2025-06-24)
⚠ BREAKING CHANGES
- Upgrade AWS provider and min required Terraform version to
6.0and1.10respectively (#436)
List of backwards incompatible changes
- Terraform v1.10.0 is now minimum supported version
- AWS provider v6.0.0 is now minimum supported version
- The default value for
ami_ssm_parameterwas changed from"/aws/service/ami-amazon-linux-latest/amzn2-ami-hvm-x86_64-gp2"to"/aws/service/ami-amazon-linux-latest/al2023-ami-kernel-default-x86_64". AL2 is approaching end of life.
Additional changes
Added
- Support for creating a security group within the module; this is now the default behavior and can be disabled by setting
create_security_group = false. - Support for
regionparameter to specify the AWS region for the resources created if different from the provider region. - Support for tagging spot instances
Modified
- Variable definitions now contain detailed
objecttypes in place of the previously usedanytype. - Inline
ebs_block_deviceargument has been removed in favor ofebs_volumeswhich is a map of EBS volumes created throughaws_ebs_volumeandaws_ebs_volume_attachmentresources. This provides the same API as before, but allows for more flexibility without generating diffs when adding or removing EBS volumes as well as unintended changes to the volumes. - Correct tag precedence ordering (least specific to most specific)
Removed
- The
volume-attachmentexample has been removed since the module has been updated to use the corrected form of EBS volume creation and attachment (tl;dr - example is no longer useful).
See the UPGRADE-6.0.md for more details