Skip to content

Releases: oozou/terraform-aws-ecs-fargate-service

v1.4.1

22 Jul 10:58
4e1f8ba
Compare
Choose a tag to compare

Added

Changed

  • Update support override port for health_check TargetGroup
    • Resources: aws_lb_target_group
      • Update port = lookup(each.value.health_check, "port", null) to health_check part for support option override port
    • Variables: alb_target_group

Removed

v1.4.0

22 Jul 10:44
Compare
Choose a tag to compare

Added

Changed

  • Update support multiple TargetGroup
    • Resources: aws_lb_target_group, aws_lb_listener_rule
      • Update aws_lb_target_group for support multiple TargetGroup with for_each instead count
        • count = local.is_create_target_group ? 1 : 0 -> for_each = var.alb_target_group
        • Append enabled = lookup(each.value.health_check, "enabled", null) to health_check object in this resource
        • Append dynamic "stickiness" to support stickiness option of TargetGroup
      • Update aws_lb_listener_rule for support create rules for multiple TargetGroup
        • count = local.is_create_target_group ? 1 : 0 -> count = length(var.alb_listener_rules)
        • Update dynamic of forward type, redirect type, path_pattern, host_header, http_header, query_string for support multiple value
    • Variables: alb_target_group, alb_listener_rules

Removed

  • Locals: is_create_target_group and container_target_group_object

v1.3.0

24 Oct 03:47
040f05d
Compare
Choose a tag to compare

Added

  • Support customization metric autoscaling
    • Local to make condition create resources: local.is_created_aws_appautoscaling_target local.is_target_tracking_scaling local.is_contain_predefined_metric
    • Related resources: aws_appautoscaling_policy.target_tracking_scaling_policies, aws_appautoscaling_policy.step_scaling_policies, module.step_alarm
    • Variables: step_scaling_configuration, target_tracking_configuration

Changed

  • Update resource tagging
    • local tags append with module's name created this resource
    • Resources: aws_secretsmanager_secret.this
  • Conditional to create resources: aws_appautoscaling_target.this, aws_appautoscaling_policy.target_tracking_scaling_policies, aws_appautoscaling_policy.step_scaling_policies

Removed

  • Variables: scaling_configuration

Full Changelog: v1.2.0...v1.3.0

v1.2.0

11 Oct 04:07
d41b12b
Compare
Choose a tag to compare

Added

  • Support custom and built-in module KMS for cloudwatch log group
    • Resources: data.aws_iam_policy_document.cloudwatch_log_group_kms_policy, module.cloudwatch_log_group_kms
    • Variables: is_create_default_kms, cloudwatch_log_group_kms_key_arn
  • Validation condition local.raise_multiple_container_attach_to_alb
  • New method to create task definition with support multiple container local.container_task_definitions
    • Variables: container
  • Support for 1 secretManager: N secret
    • Resources: aws_secretsmanager_secret.this, aws_secretsmanager_secret_version.this, aws_iam_role_policy.task_execution_role_access_secret

Changed

  • Update example of simple usage examples/simple/main.tf, examples/simple/versions.tf and examples/simple/outputs.tf

Removed

  • Non-used module level validation local.raise_vpc_id_empty, local.raise_service_port_empty, local.raise_health_check_empty and local.raise_alb_listener_arn_empty
  • Remove all previous method to construct the task definition for ECS
  • Remove all secrets usage 1 key : 1 secret; use 1 secret in JSON form
    • Resources: aws_secretsmanager_secret.service_secrets, aws_secretsmanager_secret_version.service_secrets, aws_iam_role_policy.task_execution_secrets
  • Remove unused variables is_attach_service_with_lb, service_info, apm_sidecar_ecr_url, apm_config. unix_max_connection, entry_point and command

Full Changelog: v1.1.12...v1.2.0

v1.1.12

23 Jan 06:54
7239283
Compare
Choose a tag to compare

Added

  • Add and verify example in ./examples/simple
  • Add outputs cloudwatch_log_group_name and cloudwatch_log_group_arn
  • Add variable propagate_tags with default value TASK_DEFINITION

Changed

  • Target group naming local.log_group_name; remove service in string
  • Update task definition's construction procedure for the secret ARN
  • Update resource random_string.service_secret_random_suffix's attribute length from 6 to 5
  • Update resource aws_iam_role_policy.task_execution_secrets's condition and resource arns
  • Update resource aws_ecs_service.this to support propagate_tags

