terraform-aws-ecs-alb-service-task

Terraform module which implements an ECS service which exposes a web service via ALB.

APACHE-2.0 License

Stars
146
Committers
55

Bot releases are visible (Hide)

terraform-aws-ecs-alb-service-task -

Published by Gowiem about 4 years ago

terraform-aws-ecs-alb-service-task -

Published by jamengual about 4 years ago

what

  • Allow ECS services to register and deregister targets on a Target Group

why

  • To support the use of ALBs

references

terraform-aws-ecs-alb-service-task -

Published by jamengual over 4 years ago

** what

bump the label module to the latest and allow the environment to be set; add $self to contributors.

terraform-aws-ecs-alb-service-task -

Published by jamengual over 4 years ago

what

  • Recently AWS announced support for EFS volumes in ECS fargate. This pull request adds those options to the task defenition.

why

  • To reflect the current ecr task definition volume configuration options

references

terraform-aws-ecs-alb-service-task -

Published by jamengual over 4 years ago

Change-Id: Ib507b196870340011e8afdfc1f381ae735ba9099

what

Error: "name" must match [\w+=,.@-]

  on .terraform/modules/ecs_alb_service_task/terraform-aws-ecs-alb-service-task-0.32.0/main.tf line 195, in resource "aws_iam_role_policy" "ecs_exec":
 195: resource "aws_iam_role_policy" "ecs_exec" {
  • The fix ensures that aws_iam_role_policy and aws_iam_policy_document are not created if task_exec_role_arn is passed in.

why

  • Fix the bug.
terraform-aws-ecs-alb-service-task -

Published by osterman over 4 years ago

terraform-aws-ecs-alb-service-task - 0.31.0: Updates to add tags to task_definition

Published by Gowiem over 4 years ago

what

Add tags to aws_ecs_task_definition

why

Tags were defined but missing from the task

references

N/A

terraform-aws-ecs-alb-service-task - 0.30.0: Override task role

Published by nitrocode over 4 years ago

what

Overriding the task role arm instead of the module creating a new task role

why

  • When moving an ecs service and task over to this module, there may already be a task role present. If there is already a task role present, we shouldn't have to create a new one, then use the outputs to grab the arn, and attach policies to it. It should be able to reuse an existing role.
  • An import of the existing role as the new role also wouldn't work due to the name change which will cause a removal and recreation

references

https://github.com/cloudposse/terraform-aws-ecs-alb-service-task/pull/58/

terraform-aws-ecs-alb-service-task - 0.29.0: Adds flag around creating ICMP SG Rule

Published by Gowiem over 4 years ago

what

Enable or disable the icmp rule on the security group using a flag

why

You may not need icmp so this will give you the option to enable or disable it

references

https://github.com/cloudposse/terraform-aws-ecs-alb-service-task/pull/54

terraform-aws-ecs-alb-service-task - 0.28.0: Adds description to ICMP SG Rule

Published by Gowiem over 4 years ago

what

  • Added description to the ICMP rule

why

  • Describing SG rules is a best practice to help auditors

references

terraform-aws-ecs-alb-service-task -

Published by osterman over 4 years ago

terraform-aws-ecs-alb-service-task - 0.26.0 Use the ECS service role for the ECS service

Published by aknysh over 4 years ago

what

  • Use the ECS service role for the ECS service

why

  • The role was created but never used
  • Note that the role does not apply if network_mode = "awsvpc"

references

terraform-aws-ecs-alb-service-task - 0.25.0 Don't tag resources when using old ARN format

Published by aknysh over 4 years ago

what

  • Don't tag resources when using old ARN format

why

  • If the old ARN format is still used, then this module should not tag the service as that's not possible with the old ARN format

related

terraform-aws-ecs-alb-service-task - 0.24.0 Adds permissions_boundary option

Published by maximmi over 4 years ago

what

  • Adds permissions_boundary option for the 3 created roles

why

  • allow to configure permissions_boundary
terraform-aws-ecs-alb-service-task - 0.23.0 Adds logs:CreateLogGroup to ECS Exec Role

Published by maximmi over 4 years ago

what

  • logs:CreateLogGroup added

why

  • This allows the ECS Service to create the log group so it does need to be created by the module user before hand.
terraform-aws-ecs-alb-service-task - 0.22.0 grant ssm:GetParameters to ecs_exec role

Published by maximmi over 4 years ago

what

  • ssm:GetParameters action added to ecs_exec role

why

  • ssm:GetParameters allows to use the secrets and valueFrom for the ssm params
terraform-aws-ecs-alb-service-task - 0.21.0 Add option to set NLB ingress rule

Published by aknysh over 4 years ago

what

  • Add option to set NLB ingress rule

why

  • NLBs do not support security group membership, but it is nonetheless useful to specify the CIDR ingress rule for the ECS security group, as the code does for the ALB
terraform-aws-ecs-alb-service-task - 0.20.0 Add support for "capacity_provider_strategy"

Published by aknysh almost 5 years ago

what

  • Add support for "capacity_provider_strategy"

why

  • Reduce costs by specifying different capacity_provider

Example configuration for FARGATE_SPOT to reduce ECS Fargate workloads costs

capacity_provider_strategies = [
    {
      capacity_provider = "FARGATE_SPOT"
      weight            = 3
      base              = null
    },
    {
      capacity_provider = "FARGATE"
      weight            = 1
      base              = null
    }
]
terraform-aws-ecs-alb-service-task - 0.19.0 Add option to define an empty ALB SGs

Published by aknysh almost 5 years ago

what

  • Add option to define an empty ALB SGs

why

  • This option is for the cases where ECS launch type is EC2 and the network mode is host and there is no ALB fronting the application
terraform-aws-ecs-alb-service-task - 0.18.0 Add more configuration options from AWS provider

Published by aknysh almost 5 years ago

what

  • Add missing configuration options/blocks that are available in terraform AWS provider:

    • aws_ecs_service

      • placement_constraints
      • platform_version
      • service_registries
      • scheduling_strategy
      • ordered_placement_strategy
    • aws_ecs_task_definition

      • placement_constraints
      • proxy_configuration

why

  • Allow to specify the arguments/blocks for ECS service and task definition