Skip to content

Releases: terraform-aws-modules/terraform-aws-ec2-instance

v6.0.1

25 Jun 17:23
Compare
Choose a tag to compare

6.0.1 (2025-06-25)

Bug Fixes

  • Lower minimum Terraform version to 1.5.7 (#441) (abce6d9)

v6.0.0

24 Jun 19:29
Compare
Choose a tag to compare

6.0.0 (2025-06-24)

⚠ BREAKING CHANGES

  • Upgrade AWS provider and min required Terraform version to 6.0 and 1.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 used any type.
  • Inline ebs_block_device argument has been removed in favor of ebs_volumes which is a map of EBS volumes created through aws_ebs_volume and aws_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

v5.8.0

30 Mar 16:10
Compare
Choose a tag to compare

5.8.0 (2025-03-30)

Features

  • Disable IMDSv1 per AWS default behavior change (#424) (ce8ae23)

v5.7.1

11 Oct 16:02
Compare
Choose a tag to compare

5.7.1 (2024-10-11)

Bug Fixes

  • Update CI workflow versions to latest (#409) (e48d67f)

v5.7.0

26 Aug 23:39
Compare
Choose a tag to compare

5.7.0 (2024-08-26)

Features

v5.6.1

07 Mar 02:30
Compare
Choose a tag to compare

5.6.1 (2024-03-07)

Bug Fixes

  • Update CI workflow versions to remove deprecated runtime warnings (#379) (2c9e615)

v5.6.0

25 Dec 13:48
Compare
Choose a tag to compare

5.6.0 (2023-12-25)

Features

v5.5.0

30 Aug 23:53
Compare
Choose a tag to compare

5.5.0 (2023-08-30)

Features

  • Add example for connecting via Session Manager without Internet access (#336) (68edef8)

v5.4.0

30 Aug 23:15
Compare
Choose a tag to compare

5.4.0 (2023-08-30)

Features

v5.3.1

17 Aug 04:05
Compare
Choose a tag to compare

5.3.1 (2023-08-17)

Bug Fixes

  • Fixed ami variable when using without ssm (#354) (a1691a0)