Removed

  • Remove local.task_role_id
  • Remove all previous secrets creation
    • The following local are removed secret_manager_arns ,secret_names, secrets_name_arn_map, secrets_task_unique_definition, secret_manager_json_arn, secrets_name_json_arn_map, secrets_json_task_definition
  • Remove resource:
    • aws_secretsmanager_secret.service_json_secrets
    • aws_secretsmanager_secret_version.service_json_secrets
  • Remove outputs outask_role_id and secret_json_arn
  • Remove variable json_secret_variables

Full Changelog: v1.1.11...v1.1.12

v1.1.11

26 Dec 05:05
5bb288e
Compare
Choose a tag to compare

What's Changed

Added

  • Add outputs target_group_arn and target_group_id

Full Changelog: v1.1.10...v1.1.11

v1.1.10

13 Dec 06:49
664acfd
Compare
Choose a tag to compare

What's Changed

  • feat: support send alarm to additional resource by @xshot9011 in #31

[v1.1.10] - 2022-12-13

Added

  • Support naming override with var.name_override; raise exception if naming override or formatted name is not given
    • local.empty_prefix
    • local.empty_environment
    • local.empty_name
    • local.raise_empty_name
  • Add new variables var.name_override
  • Add support step scaling alarm in module step_alarm
    • concat([aws_appautoscaling_policy.step_scaling_policies[each.key].arn], lookup(each.value, "alarm_actions", lookup(var.scaling_configuration, "default_alarm_actions", [])))

Changed

  • Update data sources
    • data.aws_caller_identity.current to data.aws_caller_identity.this
    • data.aws_region.current to data.aws_region.this
  • Rename variables in local {...}
    • local.service_name to local.name
  • Update how to struct task definition
    • Remove local.container_definitions
    • Update local.container_definitions_ec2
    • Add local.pre_container_definitions_template, local.apm_template, local.ec2_template, local.ec2_template and local.render_container_definitions
  • Update variables description and default value for var.prefix, var.environment and var.name
  • Rename variables
    • var.secrets to var.secret_variables
    • var.json_secrets to var.json_secret_variables
    • var.envvars to var.environment_variables data structure is changed
  • Update resource aws_lb_listener_rule.this's argument
    • name from format("%s-service-secrets", local.service_name) to format("%s-ecs", var.name)
    • tags from merge(local.tags, { "Name" : format("%s-service-secrets", local.service_name) }) to merge(local.tags, { "Name" : format("%s-ecs", local.name) })
  • Update resource aws_appautoscaling_policy.target_tracking_scaling_policies's argument
    • name from format("%s-%s-scaling-policy", local.service_name, each.key) to format("%s-%s-scaling-policy", local.name, replace(each.key, "_", "-"))
  • Update resource aws_appautoscaling_policy.step_scaling_policies's argument
    • name from format("%s-%s-scaling-policy", local.service_name, each.key) to format("%s-%s-scaling-policy", local.name, replace(each.key, "_", "-"))
  • Update module module.step_alarm's argument
    • name from format("%s-%s-alarm", local.service_name, each.key) to replace(each.key, "_", "-")
    • statistic from lookup(each.value, "statistic", "Average") to lookup(each.value, "statistic", null)
  • Update parameter in file task-definitions/*.json to match with others

Removed

  • Remove role validator (Let's AWS API handle this)
    • data.aws_iam_role.get_ecs_task_role
    • data.aws_iam_role.get_ecs_task_execution_role

Full Changelog: v1.1.9...v1.1.10

v1.1.9

13 Dec 06:48
3f73600
Compare
Choose a tag to compare

What's Changed

[v1.1.9] - 2022-11-23

Changed

  • Update meta-argument to count on resource aws_iam_role_policy_attachment.task_role
  • Update resource aws_lb_target_group.this to auto substr if service name is longer than 29

Removed

  • Remove local service_name_tmp
  • Remove local ecs_task_role_policy_arns (change to count)

Full Changelog: v1.1.8...v1.1.9

v1.1.8

17 Nov 08:04
bd1bd21
Compare
Choose a tag to compare

What's Changed

  • enhancement: use cloudwatch alarm as centralized module by @xshot9011 in #28

Changed

  • Update .pre-commit-config.yaml
  • Migrate resource aws_appautoscaling_policy.step_scaling_policies.step_adjustment to dynamic step_adjustment block
  • Update resource aws_cloudwatch_metric_alarm.step_alarm to be module step_alarm (v1.0.0)

Removed

  • Remove local.ecs_default_task_role_policy_arns

Full Changelog: v1.1.7...v1.1.8

v1.1.7

11 Oct 04:39
efd3778
Compare
Choose a tag to compare

Added

  • Add variable var.is_application_scratch_volume_enabled to support enabled temporary storage on ecs

Changed

  • On variable var.service_info to support additional mount point

Full Changelog: v1.1.6...v1.1.7