v1.1.10
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 givenlocal.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
todata.aws_caller_identity.this
data.aws_region.current
todata.aws_region.this
- Rename variables in local {...}
local.service_name
tolocal.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
andlocal.render_container_definitions
- Remove
- Update variables description and default value for
var.prefix
,var.environment
andvar.name
- Rename variables
var.secrets
tovar.secret_variables
var.json_secrets
tovar.json_secret_variables
var.envvars
tovar.environment_variables
data structure is changed
- Update resource
aws_lb_listener_rule.this
's argumentname
fromformat("%s-service-secrets", local.service_name)
toformat("%s-ecs", var.name)
tags
frommerge(local.tags, { "Name" : format("%s-service-secrets", local.service_name) })
tomerge(local.tags, { "Name" : format("%s-ecs", local.name) })
- Update resource
aws_appautoscaling_policy.target_tracking_scaling_policies
's argumentname
fromformat("%s-%s-scaling-policy", local.service_name, each.key)
toformat("%s-%s-scaling-policy", local.name, replace(each.key, "_", "-"))
- Update resource
aws_appautoscaling_policy.step_scaling_policies
's argumentname
fromformat("%s-%s-scaling-policy", local.service_name, each.key)
toformat("%s-%s-scaling-policy", local.name, replace(each.key, "_", "-"))
- Update module
module.step_alarm
's argumentname
fromformat("%s-%s-alarm", local.service_name, each.key)
toreplace(each.key, "_", "-")
statistic
fromlookup(each.value, "statistic", "Average")
tolookup(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