You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
resource"aws_codedeploy_deployment_group""this" {
# app_name - (required) is a type of stringapp_name=var.app_name# autoscaling_groups - (optional) is a type of set of stringautoscaling_groups=var.autoscaling_groups# deployment_config_name - (optional) is a type of stringdeployment_config_name=var.deployment_config_name# deployment_group_name - (required) is a type of stringdeployment_group_name=var.deployment_group_name# service_role_arn - (required) is a type of stringservice_role_arn=var.service_role_arndynamic"alarm_configuration" {
for_each=var.alarm_configurationcontent {
# alarms - (optional) is a type of set of stringalarms=alarm_configuration.value["alarms"]
# enabled - (optional) is a type of boolenabled=alarm_configuration.value["enabled"]
# ignore_poll_alarm_failure - (optional) is a type of boolignore_poll_alarm_failure=alarm_configuration.value["ignore_poll_alarm_failure"]
}
}
dynamic"auto_rollback_configuration" {
for_each=var.auto_rollback_configurationcontent {
# enabled - (optional) is a type of boolenabled=auto_rollback_configuration.value["enabled"]
# events - (optional) is a type of set of stringevents=auto_rollback_configuration.value["events"]
}
}
dynamic"blue_green_deployment_config" {
for_each=var.blue_green_deployment_configcontent {
dynamic"deployment_ready_option" {
for_each=blue_green_deployment_config.value.deployment_ready_optioncontent {
# action_on_timeout - (optional) is a type of stringaction_on_timeout=deployment_ready_option.value["action_on_timeout"]
# wait_time_in_minutes - (optional) is a type of numberwait_time_in_minutes=deployment_ready_option.value["wait_time_in_minutes"]
}
}
dynamic"green_fleet_provisioning_option" {
for_each=blue_green_deployment_config.value.green_fleet_provisioning_optioncontent {
# action - (optional) is a type of stringaction=green_fleet_provisioning_option.value["action"]
}
}
dynamic"terminate_blue_instances_on_deployment_success" {
for_each=blue_green_deployment_config.value.terminate_blue_instances_on_deployment_successcontent {
# action - (optional) is a type of stringaction=terminate_blue_instances_on_deployment_success.value["action"]
# termination_wait_time_in_minutes - (optional) is a type of numbertermination_wait_time_in_minutes=terminate_blue_instances_on_deployment_success.value["termination_wait_time_in_minutes"]
}
}
}
}
dynamic"deployment_style" {
for_each=var.deployment_stylecontent {
# deployment_option - (optional) is a type of stringdeployment_option=deployment_style.value["deployment_option"]
# deployment_type - (optional) is a type of stringdeployment_type=deployment_style.value["deployment_type"]
}
}
dynamic"ec2_tag_filter" {
for_each=var.ec2_tag_filtercontent {
# key - (optional) is a type of stringkey=ec2_tag_filter.value["key"]
# type - (optional) is a type of stringtype=ec2_tag_filter.value["type"]
# value - (optional) is a type of stringvalue=ec2_tag_filter.value["value"]
}
}
dynamic"ec2_tag_set" {
for_each=var.ec2_tag_setcontent {
dynamic"ec2_tag_filter" {
for_each=ec2_tag_set.value.ec2_tag_filtercontent {
# key - (optional) is a type of stringkey=ec2_tag_filter.value["key"]
# type - (optional) is a type of stringtype=ec2_tag_filter.value["type"]
# value - (optional) is a type of stringvalue=ec2_tag_filter.value["value"]
}
}
}
}
dynamic"ecs_service" {
for_each=var.ecs_servicecontent {
# cluster_name - (required) is a type of stringcluster_name=ecs_service.value["cluster_name"]
# service_name - (required) is a type of stringservice_name=ecs_service.value["service_name"]
}
}
dynamic"load_balancer_info" {
for_each=var.load_balancer_infocontent {
dynamic"elb_info" {
for_each=load_balancer_info.value.elb_infocontent {
# name - (optional) is a type of stringname=elb_info.value["name"]
}
}
dynamic"target_group_info" {
for_each=load_balancer_info.value.target_group_infocontent {
# name - (optional) is a type of stringname=target_group_info.value["name"]
}
}
dynamic"target_group_pair_info" {
for_each=load_balancer_info.value.target_group_pair_infocontent {
dynamic"prod_traffic_route" {
for_each=target_group_pair_info.value.prod_traffic_routecontent {
# listener_arns - (required) is a type of set of stringlistener_arns=prod_traffic_route.value["listener_arns"]
}
}
dynamic"target_group" {
for_each=target_group_pair_info.value.target_groupcontent {
# name - (required) is a type of stringname=target_group.value["name"]
}
}
dynamic"test_traffic_route" {
for_each=target_group_pair_info.value.test_traffic_routecontent {
# listener_arns - (required) is a type of set of stringlistener_arns=test_traffic_route.value["listener_arns"]
}
}
}
}
}
}
dynamic"on_premises_instance_tag_filter" {
for_each=var.on_premises_instance_tag_filtercontent {
# key - (optional) is a type of stringkey=on_premises_instance_tag_filter.value["key"]
# type - (optional) is a type of stringtype=on_premises_instance_tag_filter.value["type"]
# value - (optional) is a type of stringvalue=on_premises_instance_tag_filter.value["value"]
}
}
dynamic"trigger_configuration" {
for_each=var.trigger_configurationcontent {
# trigger_events - (required) is a type of set of stringtrigger_events=trigger_configuration.value["trigger_events"]
# trigger_name - (required) is a type of stringtrigger_name=trigger_configuration.value["trigger_name"]
# trigger_target_arn - (required) is a type of stringtrigger_target_arn=trigger_configuration.value["trigger_target_arn"]
}
}
}