Releases: terraform-aws-modules/terraform-aws-ec2-instance
Releases · terraform-aws-modules/terraform-aws-ec2-instance
v6.0.1
v6.0.0
6.0.0 (2025-06-24)
⚠ BREAKING CHANGES
- Upgrade AWS provider and min required Terraform version to
6.0
and1.10
respectively (#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_parameter
was 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
region
parameter 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
object
types in place of the previously usedany
type. - Inline
ebs_block_device
argument has been removed in favor ofebs_volumes
which is a map of EBS volumes created throughaws_ebs_volume
andaws_ebs_volume_attachment
resources. 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-attachment
example 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