Skip to content

Releases: cloudposse/terraform-aws-ecs-alb-service-task

v0.63.0

09 Feb 21:02
d97111f
Compare
Choose a tag to compare
Allow disabling the default Security Group @ento (#160)

what

  • This PR adds a new variable, security_group_enabled (default: true), that lets you disable the creation of aws_security_group.ecs_service

why

  • Currently there is no way to disable the creation of aws_security_group.ecs_service, even if you disable its security group rules through var.enable_all_egress_rule, var.enable_icmp_rule, var.use_alb_security_group, and var.use_nlb_cidr_blocks.
  • In my case, I wanted to use my own security group by specifying its id in var.security_group_ids. Not being able to disable the creation of aws_security_group.ecs_service led to clutter in the list of security groups in AWS console and potential confusion as to which ones were actually used
  • It would also be an option to not create aws_security_group.ecs_service when no security group rules would be created, but I thought it better to have an explicit variable for controlling it

v0.62.1

07 Feb 01:11
c04d65d
Compare
Choose a tag to compare

🚀 Enhancements

Don't create IAM role for the service if there are no load balancers @ento (#156)

what

  • #155 was meant/stated to fix #136, but the PR didn't actually change the line that was causing the issue
  • This PR makes the necessary change to fix the issue, which is to change the conditional for determining whether to create an IAM role for the ECS service that this module provisions: don't create the role if var.ecs_load_balancers is empty; otherwise, create it

why

  • The IAM role is assigned a policy that allows it to call load balancer APIs, which isn't necessary if no load balancing is needed
  • Trying to attach the role to the ECS service anyways with network mode set to bridge results in an error as noted by #136

references

Previous PRs

  • #118 (used == at first, later changed to >=)
  • #137 (uses >=, was closed in favor of #118)
  • #145 (uses ==, was closed in favor of #155)

v0.62.0

24 Jan 19:52
4294ee2
Compare
Choose a tag to compare
#146 fixes volume configuration bug where both docker and EFS volumes are c… @bradj (#159)

…reated yet only one is needed #146

what

  • Removes volumes variable in favor of two variables: efs_volumes and docker_volumes

why

  • Currently, both docker_volume_configuration and efs_volume_configuration properties are required on all volumes objects
  • This causes 2 volume blocks to be created: one as docker_volume_configuration and the other as efs_volume_configuration regardless of which is actually needed
  • The aws_ecs_task_definition resource does not allow multiple types of volumes to be defined and throws the error ClientException: When the volume parameter is specified, only one volume configuration type should be used.

references

v0.61.0

19 Jan 02:13
a3d3037
Compare
Choose a tag to compare
feat: adds ephemeral_storage_size var for Fargate @Gowiem (#158)

what

  • Adds var.ephemeral_storage_size + usage within the task definition

why

  • Enables Fargate tasks to increase the size of their ephemeral storage

references

v0.60.1

13 Jan 16:08
766d9cd
Compare
Choose a tag to compare

🚀 Enhancements

Add empty string to outputs @1david5 (#157)

what

  • Add empty string to the try function in service_name and service_arn outputs.

why

  • Prevent error when module enabled is set to false.

image

v0.60.0

27 Dec 22:11
5777ca3
Compare
Choose a tag to compare

🚀 Enhancements

Restore release cadence @Nuru (#155)

what and why

v0.59.0

15 Dec 23:13
dba1474
Compare
Choose a tag to compare
v0.59.0 Pre-release
Pre-release
feat: add configurable runtime @ethanrubio (#151)

what

  • add configurable runtime platform to the AWS task definiton

why

  • so we can spin up ARM Fargate tasks

references

https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/ecs_task_definition#runtime_platform

v0.58.0 Unstable Pre-release

07 Jul 02:45
851ae54
Compare
Choose a tag to compare
Pre-release

We are revising and standardizing our handling of security groups and security group rules across all our Terraform modules. This is an early attempt with significant breaking changes. We will make further breaking changes soon, so using this version is not recommended.

Updated with deployment circuit breaker @flywheelnz (#120)

what

  • Updated to support deployment circuit breaker and optional rollback

why

  • AWS feature compatability

v0.57.0 Unstable Pre-Release

15 Jun 18:42
4988650
Compare
Choose a tag to compare
Pre-release

We are revising and standardizing our handling of security groups and security group rules across all our Terraform modules. This is an early attempt with significant breaking changes. We will make further breaking changes soon, so using this version is not recommended.

feat: use security-group module instead of resource @SweetOps (#117)

what

  • use security-group module instead of resource
  • update tests

why

  • more flexible than current implementation
  • bring configuration of security group/rules to one standard

references

  • CPCO-409

v0.56.0

02 Jun 14:16
91284c5
Compare
Choose a tag to compare
Add ECS Service with ignore desired_count @realrill (#116)

what

  • Add ignore_desired_count aws_ecs_service that has lifecycle setup to ignore desired_count changes

why

  • Desired count is a rough estimate that can be volatile during peak hours of the service that the containers serve
  • Autoscaling policies may have scaled the number of tasks to above/below the desired count, so on a deployment of a new feature/change we don't want the desired count to be reset

references

  • No GitHub Issue for this as far as I'm aware