Skip to content

v4.0.0

Compare
Choose a tag to compare
@antonbabenko antonbabenko released this 08 Jun 13:26
· 88 commits to master since this release

4.0.0 (2022-06-08)

⚠ BREAKING CHANGES

  • Upgrade module to include capacity providers and bump minimum supported versions (#60)

List of backwards incompatible changes

  • Minimum supported version of Terraform AWS provider updated to v4.6 to support the latest resources utilized
  • Minimum supported version of Terraform updated to v1.0
  • ecs-instance-profile sub-module has been removed; this functionality is available through the terraform-aws-modules/terraform-aws-autoscaling module starting with version v6.5.0. Please see the examples/complete example for a demonstration on how to use and integrate with the terraform-aws-autoscaling module.
  • The container_insights and capacity_providers variables have been replaced by new variables - see below for more details

Additional changes

Added

  • Support for aws_ecs_capacity_provider has been added to the module

Modified

  • The container_insights variable has been replaced with the cluster_settings variable which allows users to enable/disable container insights and also allows for not specifying at all for regions where container insights is currently not supported.
  • The capacity_providers variable has been replaced with fargate_capacity_providersand autoscaling_capacity_providers. This allows users to specify either Fargate based capacity providers, EC2 AutoScaling Group capacity providers, or both.
  • Previously capacity_providers and default_capacity_provider_strategy usage looked like:
    capacity_providers = ["FARGATE", "FARGATE_SPOT"]

    default_capacity_provider_strategy = [{
        capacity_provider = "FARGATE"
        weight            = 50
        base              = 20
        }, {
        capacity_provider = "FARGATE_SPOT"
        weight            = 50
    }]

Where the current equivalent now looks like:

    fargate_capacity_providers = {
        FARGATE = {
            default_capacity_provider_strategy = {
                weight = 50
                base   = 20
            }
        }
        FARGATE_SPOT = {
            default_capacity_provider_strategy = {
                weight = 50
            }
        }
    }
  • Previously capacity_providers accepted the name of an AutoScaling Group created externally; this is now replaced by the usage of autoscaling_capacity_providers which incorporates the usage of the newly added support for aws_ecs_capacity_provider

Removed

See the upgrade guide for more details.