AWS Classic

Pulumi Official
Package maintained by Pulumi
v5.11.0 published on Wednesday, Aug 17, 2022 by Pulumi

DeploymentGroup

Provides a CodeDeploy Deployment Group for a CodeDeploy Application

NOTE on blue/green deployments: When using green_fleet_provisioning_option with the COPY_AUTO_SCALING_GROUP action, CodeDeploy will create a new ASG with a different name. This ASG is not managed by this provider and will conflict with existing configuration and state. You may want to use a different approach to managing deployments that involve multiple ASG, such as DISCOVER_EXISTING with separate blue and green ASG.

Example Usage

using System.Collections.Generic;
using Pulumi;
using Aws = Pulumi.Aws;

return await Deployment.RunAsync(() => 
{
    var exampleRole = new Aws.Iam.Role("exampleRole", new()
    {
        AssumeRolePolicy = @"{
  ""Version"": ""2012-10-17"",
  ""Statement"": [
    {
      ""Sid"": """",
      ""Effect"": ""Allow"",
      ""Principal"": {
        ""Service"": ""codedeploy.amazonaws.com""
      },
      ""Action"": ""sts:AssumeRole""
    }
  ]
}
",
    });

    var aWSCodeDeployRole = new Aws.Iam.RolePolicyAttachment("aWSCodeDeployRole", new()
    {
        PolicyArn = "arn:aws:iam::aws:policy/service-role/AWSCodeDeployRole",
        Role = exampleRole.Name,
    });

    var exampleApplication = new Aws.CodeDeploy.Application("exampleApplication");

    var exampleTopic = new Aws.Sns.Topic("exampleTopic");

    var exampleDeploymentGroup = new Aws.CodeDeploy.DeploymentGroup("exampleDeploymentGroup", new()
    {
        AppName = exampleApplication.Name,
        DeploymentGroupName = "example-group",
        ServiceRoleArn = exampleRole.Arn,
        Ec2TagSets = new[]
        {
            new Aws.CodeDeploy.Inputs.DeploymentGroupEc2TagSetArgs
            {
                Ec2TagFilters = new[]
                {
                    new Aws.CodeDeploy.Inputs.DeploymentGroupEc2TagSetEc2TagFilterArgs
                    {
                        Key = "filterkey1",
                        Type = "KEY_AND_VALUE",
                        Value = "filtervalue",
                    },
                    new Aws.CodeDeploy.Inputs.DeploymentGroupEc2TagSetEc2TagFilterArgs
                    {
                        Key = "filterkey2",
                        Type = "KEY_AND_VALUE",
                        Value = "filtervalue",
                    },
                },
            },
        },
        TriggerConfigurations = new[]
        {
            new Aws.CodeDeploy.Inputs.DeploymentGroupTriggerConfigurationArgs
            {
                TriggerEvents = new[]
                {
                    "DeploymentFailure",
                },
                TriggerName = "example-trigger",
                TriggerTargetArn = exampleTopic.Arn,
            },
        },
        AutoRollbackConfiguration = new Aws.CodeDeploy.Inputs.DeploymentGroupAutoRollbackConfigurationArgs
        {
            Enabled = true,
            Events = new[]
            {
                "DEPLOYMENT_FAILURE",
            },
        },
        AlarmConfiguration = new Aws.CodeDeploy.Inputs.DeploymentGroupAlarmConfigurationArgs
        {
            Alarms = new[]
            {
                "my-alarm-name",
            },
            Enabled = true,
        },
    });

});
package main

import (
	"fmt"

	"github.com/pulumi/pulumi-aws/sdk/v5/go/aws/codedeploy"
	"github.com/pulumi/pulumi-aws/sdk/v5/go/aws/iam"
	"github.com/pulumi/pulumi-aws/sdk/v5/go/aws/sns"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		exampleRole, err := iam.NewRole(ctx, "exampleRole", &iam.RoleArgs{
			AssumeRolePolicy: pulumi.Any(fmt.Sprintf(`{
  "Version": "2012-10-17",
  "Statement": [
    {
      "Sid": "",
      "Effect": "Allow",
      "Principal": {
        "Service": "codedeploy.amazonaws.com"
      },
      "Action": "sts:AssumeRole"
    }
  ]
}
`)),
		})
		if err != nil {
			return err
		}
		_, err = iam.NewRolePolicyAttachment(ctx, "aWSCodeDeployRole", &iam.RolePolicyAttachmentArgs{
			PolicyArn: pulumi.String("arn:aws:iam::aws:policy/service-role/AWSCodeDeployRole"),
			Role:      exampleRole.Name,
		})
		if err != nil {
			return err
		}
		exampleApplication, err := codedeploy.NewApplication(ctx, "exampleApplication", nil)
		if err != nil {
			return err
		}
		exampleTopic, err := sns.NewTopic(ctx, "exampleTopic", nil)
		if err != nil {
			return err
		}
		_, err = codedeploy.NewDeploymentGroup(ctx, "exampleDeploymentGroup", &codedeploy.DeploymentGroupArgs{
			AppName:             exampleApplication.Name,
			DeploymentGroupName: pulumi.String("example-group"),
			ServiceRoleArn:      exampleRole.Arn,
			Ec2TagSets: codedeploy.DeploymentGroupEc2TagSetArray{
				&codedeploy.DeploymentGroupEc2TagSetArgs{
					Ec2TagFilters: codedeploy.DeploymentGroupEc2TagSetEc2TagFilterArray{
						&codedeploy.DeploymentGroupEc2TagSetEc2TagFilterArgs{
							Key:   pulumi.String("filterkey1"),
							Type:  pulumi.String("KEY_AND_VALUE"),
							Value: pulumi.String("filtervalue"),
						},
						&codedeploy.DeploymentGroupEc2TagSetEc2TagFilterArgs{
							Key:   pulumi.String("filterkey2"),
							Type:  pulumi.String("KEY_AND_VALUE"),
							Value: pulumi.String("filtervalue"),
						},
					},
				},
			},
			TriggerConfigurations: codedeploy.DeploymentGroupTriggerConfigurationArray{
				&codedeploy.DeploymentGroupTriggerConfigurationArgs{
					TriggerEvents: pulumi.StringArray{
						pulumi.String("DeploymentFailure"),
					},
					TriggerName:      pulumi.String("example-trigger"),
					TriggerTargetArn: exampleTopic.Arn,
				},
			},
			AutoRollbackConfiguration: &codedeploy.DeploymentGroupAutoRollbackConfigurationArgs{
				Enabled: pulumi.Bool(true),
				Events: pulumi.StringArray{
					pulumi.String("DEPLOYMENT_FAILURE"),
				},
			},
			AlarmConfiguration: &codedeploy.DeploymentGroupAlarmConfigurationArgs{
				Alarms: pulumi.StringArray{
					pulumi.String("my-alarm-name"),
				},
				Enabled: pulumi.Bool(true),
			},
		})
		if err != nil {
			return err
		}
		return nil
	})
}
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.iam.Role;
import com.pulumi.aws.iam.RoleArgs;
import com.pulumi.aws.iam.RolePolicyAttachment;
import com.pulumi.aws.iam.RolePolicyAttachmentArgs;
import com.pulumi.aws.codedeploy.Application;
import com.pulumi.aws.sns.Topic;
import com.pulumi.aws.codedeploy.DeploymentGroup;
import com.pulumi.aws.codedeploy.DeploymentGroupArgs;
import com.pulumi.aws.codedeploy.inputs.DeploymentGroupEc2TagSetArgs;
import com.pulumi.aws.codedeploy.inputs.DeploymentGroupTriggerConfigurationArgs;
import com.pulumi.aws.codedeploy.inputs.DeploymentGroupAutoRollbackConfigurationArgs;
import com.pulumi.aws.codedeploy.inputs.DeploymentGroupAlarmConfigurationArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;

public class App {
    public static void main(String[] args) {
        Pulumi.run(App::stack);
    }

    public static void stack(Context ctx) {
        var exampleRole = new Role("exampleRole", RoleArgs.builder()        
            .assumeRolePolicy("""
{
  "Version": "2012-10-17",
  "Statement": [
    {
      "Sid": "",
      "Effect": "Allow",
      "Principal": {
        "Service": "codedeploy.amazonaws.com"
      },
      "Action": "sts:AssumeRole"
    }
  ]
}
            """)
            .build());

        var aWSCodeDeployRole = new RolePolicyAttachment("aWSCodeDeployRole", RolePolicyAttachmentArgs.builder()        
            .policyArn("arn:aws:iam::aws:policy/service-role/AWSCodeDeployRole")
            .role(exampleRole.name())
            .build());

        var exampleApplication = new Application("exampleApplication");

        var exampleTopic = new Topic("exampleTopic");

        var exampleDeploymentGroup = new DeploymentGroup("exampleDeploymentGroup", DeploymentGroupArgs.builder()        
            .appName(exampleApplication.name())
            .deploymentGroupName("example-group")
            .serviceRoleArn(exampleRole.arn())
            .ec2TagSets(DeploymentGroupEc2TagSetArgs.builder()
                .ec2TagFilters(                
                    DeploymentGroupEc2TagSetEc2TagFilterArgs.builder()
                        .key("filterkey1")
                        .type("KEY_AND_VALUE")
                        .value("filtervalue")
                        .build(),
                    DeploymentGroupEc2TagSetEc2TagFilterArgs.builder()
                        .key("filterkey2")
                        .type("KEY_AND_VALUE")
                        .value("filtervalue")
                        .build())
                .build())
            .triggerConfigurations(DeploymentGroupTriggerConfigurationArgs.builder()
                .triggerEvents("DeploymentFailure")
                .triggerName("example-trigger")
                .triggerTargetArn(exampleTopic.arn())
                .build())
            .autoRollbackConfiguration(DeploymentGroupAutoRollbackConfigurationArgs.builder()
                .enabled(true)
                .events("DEPLOYMENT_FAILURE")
                .build())
            .alarmConfiguration(DeploymentGroupAlarmConfigurationArgs.builder()
                .alarms("my-alarm-name")
                .enabled(true)
                .build())
            .build());

    }
}
import pulumi
import pulumi_aws as aws

example_role = aws.iam.Role("exampleRole", assume_role_policy="""{
  "Version": "2012-10-17",
  "Statement": [
    {
      "Sid": "",
      "Effect": "Allow",
      "Principal": {
        "Service": "codedeploy.amazonaws.com"
      },
      "Action": "sts:AssumeRole"
    }
  ]
}
""")
a_ws_code_deploy_role = aws.iam.RolePolicyAttachment("aWSCodeDeployRole",
    policy_arn="arn:aws:iam::aws:policy/service-role/AWSCodeDeployRole",
    role=example_role.name)
example_application = aws.codedeploy.Application("exampleApplication")
example_topic = aws.sns.Topic("exampleTopic")
example_deployment_group = aws.codedeploy.DeploymentGroup("exampleDeploymentGroup",
    app_name=example_application.name,
    deployment_group_name="example-group",
    service_role_arn=example_role.arn,
    ec2_tag_sets=[aws.codedeploy.DeploymentGroupEc2TagSetArgs(
        ec2_tag_filters=[
            aws.codedeploy.DeploymentGroupEc2TagSetEc2TagFilterArgs(
                key="filterkey1",
                type="KEY_AND_VALUE",
                value="filtervalue",
            ),
            aws.codedeploy.DeploymentGroupEc2TagSetEc2TagFilterArgs(
                key="filterkey2",
                type="KEY_AND_VALUE",
                value="filtervalue",
            ),
        ],
    )],
    trigger_configurations=[aws.codedeploy.DeploymentGroupTriggerConfigurationArgs(
        trigger_events=["DeploymentFailure"],
        trigger_name="example-trigger",
        trigger_target_arn=example_topic.arn,
    )],
    auto_rollback_configuration=aws.codedeploy.DeploymentGroupAutoRollbackConfigurationArgs(
        enabled=True,
        events=["DEPLOYMENT_FAILURE"],
    ),
    alarm_configuration=aws.codedeploy.DeploymentGroupAlarmConfigurationArgs(
        alarms=["my-alarm-name"],
        enabled=True,
    ))
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";

const exampleRole = new aws.iam.Role("exampleRole", {assumeRolePolicy: `{
  "Version": "2012-10-17",
  "Statement": [
    {
      "Sid": "",
      "Effect": "Allow",
      "Principal": {
        "Service": "codedeploy.amazonaws.com"
      },
      "Action": "sts:AssumeRole"
    }
  ]
}
`});
const aWSCodeDeployRole = new aws.iam.RolePolicyAttachment("aWSCodeDeployRole", {
    policyArn: "arn:aws:iam::aws:policy/service-role/AWSCodeDeployRole",
    role: exampleRole.name,
});
const exampleApplication = new aws.codedeploy.Application("exampleApplication", {});
const exampleTopic = new aws.sns.Topic("exampleTopic", {});
const exampleDeploymentGroup = new aws.codedeploy.DeploymentGroup("exampleDeploymentGroup", {
    appName: exampleApplication.name,
    deploymentGroupName: "example-group",
    serviceRoleArn: exampleRole.arn,
    ec2TagSets: [{
        ec2TagFilters: [
            {
                key: "filterkey1",
                type: "KEY_AND_VALUE",
                value: "filtervalue",
            },
            {
                key: "filterkey2",
                type: "KEY_AND_VALUE",
                value: "filtervalue",
            },
        ],
    }],
    triggerConfigurations: [{
        triggerEvents: ["DeploymentFailure"],
        triggerName: "example-trigger",
        triggerTargetArn: exampleTopic.arn,
    }],
    autoRollbackConfiguration: {
        enabled: true,
        events: ["DEPLOYMENT_FAILURE"],
    },
    alarmConfiguration: {
        alarms: ["my-alarm-name"],
        enabled: true,
    },
});
resources:
  exampleRole:
    type: aws:iam:Role
    properties:
      assumeRolePolicy: |
        {
          "Version": "2012-10-17",
          "Statement": [
            {
              "Sid": "",
              "Effect": "Allow",
              "Principal": {
                "Service": "codedeploy.amazonaws.com"
              },
              "Action": "sts:AssumeRole"
            }
          ]
        }        
  aWSCodeDeployRole:
    type: aws:iam:RolePolicyAttachment
    properties:
      policyArn: arn:aws:iam::aws:policy/service-role/AWSCodeDeployRole
      role: ${exampleRole.name}
  exampleApplication:
    type: aws:codedeploy:Application
  exampleTopic:
    type: aws:sns:Topic
  exampleDeploymentGroup:
    type: aws:codedeploy:DeploymentGroup
    properties:
      appName: ${exampleApplication.name}
      deploymentGroupName: example-group
      serviceRoleArn: ${exampleRole.arn}
      ec2TagSets:
        - ec2TagFilters:
            - key: filterkey1
              type: KEY_AND_VALUE
              value: filtervalue
            - key: filterkey2
              type: KEY_AND_VALUE
              value: filtervalue
      triggerConfigurations:
        - triggerEvents:
            - DeploymentFailure
          triggerName: example-trigger
          triggerTargetArn: ${exampleTopic.arn}
      autoRollbackConfiguration:
        enabled: true
        events:
          - DEPLOYMENT_FAILURE
      alarmConfiguration:
        alarms:
          - my-alarm-name
        enabled: true

Blue Green Deployments with ECS

using System.Collections.Generic;
using Pulumi;
using Aws = Pulumi.Aws;

return await Deployment.RunAsync(() => 
{
    var exampleApplication = new Aws.CodeDeploy.Application("exampleApplication", new()
    {
        ComputePlatform = "ECS",
    });

    var exampleDeploymentGroup = new Aws.CodeDeploy.DeploymentGroup("exampleDeploymentGroup", new()
    {
        AppName = exampleApplication.Name,
        DeploymentConfigName = "CodeDeployDefault.ECSAllAtOnce",
        DeploymentGroupName = "example",
        ServiceRoleArn = aws_iam_role.Example.Arn,
        AutoRollbackConfiguration = new Aws.CodeDeploy.Inputs.DeploymentGroupAutoRollbackConfigurationArgs
        {
            Enabled = true,
            Events = new[]
            {
                "DEPLOYMENT_FAILURE",
            },
        },
        BlueGreenDeploymentConfig = new Aws.CodeDeploy.Inputs.DeploymentGroupBlueGreenDeploymentConfigArgs
        {
            DeploymentReadyOption = new Aws.CodeDeploy.Inputs.DeploymentGroupBlueGreenDeploymentConfigDeploymentReadyOptionArgs
            {
                ActionOnTimeout = "CONTINUE_DEPLOYMENT",
            },
            TerminateBlueInstancesOnDeploymentSuccess = new Aws.CodeDeploy.Inputs.DeploymentGroupBlueGreenDeploymentConfigTerminateBlueInstancesOnDeploymentSuccessArgs
            {
                Action = "TERMINATE",
                TerminationWaitTimeInMinutes = 5,
            },
        },
        DeploymentStyle = new Aws.CodeDeploy.Inputs.DeploymentGroupDeploymentStyleArgs
        {
            DeploymentOption = "WITH_TRAFFIC_CONTROL",
            DeploymentType = "BLUE_GREEN",
        },
        EcsService = new Aws.CodeDeploy.Inputs.DeploymentGroupEcsServiceArgs
        {
            ClusterName = aws_ecs_cluster.Example.Name,
            ServiceName = aws_ecs_service.Example.Name,
        },
        LoadBalancerInfo = new Aws.CodeDeploy.Inputs.DeploymentGroupLoadBalancerInfoArgs
        {
            TargetGroupPairInfo = new Aws.CodeDeploy.Inputs.DeploymentGroupLoadBalancerInfoTargetGroupPairInfoArgs
            {
                ProdTrafficRoute = new Aws.CodeDeploy.Inputs.DeploymentGroupLoadBalancerInfoTargetGroupPairInfoProdTrafficRouteArgs
                {
                    ListenerArns = new[]
                    {
                        aws_lb_listener.Example.Arn,
                    },
                },
                TargetGroups = new[]
                {
                    new Aws.CodeDeploy.Inputs.DeploymentGroupLoadBalancerInfoTargetGroupPairInfoTargetGroupArgs
                    {
                        Name = aws_lb_target_group.Blue.Name,
                    },
                    new Aws.CodeDeploy.Inputs.DeploymentGroupLoadBalancerInfoTargetGroupPairInfoTargetGroupArgs
                    {
                        Name = aws_lb_target_group.Green.Name,
                    },
                },
            },
        },
    });

});
package main

import (
	"github.com/pulumi/pulumi-aws/sdk/v5/go/aws/codedeploy"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		exampleApplication, err := codedeploy.NewApplication(ctx, "exampleApplication", &codedeploy.ApplicationArgs{
			ComputePlatform: pulumi.String("ECS"),
		})
		if err != nil {
			return err
		}
		_, err = codedeploy.NewDeploymentGroup(ctx, "exampleDeploymentGroup", &codedeploy.DeploymentGroupArgs{
			AppName:              exampleApplication.Name,
			DeploymentConfigName: pulumi.String("CodeDeployDefault.ECSAllAtOnce"),
			DeploymentGroupName:  pulumi.String("example"),
			ServiceRoleArn:       pulumi.Any(aws_iam_role.Example.Arn),
			AutoRollbackConfiguration: &codedeploy.DeploymentGroupAutoRollbackConfigurationArgs{
				Enabled: pulumi.Bool(true),
				Events: pulumi.StringArray{
					pulumi.String("DEPLOYMENT_FAILURE"),
				},
			},
			BlueGreenDeploymentConfig: &codedeploy.DeploymentGroupBlueGreenDeploymentConfigArgs{
				DeploymentReadyOption: &codedeploy.DeploymentGroupBlueGreenDeploymentConfigDeploymentReadyOptionArgs{
					ActionOnTimeout: pulumi.String("CONTINUE_DEPLOYMENT"),
				},
				TerminateBlueInstancesOnDeploymentSuccess: &codedeploy.DeploymentGroupBlueGreenDeploymentConfigTerminateBlueInstancesOnDeploymentSuccessArgs{
					Action:                       pulumi.String("TERMINATE"),
					TerminationWaitTimeInMinutes: pulumi.Int(5),
				},
			},
			DeploymentStyle: &codedeploy.DeploymentGroupDeploymentStyleArgs{
				DeploymentOption: pulumi.String("WITH_TRAFFIC_CONTROL"),
				DeploymentType:   pulumi.String("BLUE_GREEN"),
			},
			EcsService: &codedeploy.DeploymentGroupEcsServiceArgs{
				ClusterName: pulumi.Any(aws_ecs_cluster.Example.Name),
				ServiceName: pulumi.Any(aws_ecs_service.Example.Name),
			},
			LoadBalancerInfo: &codedeploy.DeploymentGroupLoadBalancerInfoArgs{
				TargetGroupPairInfo: &codedeploy.DeploymentGroupLoadBalancerInfoTargetGroupPairInfoArgs{
					ProdTrafficRoute: &codedeploy.DeploymentGroupLoadBalancerInfoTargetGroupPairInfoProdTrafficRouteArgs{
						ListenerArns: pulumi.StringArray{
							pulumi.Any(aws_lb_listener.Example.Arn),
						},
					},
					TargetGroups: codedeploy.DeploymentGroupLoadBalancerInfoTargetGroupPairInfoTargetGroupArray{
						&codedeploy.DeploymentGroupLoadBalancerInfoTargetGroupPairInfoTargetGroupArgs{
							Name: pulumi.Any(aws_lb_target_group.Blue.Name),
						},
						&codedeploy.DeploymentGroupLoadBalancerInfoTargetGroupPairInfoTargetGroupArgs{
							Name: pulumi.Any(aws_lb_target_group.Green.Name),
						},
					},
				},
			},
		})
		if err != nil {
			return err
		}
		return nil
	})
}
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.codedeploy.Application;
import com.pulumi.aws.codedeploy.ApplicationArgs;
import com.pulumi.aws.codedeploy.DeploymentGroup;
import com.pulumi.aws.codedeploy.DeploymentGroupArgs;
import com.pulumi.aws.codedeploy.inputs.DeploymentGroupAutoRollbackConfigurationArgs;
import com.pulumi.aws.codedeploy.inputs.DeploymentGroupBlueGreenDeploymentConfigArgs;
import com.pulumi.aws.codedeploy.inputs.DeploymentGroupBlueGreenDeploymentConfigDeploymentReadyOptionArgs;
import com.pulumi.aws.codedeploy.inputs.DeploymentGroupBlueGreenDeploymentConfigTerminateBlueInstancesOnDeploymentSuccessArgs;
import com.pulumi.aws.codedeploy.inputs.DeploymentGroupDeploymentStyleArgs;
import com.pulumi.aws.codedeploy.inputs.DeploymentGroupEcsServiceArgs;
import com.pulumi.aws.codedeploy.inputs.DeploymentGroupLoadBalancerInfoArgs;
import com.pulumi.aws.codedeploy.inputs.DeploymentGroupLoadBalancerInfoTargetGroupPairInfoArgs;
import com.pulumi.aws.codedeploy.inputs.DeploymentGroupLoadBalancerInfoTargetGroupPairInfoProdTrafficRouteArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;

public class App {
    public static void main(String[] args) {
        Pulumi.run(App::stack);
    }

    public static void stack(Context ctx) {
        var exampleApplication = new Application("exampleApplication", ApplicationArgs.builder()        
            .computePlatform("ECS")
            .build());

        var exampleDeploymentGroup = new DeploymentGroup("exampleDeploymentGroup", DeploymentGroupArgs.builder()        
            .appName(exampleApplication.name())
            .deploymentConfigName("CodeDeployDefault.ECSAllAtOnce")
            .deploymentGroupName("example")
            .serviceRoleArn(aws_iam_role.example().arn())
            .autoRollbackConfiguration(DeploymentGroupAutoRollbackConfigurationArgs.builder()
                .enabled(true)
                .events("DEPLOYMENT_FAILURE")
                .build())
            .blueGreenDeploymentConfig(DeploymentGroupBlueGreenDeploymentConfigArgs.builder()
                .deploymentReadyOption(DeploymentGroupBlueGreenDeploymentConfigDeploymentReadyOptionArgs.builder()
                    .actionOnTimeout("CONTINUE_DEPLOYMENT")
                    .build())
                .terminateBlueInstancesOnDeploymentSuccess(DeploymentGroupBlueGreenDeploymentConfigTerminateBlueInstancesOnDeploymentSuccessArgs.builder()
                    .action("TERMINATE")
                    .terminationWaitTimeInMinutes(5)
                    .build())
                .build())
            .deploymentStyle(DeploymentGroupDeploymentStyleArgs.builder()
                .deploymentOption("WITH_TRAFFIC_CONTROL")
                .deploymentType("BLUE_GREEN")
                .build())
            .ecsService(DeploymentGroupEcsServiceArgs.builder()
                .clusterName(aws_ecs_cluster.example().name())
                .serviceName(aws_ecs_service.example().name())
                .build())
            .loadBalancerInfo(DeploymentGroupLoadBalancerInfoArgs.builder()
                .targetGroupPairInfo(DeploymentGroupLoadBalancerInfoTargetGroupPairInfoArgs.builder()
                    .prodTrafficRoute(DeploymentGroupLoadBalancerInfoTargetGroupPairInfoProdTrafficRouteArgs.builder()
                        .listenerArns(aws_lb_listener.example().arn())
                        .build())
                    .targetGroups(                    
                        DeploymentGroupLoadBalancerInfoTargetGroupPairInfoTargetGroupArgs.builder()
                            .name(aws_lb_target_group.blue().name())
                            .build(),
                        DeploymentGroupLoadBalancerInfoTargetGroupPairInfoTargetGroupArgs.builder()
                            .name(aws_lb_target_group.green().name())
                            .build())
                    .build())
                .build())
            .build());

    }
}
import pulumi
import pulumi_aws as aws

example_application = aws.codedeploy.Application("exampleApplication", compute_platform="ECS")
example_deployment_group = aws.codedeploy.DeploymentGroup("exampleDeploymentGroup",
    app_name=example_application.name,
    deployment_config_name="CodeDeployDefault.ECSAllAtOnce",
    deployment_group_name="example",
    service_role_arn=aws_iam_role["example"]["arn"],
    auto_rollback_configuration=aws.codedeploy.DeploymentGroupAutoRollbackConfigurationArgs(
        enabled=True,
        events=["DEPLOYMENT_FAILURE"],
    ),
    blue_green_deployment_config=aws.codedeploy.DeploymentGroupBlueGreenDeploymentConfigArgs(
        deployment_ready_option=aws.codedeploy.DeploymentGroupBlueGreenDeploymentConfigDeploymentReadyOptionArgs(
            action_on_timeout="CONTINUE_DEPLOYMENT",
        ),
        terminate_blue_instances_on_deployment_success=aws.codedeploy.DeploymentGroupBlueGreenDeploymentConfigTerminateBlueInstancesOnDeploymentSuccessArgs(
            action="TERMINATE",
            termination_wait_time_in_minutes=5,
        ),
    ),
    deployment_style=aws.codedeploy.DeploymentGroupDeploymentStyleArgs(
        deployment_option="WITH_TRAFFIC_CONTROL",
        deployment_type="BLUE_GREEN",
    ),
    ecs_service=aws.codedeploy.DeploymentGroupEcsServiceArgs(
        cluster_name=aws_ecs_cluster["example"]["name"],
        service_name=aws_ecs_service["example"]["name"],
    ),
    load_balancer_info=aws.codedeploy.DeploymentGroupLoadBalancerInfoArgs(
        target_group_pair_info=aws.codedeploy.DeploymentGroupLoadBalancerInfoTargetGroupPairInfoArgs(
            prod_traffic_route=aws.codedeploy.DeploymentGroupLoadBalancerInfoTargetGroupPairInfoProdTrafficRouteArgs(
                listener_arns=[aws_lb_listener["example"]["arn"]],
            ),
            target_groups=[
                aws.codedeploy.DeploymentGroupLoadBalancerInfoTargetGroupPairInfoTargetGroupArgs(
                    name=aws_lb_target_group["blue"]["name"],
                ),
                aws.codedeploy.DeploymentGroupLoadBalancerInfoTargetGroupPairInfoTargetGroupArgs(
                    name=aws_lb_target_group["green"]["name"],
                ),
            ],
        ),
    ))
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";

const exampleApplication = new aws.codedeploy.Application("exampleApplication", {computePlatform: "ECS"});
const exampleDeploymentGroup = new aws.codedeploy.DeploymentGroup("exampleDeploymentGroup", {
    appName: exampleApplication.name,
    deploymentConfigName: "CodeDeployDefault.ECSAllAtOnce",
    deploymentGroupName: "example",
    serviceRoleArn: aws_iam_role.example.arn,
    autoRollbackConfiguration: {
        enabled: true,
        events: ["DEPLOYMENT_FAILURE"],
    },
    blueGreenDeploymentConfig: {
        deploymentReadyOption: {
            actionOnTimeout: "CONTINUE_DEPLOYMENT",
        },
        terminateBlueInstancesOnDeploymentSuccess: {
            action: "TERMINATE",
            terminationWaitTimeInMinutes: 5,
        },
    },
    deploymentStyle: {
        deploymentOption: "WITH_TRAFFIC_CONTROL",
        deploymentType: "BLUE_GREEN",
    },
    ecsService: {
        clusterName: aws_ecs_cluster.example.name,
        serviceName: aws_ecs_service.example.name,
    },
    loadBalancerInfo: {
        targetGroupPairInfo: {
            prodTrafficRoute: {
                listenerArns: [aws_lb_listener.example.arn],
            },
            targetGroups: [
                {
                    name: aws_lb_target_group.blue.name,
                },
                {
                    name: aws_lb_target_group.green.name,
                },
            ],
        },
    },
});
resources:
  exampleApplication:
    type: aws:codedeploy:Application
    properties:
      computePlatform: ECS
  exampleDeploymentGroup:
    type: aws:codedeploy:DeploymentGroup
    properties:
      appName: ${exampleApplication.name}
      deploymentConfigName: CodeDeployDefault.ECSAllAtOnce
      deploymentGroupName: example
      serviceRoleArn: ${aws_iam_role.example.arn}
      autoRollbackConfiguration:
        enabled: true
        events:
          - DEPLOYMENT_FAILURE
      blueGreenDeploymentConfig:
        deploymentReadyOption:
          actionOnTimeout: CONTINUE_DEPLOYMENT
        terminateBlueInstancesOnDeploymentSuccess:
          action: TERMINATE
          terminationWaitTimeInMinutes: 5
      deploymentStyle:
        deploymentOption: WITH_TRAFFIC_CONTROL
        deploymentType: BLUE_GREEN
      ecsService:
        clusterName: ${aws_ecs_cluster.example.name}
        serviceName: ${aws_ecs_service.example.name}
      loadBalancerInfo:
        targetGroupPairInfo:
          prodTrafficRoute:
            listenerArns:
              - ${aws_lb_listener.example.arn}
          targetGroups:
            - name: ${aws_lb_target_group.blue.name}
            - name: ${aws_lb_target_group.green.name}

Blue Green Deployments with Servers and Classic ELB

using System.Collections.Generic;
using Pulumi;
using Aws = Pulumi.Aws;

return await Deployment.RunAsync(() => 
{
    var exampleApplication = new Aws.CodeDeploy.Application("exampleApplication");

    var exampleDeploymentGroup = new Aws.CodeDeploy.DeploymentGroup("exampleDeploymentGroup", new()
    {
        AppName = exampleApplication.Name,
        DeploymentGroupName = "example-group",
        ServiceRoleArn = aws_iam_role.Example.Arn,
        DeploymentStyle = new Aws.CodeDeploy.Inputs.DeploymentGroupDeploymentStyleArgs
        {
            DeploymentOption = "WITH_TRAFFIC_CONTROL",
            DeploymentType = "BLUE_GREEN",
        },
        LoadBalancerInfo = new Aws.CodeDeploy.Inputs.DeploymentGroupLoadBalancerInfoArgs
        {
            ElbInfos = new[]
            {
                new Aws.CodeDeploy.Inputs.DeploymentGroupLoadBalancerInfoElbInfoArgs
                {
                    Name = aws_elb.Example.Name,
                },
            },
        },
        BlueGreenDeploymentConfig = new Aws.CodeDeploy.Inputs.DeploymentGroupBlueGreenDeploymentConfigArgs
        {
            DeploymentReadyOption = new Aws.CodeDeploy.Inputs.DeploymentGroupBlueGreenDeploymentConfigDeploymentReadyOptionArgs
            {
                ActionOnTimeout = "STOP_DEPLOYMENT",
                WaitTimeInMinutes = 60,
            },
            GreenFleetProvisioningOption = new Aws.CodeDeploy.Inputs.DeploymentGroupBlueGreenDeploymentConfigGreenFleetProvisioningOptionArgs
            {
                Action = "DISCOVER_EXISTING",
            },
            TerminateBlueInstancesOnDeploymentSuccess = new Aws.CodeDeploy.Inputs.DeploymentGroupBlueGreenDeploymentConfigTerminateBlueInstancesOnDeploymentSuccessArgs
            {
                Action = "KEEP_ALIVE",
            },
        },
    });

});
package main

import (
	"github.com/pulumi/pulumi-aws/sdk/v5/go/aws/codedeploy"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		exampleApplication, err := codedeploy.NewApplication(ctx, "exampleApplication", nil)
		if err != nil {
			return err
		}
		_, err = codedeploy.NewDeploymentGroup(ctx, "exampleDeploymentGroup", &codedeploy.DeploymentGroupArgs{
			AppName:             exampleApplication.Name,
			DeploymentGroupName: pulumi.String("example-group"),
			ServiceRoleArn:      pulumi.Any(aws_iam_role.Example.Arn),
			DeploymentStyle: &codedeploy.DeploymentGroupDeploymentStyleArgs{
				DeploymentOption: pulumi.String("WITH_TRAFFIC_CONTROL"),
				DeploymentType:   pulumi.String("BLUE_GREEN"),
			},
			LoadBalancerInfo: &codedeploy.DeploymentGroupLoadBalancerInfoArgs{
				ElbInfos: codedeploy.DeploymentGroupLoadBalancerInfoElbInfoArray{
					&codedeploy.DeploymentGroupLoadBalancerInfoElbInfoArgs{
						Name: pulumi.Any(aws_elb.Example.Name),
					},
				},
			},
			BlueGreenDeploymentConfig: &codedeploy.DeploymentGroupBlueGreenDeploymentConfigArgs{
				DeploymentReadyOption: &codedeploy.DeploymentGroupBlueGreenDeploymentConfigDeploymentReadyOptionArgs{
					ActionOnTimeout:   pulumi.String("STOP_DEPLOYMENT"),
					WaitTimeInMinutes: pulumi.Int(60),
				},
				GreenFleetProvisioningOption: &codedeploy.DeploymentGroupBlueGreenDeploymentConfigGreenFleetProvisioningOptionArgs{
					Action: pulumi.String("DISCOVER_EXISTING"),
				},
				TerminateBlueInstancesOnDeploymentSuccess: &codedeploy.DeploymentGroupBlueGreenDeploymentConfigTerminateBlueInstancesOnDeploymentSuccessArgs{
					Action: pulumi.String("KEEP_ALIVE"),
				},
			},
		})
		if err != nil {
			return err
		}
		return nil
	})
}
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.codedeploy.Application;
import com.pulumi.aws.codedeploy.DeploymentGroup;
import com.pulumi.aws.codedeploy.DeploymentGroupArgs;
import com.pulumi.aws.codedeploy.inputs.DeploymentGroupDeploymentStyleArgs;
import com.pulumi.aws.codedeploy.inputs.DeploymentGroupLoadBalancerInfoArgs;
import com.pulumi.aws.codedeploy.inputs.DeploymentGroupBlueGreenDeploymentConfigArgs;
import com.pulumi.aws.codedeploy.inputs.DeploymentGroupBlueGreenDeploymentConfigDeploymentReadyOptionArgs;
import com.pulumi.aws.codedeploy.inputs.DeploymentGroupBlueGreenDeploymentConfigGreenFleetProvisioningOptionArgs;
import com.pulumi.aws.codedeploy.inputs.DeploymentGroupBlueGreenDeploymentConfigTerminateBlueInstancesOnDeploymentSuccessArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;

public class App {
    public static void main(String[] args) {
        Pulumi.run(App::stack);
    }

    public static void stack(Context ctx) {
        var exampleApplication = new Application("exampleApplication");

        var exampleDeploymentGroup = new DeploymentGroup("exampleDeploymentGroup", DeploymentGroupArgs.builder()        
            .appName(exampleApplication.name())
            .deploymentGroupName("example-group")
            .serviceRoleArn(aws_iam_role.example().arn())
            .deploymentStyle(DeploymentGroupDeploymentStyleArgs.builder()
                .deploymentOption("WITH_TRAFFIC_CONTROL")
                .deploymentType("BLUE_GREEN")
                .build())
            .loadBalancerInfo(DeploymentGroupLoadBalancerInfoArgs.builder()
                .elbInfos(DeploymentGroupLoadBalancerInfoElbInfoArgs.builder()
                    .name(aws_elb.example().name())
                    .build())
                .build())
            .blueGreenDeploymentConfig(DeploymentGroupBlueGreenDeploymentConfigArgs.builder()
                .deploymentReadyOption(DeploymentGroupBlueGreenDeploymentConfigDeploymentReadyOptionArgs.builder()
                    .actionOnTimeout("STOP_DEPLOYMENT")
                    .waitTimeInMinutes(60)
                    .build())
                .greenFleetProvisioningOption(DeploymentGroupBlueGreenDeploymentConfigGreenFleetProvisioningOptionArgs.builder()
                    .action("DISCOVER_EXISTING")
                    .build())
                .terminateBlueInstancesOnDeploymentSuccess(DeploymentGroupBlueGreenDeploymentConfigTerminateBlueInstancesOnDeploymentSuccessArgs.builder()
                    .action("KEEP_ALIVE")
                    .build())
                .build())
            .build());

    }
}
import pulumi
import pulumi_aws as aws

example_application = aws.codedeploy.Application("exampleApplication")
example_deployment_group = aws.codedeploy.DeploymentGroup("exampleDeploymentGroup",
    app_name=example_application.name,
    deployment_group_name="example-group",
    service_role_arn=aws_iam_role["example"]["arn"],
    deployment_style=aws.codedeploy.DeploymentGroupDeploymentStyleArgs(
        deployment_option="WITH_TRAFFIC_CONTROL",
        deployment_type="BLUE_GREEN",
    ),
    load_balancer_info=aws.codedeploy.DeploymentGroupLoadBalancerInfoArgs(
        elb_infos=[aws.codedeploy.DeploymentGroupLoadBalancerInfoElbInfoArgs(
            name=aws_elb["example"]["name"],
        )],
    ),
    blue_green_deployment_config=aws.codedeploy.DeploymentGroupBlueGreenDeploymentConfigArgs(
        deployment_ready_option=aws.codedeploy.DeploymentGroupBlueGreenDeploymentConfigDeploymentReadyOptionArgs(
            action_on_timeout="STOP_DEPLOYMENT",
            wait_time_in_minutes=60,
        ),
        green_fleet_provisioning_option=aws.codedeploy.DeploymentGroupBlueGreenDeploymentConfigGreenFleetProvisioningOptionArgs(
            action="DISCOVER_EXISTING",
        ),
        terminate_blue_instances_on_deployment_success=aws.codedeploy.DeploymentGroupBlueGreenDeploymentConfigTerminateBlueInstancesOnDeploymentSuccessArgs(
            action="KEEP_ALIVE",
        ),
    ))
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";

const exampleApplication = new aws.codedeploy.Application("exampleApplication", {});
const exampleDeploymentGroup = new aws.codedeploy.DeploymentGroup("exampleDeploymentGroup", {
    appName: exampleApplication.name,
    deploymentGroupName: "example-group",
    serviceRoleArn: aws_iam_role.example.arn,
    deploymentStyle: {
        deploymentOption: "WITH_TRAFFIC_CONTROL",
        deploymentType: "BLUE_GREEN",
    },
    loadBalancerInfo: {
        elbInfos: [{
            name: aws_elb.example.name,
        }],
    },
    blueGreenDeploymentConfig: {
        deploymentReadyOption: {
            actionOnTimeout: "STOP_DEPLOYMENT",
            waitTimeInMinutes: 60,
        },
        greenFleetProvisioningOption: {
            action: "DISCOVER_EXISTING",
        },
        terminateBlueInstancesOnDeploymentSuccess: {
            action: "KEEP_ALIVE",
        },
    },
});
resources:
  exampleApplication:
    type: aws:codedeploy:Application
  exampleDeploymentGroup:
    type: aws:codedeploy:DeploymentGroup
    properties:
      appName: ${exampleApplication.name}
      deploymentGroupName: example-group
      serviceRoleArn: ${aws_iam_role.example.arn}
      deploymentStyle:
        deploymentOption: WITH_TRAFFIC_CONTROL
        deploymentType: BLUE_GREEN
      loadBalancerInfo:
        elbInfos:
          - name: ${aws_elb.example.name}
      blueGreenDeploymentConfig:
        deploymentReadyOption:
          actionOnTimeout: STOP_DEPLOYMENT
          waitTimeInMinutes: 60
        greenFleetProvisioningOption:
          action: DISCOVER_EXISTING
        terminateBlueInstancesOnDeploymentSuccess:
          action: KEEP_ALIVE

Create a DeploymentGroup Resource

new DeploymentGroup(name: string, args: DeploymentGroupArgs, opts?: CustomResourceOptions);
@overload
def DeploymentGroup(resource_name: str,
                    opts: Optional[ResourceOptions] = None,
                    alarm_configuration: Optional[DeploymentGroupAlarmConfigurationArgs] = None,
                    app_name: Optional[str] = None,
                    auto_rollback_configuration: Optional[DeploymentGroupAutoRollbackConfigurationArgs] = None,
                    autoscaling_groups: Optional[Sequence[str]] = None,
                    blue_green_deployment_config: Optional[DeploymentGroupBlueGreenDeploymentConfigArgs] = None,
                    deployment_config_name: Optional[str] = None,
                    deployment_group_name: Optional[str] = None,
                    deployment_style: Optional[DeploymentGroupDeploymentStyleArgs] = None,
                    ec2_tag_filters: Optional[Sequence[DeploymentGroupEc2TagFilterArgs]] = None,
                    ec2_tag_sets: Optional[Sequence[DeploymentGroupEc2TagSetArgs]] = None,
                    ecs_service: Optional[DeploymentGroupEcsServiceArgs] = None,
                    load_balancer_info: Optional[DeploymentGroupLoadBalancerInfoArgs] = None,
                    on_premises_instance_tag_filters: Optional[Sequence[DeploymentGroupOnPremisesInstanceTagFilterArgs]] = None,
                    service_role_arn: Optional[str] = None,
                    tags: Optional[Mapping[str, str]] = None,
                    trigger_configurations: Optional[Sequence[DeploymentGroupTriggerConfigurationArgs]] = None)
@overload
def DeploymentGroup(resource_name: str,
                    args: DeploymentGroupArgs,
                    opts: Optional[ResourceOptions] = None)
func NewDeploymentGroup(ctx *Context, name string, args DeploymentGroupArgs, opts ...ResourceOption) (*DeploymentGroup, error)
public DeploymentGroup(string name, DeploymentGroupArgs args, CustomResourceOptions? opts = null)
public DeploymentGroup(String name, DeploymentGroupArgs args)
public DeploymentGroup(String name, DeploymentGroupArgs args, CustomResourceOptions options)
type: aws:codedeploy:DeploymentGroup
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

name string
The unique name of the resource.
args DeploymentGroupArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name str
The unique name of the resource.
args DeploymentGroupArgs
The arguments to resource properties.
opts ResourceOptions
Bag of options to control resource's behavior.
ctx Context
Context object for the current deployment.
name string
The unique name of the resource.
args DeploymentGroupArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name string
The unique name of the resource.
args DeploymentGroupArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name String
The unique name of the resource.
args DeploymentGroupArgs
The arguments to resource properties.
options CustomResourceOptions
Bag of options to control resource's behavior.

DeploymentGroup Resource Properties

To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

Inputs

The DeploymentGroup resource accepts the following input properties:

AppName string

The name of the application.

DeploymentGroupName string

The name of the deployment group.

ServiceRoleArn string

The service role ARN that allows deployments.

AlarmConfiguration DeploymentGroupAlarmConfigurationArgs

Configuration block of alarms associated with the deployment group (documented below).

AutoRollbackConfiguration DeploymentGroupAutoRollbackConfigurationArgs

Configuration block of the automatic rollback configuration associated with the deployment group (documented below).

AutoscalingGroups List<string>

Autoscaling groups associated with the deployment group.

BlueGreenDeploymentConfig DeploymentGroupBlueGreenDeploymentConfigArgs

Configuration block of the blue/green deployment options for a deployment group (documented below).

DeploymentConfigName string

The name of the group's deployment config. The default is "CodeDeployDefault.OneAtATime".

DeploymentStyle DeploymentGroupDeploymentStyleArgs

Configuration block of the type of deployment, either in-place or blue/green, you want to run and whether to route deployment traffic behind a load balancer (documented below).

Ec2TagFilters List<DeploymentGroupEc2TagFilterArgs>

Tag filters associated with the deployment group. See the AWS docs for details.

Ec2TagSets List<DeploymentGroupEc2TagSetArgs>

Configuration block(s) of Tag filters associated with the deployment group, which are also referred to as tag groups (documented below). See the AWS docs for details.

EcsService DeploymentGroupEcsServiceArgs

Configuration block(s) of the ECS services for a deployment group (documented below).

LoadBalancerInfo DeploymentGroupLoadBalancerInfoArgs

Single configuration block of the load balancer to use in a blue/green deployment (documented below).

OnPremisesInstanceTagFilters List<DeploymentGroupOnPremisesInstanceTagFilterArgs>

On premise tag filters associated with the group. See the AWS docs for details.

Tags Dictionary<string, string>

Key-value map of resource tags. .If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.

TriggerConfigurations List<DeploymentGroupTriggerConfigurationArgs>

Configuration block(s) of the triggers for the deployment group (documented below).

AppName string

The name of the application.

DeploymentGroupName string

The name of the deployment group.

ServiceRoleArn string

The service role ARN that allows deployments.

AlarmConfiguration DeploymentGroupAlarmConfigurationArgs

Configuration block of alarms associated with the deployment group (documented below).

AutoRollbackConfiguration DeploymentGroupAutoRollbackConfigurationArgs

Configuration block of the automatic rollback configuration associated with the deployment group (documented below).

AutoscalingGroups []string

Autoscaling groups associated with the deployment group.

BlueGreenDeploymentConfig DeploymentGroupBlueGreenDeploymentConfigArgs

Configuration block of the blue/green deployment options for a deployment group (documented below).

DeploymentConfigName string

The name of the group's deployment config. The default is "CodeDeployDefault.OneAtATime".

DeploymentStyle DeploymentGroupDeploymentStyleArgs

Configuration block of the type of deployment, either in-place or blue/green, you want to run and whether to route deployment traffic behind a load balancer (documented below).

Ec2TagFilters []DeploymentGroupEc2TagFilterArgs

Tag filters associated with the deployment group. See the AWS docs for details.

Ec2TagSets []DeploymentGroupEc2TagSetArgs

Configuration block(s) of Tag filters associated with the deployment group, which are also referred to as tag groups (documented below). See the AWS docs for details.

EcsService DeploymentGroupEcsServiceArgs

Configuration block(s) of the ECS services for a deployment group (documented below).

LoadBalancerInfo DeploymentGroupLoadBalancerInfoArgs

Single configuration block of the load balancer to use in a blue/green deployment (documented below).

OnPremisesInstanceTagFilters []DeploymentGroupOnPremisesInstanceTagFilterArgs

On premise tag filters associated with the group. See the AWS docs for details.

Tags map[string]string

Key-value map of resource tags. .If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.

TriggerConfigurations []DeploymentGroupTriggerConfigurationArgs

Configuration block(s) of the triggers for the deployment group (documented below).

appName String

The name of the application.

deploymentGroupName String

The name of the deployment group.

serviceRoleArn String

The service role ARN that allows deployments.

alarmConfiguration DeploymentGroupAlarmConfigurationArgs

Configuration block of alarms associated with the deployment group (documented below).

autoRollbackConfiguration DeploymentGroupAutoRollbackConfigurationArgs

Configuration block of the automatic rollback configuration associated with the deployment group (documented below).

autoscalingGroups List<String>

Autoscaling groups associated with the deployment group.

blueGreenDeploymentConfig DeploymentGroupBlueGreenDeploymentConfigArgs

Configuration block of the blue/green deployment options for a deployment group (documented below).

deploymentConfigName String

The name of the group's deployment config. The default is "CodeDeployDefault.OneAtATime".

deploymentStyle DeploymentGroupDeploymentStyleArgs

Configuration block of the type of deployment, either in-place or blue/green, you want to run and whether to route deployment traffic behind a load balancer (documented below).

ec2TagFilters List<DeploymentGroupEc2TagFilterArgs>

Tag filters associated with the deployment group. See the AWS docs for details.

ec2TagSets List<DeploymentGroupEc2TagSetArgs>

Configuration block(s) of Tag filters associated with the deployment group, which are also referred to as tag groups (documented below). See the AWS docs for details.

ecsService DeploymentGroupEcsServiceArgs

Configuration block(s) of the ECS services for a deployment group (documented below).

loadBalancerInfo DeploymentGroupLoadBalancerInfoArgs

Single configuration block of the load balancer to use in a blue/green deployment (documented below).

onPremisesInstanceTagFilters List<DeploymentGroupOnPremisesInstanceTagFilterArgs>

On premise tag filters associated with the group. See the AWS docs for details.

tags Map<String,String>

Key-value map of resource tags. .If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.

triggerConfigurations List<DeploymentGroupTriggerConfigurationArgs>

Configuration block(s) of the triggers for the deployment group (documented below).

appName string

The name of the application.

deploymentGroupName string

The name of the deployment group.

serviceRoleArn string

The service role ARN that allows deployments.

alarmConfiguration DeploymentGroupAlarmConfigurationArgs

Configuration block of alarms associated with the deployment group (documented below).

autoRollbackConfiguration DeploymentGroupAutoRollbackConfigurationArgs

Configuration block of the automatic rollback configuration associated with the deployment group (documented below).

autoscalingGroups string[]

Autoscaling groups associated with the deployment group.

blueGreenDeploymentConfig DeploymentGroupBlueGreenDeploymentConfigArgs

Configuration block of the blue/green deployment options for a deployment group (documented below).

deploymentConfigName string

The name of the group's deployment config. The default is "CodeDeployDefault.OneAtATime".

deploymentStyle DeploymentGroupDeploymentStyleArgs

Configuration block of the type of deployment, either in-place or blue/green, you want to run and whether to route deployment traffic behind a load balancer (documented below).

ec2TagFilters DeploymentGroupEc2TagFilterArgs[]

Tag filters associated with the deployment group. See the AWS docs for details.

ec2TagSets DeploymentGroupEc2TagSetArgs[]

Configuration block(s) of Tag filters associated with the deployment group, which are also referred to as tag groups (documented below). See the AWS docs for details.

ecsService DeploymentGroupEcsServiceArgs

Configuration block(s) of the ECS services for a deployment group (documented below).

loadBalancerInfo DeploymentGroupLoadBalancerInfoArgs

Single configuration block of the load balancer to use in a blue/green deployment (documented below).

onPremisesInstanceTagFilters DeploymentGroupOnPremisesInstanceTagFilterArgs[]

On premise tag filters associated with the group. See the AWS docs for details.

tags {[key: string]: string}

Key-value map of resource tags. .If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.

triggerConfigurations DeploymentGroupTriggerConfigurationArgs[]

Configuration block(s) of the triggers for the deployment group (documented below).

app_name str

The name of the application.

deployment_group_name str

The name of the deployment group.

service_role_arn str

The service role ARN that allows deployments.

alarm_configuration DeploymentGroupAlarmConfigurationArgs

Configuration block of alarms associated with the deployment group (documented below).

auto_rollback_configuration DeploymentGroupAutoRollbackConfigurationArgs

Configuration block of the automatic rollback configuration associated with the deployment group (documented below).

autoscaling_groups Sequence[str]

Autoscaling groups associated with the deployment group.

blue_green_deployment_config DeploymentGroupBlueGreenDeploymentConfigArgs

Configuration block of the blue/green deployment options for a deployment group (documented below).

deployment_config_name str

The name of the group's deployment config. The default is "CodeDeployDefault.OneAtATime".

deployment_style DeploymentGroupDeploymentStyleArgs

Configuration block of the type of deployment, either in-place or blue/green, you want to run and whether to route deployment traffic behind a load balancer (documented below).

ec2_tag_filters Sequence[DeploymentGroupEc2TagFilterArgs]

Tag filters associated with the deployment group. See the AWS docs for details.

ec2_tag_sets Sequence[DeploymentGroupEc2TagSetArgs]

Configuration block(s) of Tag filters associated with the deployment group, which are also referred to as tag groups (documented below). See the AWS docs for details.

ecs_service DeploymentGroupEcsServiceArgs

Configuration block(s) of the ECS services for a deployment group (documented below).

load_balancer_info DeploymentGroupLoadBalancerInfoArgs

Single configuration block of the load balancer to use in a blue/green deployment (documented below).

on_premises_instance_tag_filters Sequence[DeploymentGroupOnPremisesInstanceTagFilterArgs]

On premise tag filters associated with the group. See the AWS docs for details.

tags Mapping[str, str]

Key-value map of resource tags. .If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.

trigger_configurations Sequence[DeploymentGroupTriggerConfigurationArgs]

Configuration block(s) of the triggers for the deployment group (documented below).

appName String

The name of the application.

deploymentGroupName String

The name of the deployment group.

serviceRoleArn String

The service role ARN that allows deployments.

alarmConfiguration Property Map

Configuration block of alarms associated with the deployment group (documented below).

autoRollbackConfiguration Property Map

Configuration block of the automatic rollback configuration associated with the deployment group (documented below).

autoscalingGroups List<String>

Autoscaling groups associated with the deployment group.

blueGreenDeploymentConfig Property Map

Configuration block of the blue/green deployment options for a deployment group (documented below).

deploymentConfigName String

The name of the group's deployment config. The default is "CodeDeployDefault.OneAtATime".

deploymentStyle Property Map

Configuration block of the type of deployment, either in-place or blue/green, you want to run and whether to route deployment traffic behind a load balancer (documented below).

ec2TagFilters List<Property Map>

Tag filters associated with the deployment group. See the AWS docs for details.

ec2TagSets List<Property Map>

Configuration block(s) of Tag filters associated with the deployment group, which are also referred to as tag groups (documented below). See the AWS docs for details.

ecsService Property Map

Configuration block(s) of the ECS services for a deployment group (documented below).

loadBalancerInfo Property Map

Single configuration block of the load balancer to use in a blue/green deployment (documented below).

onPremisesInstanceTagFilters List<Property Map>

On premise tag filters associated with the group. See the AWS docs for details.

tags Map<String>

Key-value map of resource tags. .If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.

triggerConfigurations List<Property Map>

Configuration block(s) of the triggers for the deployment group (documented below).

Outputs

All input properties are implicitly available as output properties. Additionally, the DeploymentGroup resource produces the following output properties:

Arn string

The ARN of the CodeDeploy deployment group.

ComputePlatform string

The destination platform type for the deployment.

DeploymentGroupId string

The ID of the CodeDeploy deployment group.

Id string

The provider-assigned unique ID for this managed resource.

TagsAll Dictionary<string, string>

A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.

Arn string

The ARN of the CodeDeploy deployment group.

ComputePlatform string

The destination platform type for the deployment.

DeploymentGroupId string

The ID of the CodeDeploy deployment group.

Id string

The provider-assigned unique ID for this managed resource.

TagsAll map[string]string

A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.

arn String

The ARN of the CodeDeploy deployment group.

computePlatform String

The destination platform type for the deployment.

deploymentGroupId String

The ID of the CodeDeploy deployment group.

id String

The provider-assigned unique ID for this managed resource.

tagsAll Map<String,String>

A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.

arn string

The ARN of the CodeDeploy deployment group.

computePlatform string

The destination platform type for the deployment.

deploymentGroupId string

The ID of the CodeDeploy deployment group.

id string

The provider-assigned unique ID for this managed resource.

tagsAll {[key: string]: string}

A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.

arn str

The ARN of the CodeDeploy deployment group.

compute_platform str

The destination platform type for the deployment.

deployment_group_id str

The ID of the CodeDeploy deployment group.

id str

The provider-assigned unique ID for this managed resource.

tags_all Mapping[str, str]

A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.

arn String

The ARN of the CodeDeploy deployment group.

computePlatform String

The destination platform type for the deployment.

deploymentGroupId String

The ID of the CodeDeploy deployment group.

id String

The provider-assigned unique ID for this managed resource.

tagsAll Map<String>

A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.

Look up an Existing DeploymentGroup Resource

Get an existing DeploymentGroup resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

public static get(name: string, id: Input<ID>, state?: DeploymentGroupState, opts?: CustomResourceOptions): DeploymentGroup
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        alarm_configuration: Optional[DeploymentGroupAlarmConfigurationArgs] = None,
        app_name: Optional[str] = None,
        arn: Optional[str] = None,
        auto_rollback_configuration: Optional[DeploymentGroupAutoRollbackConfigurationArgs] = None,
        autoscaling_groups: Optional[Sequence[str]] = None,
        blue_green_deployment_config: Optional[DeploymentGroupBlueGreenDeploymentConfigArgs] = None,
        compute_platform: Optional[str] = None,
        deployment_config_name: Optional[str] = None,
        deployment_group_id: Optional[str] = None,
        deployment_group_name: Optional[str] = None,
        deployment_style: Optional[DeploymentGroupDeploymentStyleArgs] = None,
        ec2_tag_filters: Optional[Sequence[DeploymentGroupEc2TagFilterArgs]] = None,
        ec2_tag_sets: Optional[Sequence[DeploymentGroupEc2TagSetArgs]] = None,
        ecs_service: Optional[DeploymentGroupEcsServiceArgs] = None,
        load_balancer_info: Optional[DeploymentGroupLoadBalancerInfoArgs] = None,
        on_premises_instance_tag_filters: Optional[Sequence[DeploymentGroupOnPremisesInstanceTagFilterArgs]] = None,
        service_role_arn: Optional[str] = None,
        tags: Optional[Mapping[str, str]] = None,
        tags_all: Optional[Mapping[str, str]] = None,
        trigger_configurations: Optional[Sequence[DeploymentGroupTriggerConfigurationArgs]] = None) -> DeploymentGroup
func GetDeploymentGroup(ctx *Context, name string, id IDInput, state *DeploymentGroupState, opts ...ResourceOption) (*DeploymentGroup, error)
public static DeploymentGroup Get(string name, Input<string> id, DeploymentGroupState? state, CustomResourceOptions? opts = null)
public static DeploymentGroup get(String name, Output<String> id, DeploymentGroupState state, CustomResourceOptions options)
Resource lookup is not supported in YAML
name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
resource_name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
The following state arguments are supported:
AlarmConfiguration DeploymentGroupAlarmConfigurationArgs

Configuration block of alarms associated with the deployment group (documented below).

AppName string

The name of the application.

Arn string

The ARN of the CodeDeploy deployment group.

AutoRollbackConfiguration DeploymentGroupAutoRollbackConfigurationArgs

Configuration block of the automatic rollback configuration associated with the deployment group (documented below).

AutoscalingGroups List<string>

Autoscaling groups associated with the deployment group.

BlueGreenDeploymentConfig DeploymentGroupBlueGreenDeploymentConfigArgs

Configuration block of the blue/green deployment options for a deployment group (documented below).

ComputePlatform string

The destination platform type for the deployment.

DeploymentConfigName string

The name of the group's deployment config. The default is "CodeDeployDefault.OneAtATime".

DeploymentGroupId string

The ID of the CodeDeploy deployment group.

DeploymentGroupName string

The name of the deployment group.

DeploymentStyle DeploymentGroupDeploymentStyleArgs

Configuration block of the type of deployment, either in-place or blue/green, you want to run and whether to route deployment traffic behind a load balancer (documented below).

Ec2TagFilters List<DeploymentGroupEc2TagFilterArgs>

Tag filters associated with the deployment group. See the AWS docs for details.

Ec2TagSets List<DeploymentGroupEc2TagSetArgs>

Configuration block(s) of Tag filters associated with the deployment group, which are also referred to as tag groups (documented below). See the AWS docs for details.

EcsService DeploymentGroupEcsServiceArgs

Configuration block(s) of the ECS services for a deployment group (documented below).

LoadBalancerInfo DeploymentGroupLoadBalancerInfoArgs

Single configuration block of the load balancer to use in a blue/green deployment (documented below).

OnPremisesInstanceTagFilters List<DeploymentGroupOnPremisesInstanceTagFilterArgs>

On premise tag filters associated with the group. See the AWS docs for details.

ServiceRoleArn string

The service role ARN that allows deployments.

Tags Dictionary<string, string>

Key-value map of resource tags. .If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.

TagsAll Dictionary<string, string>

A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.

TriggerConfigurations List<DeploymentGroupTriggerConfigurationArgs>

Configuration block(s) of the triggers for the deployment group (documented below).

AlarmConfiguration DeploymentGroupAlarmConfigurationArgs

Configuration block of alarms associated with the deployment group (documented below).

AppName string

The name of the application.

Arn string

The ARN of the CodeDeploy deployment group.

AutoRollbackConfiguration DeploymentGroupAutoRollbackConfigurationArgs

Configuration block of the automatic rollback configuration associated with the deployment group (documented below).

AutoscalingGroups []string

Autoscaling groups associated with the deployment group.

BlueGreenDeploymentConfig DeploymentGroupBlueGreenDeploymentConfigArgs

Configuration block of the blue/green deployment options for a deployment group (documented below).

ComputePlatform string

The destination platform type for the deployment.

DeploymentConfigName string

The name of the group's deployment config. The default is "CodeDeployDefault.OneAtATime".

DeploymentGroupId string

The ID of the CodeDeploy deployment group.

DeploymentGroupName string

The name of the deployment group.

DeploymentStyle DeploymentGroupDeploymentStyleArgs

Configuration block of the type of deployment, either in-place or blue/green, you want to run and whether to route deployment traffic behind a load balancer (documented below).

Ec2TagFilters []DeploymentGroupEc2TagFilterArgs

Tag filters associated with the deployment group. See the AWS docs for details.

Ec2TagSets []DeploymentGroupEc2TagSetArgs

Configuration block(s) of Tag filters associated with the deployment group, which are also referred to as tag groups (documented below). See the AWS docs for details.

EcsService DeploymentGroupEcsServiceArgs

Configuration block(s) of the ECS services for a deployment group (documented below).

LoadBalancerInfo DeploymentGroupLoadBalancerInfoArgs

Single configuration block of the load balancer to use in a blue/green deployment (documented below).

OnPremisesInstanceTagFilters []DeploymentGroupOnPremisesInstanceTagFilterArgs

On premise tag filters associated with the group. See the AWS docs for details.

ServiceRoleArn string

The service role ARN that allows deployments.

Tags map[string]string

Key-value map of resource tags. .If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.

TagsAll map[string]string

A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.

TriggerConfigurations []DeploymentGroupTriggerConfigurationArgs

Configuration block(s) of the triggers for the deployment group (documented below).

alarmConfiguration DeploymentGroupAlarmConfigurationArgs

Configuration block of alarms associated with the deployment group (documented below).

appName String

The name of the application.

arn String

The ARN of the CodeDeploy deployment group.

autoRollbackConfiguration DeploymentGroupAutoRollbackConfigurationArgs

Configuration block of the automatic rollback configuration associated with the deployment group (documented below).

autoscalingGroups List<String>

Autoscaling groups associated with the deployment group.

blueGreenDeploymentConfig DeploymentGroupBlueGreenDeploymentConfigArgs

Configuration block of the blue/green deployment options for a deployment group (documented below).

computePlatform String

The destination platform type for the deployment.

deploymentConfigName String

The name of the group's deployment config. The default is "CodeDeployDefault.OneAtATime".

deploymentGroupId String

The ID of the CodeDeploy deployment group.

deploymentGroupName String

The name of the deployment group.

deploymentStyle DeploymentGroupDeploymentStyleArgs

Configuration block of the type of deployment, either in-place or blue/green, you want to run and whether to route deployment traffic behind a load balancer (documented below).

ec2TagFilters List<DeploymentGroupEc2TagFilterArgs>

Tag filters associated with the deployment group. See the AWS docs for details.

ec2TagSets List<DeploymentGroupEc2TagSetArgs>

Configuration block(s) of Tag filters associated with the deployment group, which are also referred to as tag groups (documented below). See the AWS docs for details.

ecsService DeploymentGroupEcsServiceArgs

Configuration block(s) of the ECS services for a deployment group (documented below).

loadBalancerInfo DeploymentGroupLoadBalancerInfoArgs

Single configuration block of the load balancer to use in a blue/green deployment (documented below).

onPremisesInstanceTagFilters List<DeploymentGroupOnPremisesInstanceTagFilterArgs>

On premise tag filters associated with the group. See the AWS docs for details.

serviceRoleArn String

The service role ARN that allows deployments.

tags Map<String,String>

Key-value map of resource tags. .If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.

tagsAll Map<String,String>

A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.

triggerConfigurations List<DeploymentGroupTriggerConfigurationArgs>

Configuration block(s) of the triggers for the deployment group (documented below).

alarmConfiguration DeploymentGroupAlarmConfigurationArgs

Configuration block of alarms associated with the deployment group (documented below).

appName string

The name of the application.

arn string

The ARN of the CodeDeploy deployment group.

autoRollbackConfiguration DeploymentGroupAutoRollbackConfigurationArgs

Configuration block of the automatic rollback configuration associated with the deployment group (documented below).

autoscalingGroups string[]

Autoscaling groups associated with the deployment group.

blueGreenDeploymentConfig DeploymentGroupBlueGreenDeploymentConfigArgs

Configuration block of the blue/green deployment options for a deployment group (documented below).

computePlatform string

The destination platform type for the deployment.

deploymentConfigName string

The name of the group's deployment config. The default is "CodeDeployDefault.OneAtATime".

deploymentGroupId string

The ID of the CodeDeploy deployment group.

deploymentGroupName string

The name of the deployment group.

deploymentStyle DeploymentGroupDeploymentStyleArgs

Configuration block of the type of deployment, either in-place or blue/green, you want to run and whether to route deployment traffic behind a load balancer (documented below).

ec2TagFilters DeploymentGroupEc2TagFilterArgs[]

Tag filters associated with the deployment group. See the AWS docs for details.

ec2TagSets DeploymentGroupEc2TagSetArgs[]

Configuration block(s) of Tag filters associated with the deployment group, which are also referred to as tag groups (documented below). See the AWS docs for details.

ecsService DeploymentGroupEcsServiceArgs

Configuration block(s) of the ECS services for a deployment group (documented below).

loadBalancerInfo DeploymentGroupLoadBalancerInfoArgs

Single configuration block of the load balancer to use in a blue/green deployment (documented below).

onPremisesInstanceTagFilters DeploymentGroupOnPremisesInstanceTagFilterArgs[]

On premise tag filters associated with the group. See the AWS docs for details.

serviceRoleArn string

The service role ARN that allows deployments.

tags {[key: string]: string}

Key-value map of resource tags. .If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.

tagsAll {[key: string]: string}

A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.

triggerConfigurations DeploymentGroupTriggerConfigurationArgs[]

Configuration block(s) of the triggers for the deployment group (documented below).

alarm_configuration DeploymentGroupAlarmConfigurationArgs

Configuration block of alarms associated with the deployment group (documented below).

app_name str

The name of the application.

arn str

The ARN of the CodeDeploy deployment group.

auto_rollback_configuration DeploymentGroupAutoRollbackConfigurationArgs

Configuration block of the automatic rollback configuration associated with the deployment group (documented below).

autoscaling_groups Sequence[str]

Autoscaling groups associated with the deployment group.

blue_green_deployment_config DeploymentGroupBlueGreenDeploymentConfigArgs

Configuration block of the blue/green deployment options for a deployment group (documented below).

compute_platform str

The destination platform type for the deployment.

deployment_config_name str

The name of the group's deployment config. The default is "CodeDeployDefault.OneAtATime".

deployment_group_id str

The ID of the CodeDeploy deployment group.

deployment_group_name str

The name of the deployment group.

deployment_style DeploymentGroupDeploymentStyleArgs

Configuration block of the type of deployment, either in-place or blue/green, you want to run and whether to route deployment traffic behind a load balancer (documented below).

ec2_tag_filters Sequence[DeploymentGroupEc2TagFilterArgs]

Tag filters associated with the deployment group. See the AWS docs for details.

ec2_tag_sets Sequence[DeploymentGroupEc2TagSetArgs]

Configuration block(s) of Tag filters associated with the deployment group, which are also referred to as tag groups (documented below). See the AWS docs for details.

ecs_service DeploymentGroupEcsServiceArgs

Configuration block(s) of the ECS services for a deployment group (documented below).

load_balancer_info DeploymentGroupLoadBalancerInfoArgs

Single configuration block of the load balancer to use in a blue/green deployment (documented below).

on_premises_instance_tag_filters Sequence[DeploymentGroupOnPremisesInstanceTagFilterArgs]

On premise tag filters associated with the group. See the AWS docs for details.

service_role_arn str

The service role ARN that allows deployments.

tags Mapping[str, str]

Key-value map of resource tags. .If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.

tags_all Mapping[str, str]

A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.

trigger_configurations Sequence[DeploymentGroupTriggerConfigurationArgs]

Configuration block(s) of the triggers for the deployment group (documented below).

alarmConfiguration Property Map

Configuration block of alarms associated with the deployment group (documented below).

appName String

The name of the application.

arn String

The ARN of the CodeDeploy deployment group.

autoRollbackConfiguration Property Map

Configuration block of the automatic rollback configuration associated with the deployment group (documented below).

autoscalingGroups List<String>

Autoscaling groups associated with the deployment group.

blueGreenDeploymentConfig Property Map

Configuration block of the blue/green deployment options for a deployment group (documented below).

computePlatform String

The destination platform type for the deployment.

deploymentConfigName String

The name of the group's deployment config. The default is "CodeDeployDefault.OneAtATime".

deploymentGroupId String

The ID of the CodeDeploy deployment group.

deploymentGroupName String

The name of the deployment group.

deploymentStyle Property Map

Configuration block of the type of deployment, either in-place or blue/green, you want to run and whether to route deployment traffic behind a load balancer (documented below).

ec2TagFilters List<Property Map>

Tag filters associated with the deployment group. See the AWS docs for details.

ec2TagSets List<Property Map>

Configuration block(s) of Tag filters associated with the deployment group, which are also referred to as tag groups (documented below). See the AWS docs for details.

ecsService Property Map

Configuration block(s) of the ECS services for a deployment group (documented below).

loadBalancerInfo Property Map

Single configuration block of the load balancer to use in a blue/green deployment (documented below).

onPremisesInstanceTagFilters List<Property Map>

On premise tag filters associated with the group. See the AWS docs for details.

serviceRoleArn String

The service role ARN that allows deployments.

tags Map<String>

Key-value map of resource tags. .If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.

tagsAll Map<String>

A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.

triggerConfigurations List<Property Map>

Configuration block(s) of the triggers for the deployment group (documented below).

Supporting Types

DeploymentGroupAlarmConfiguration

Alarms List<string>

A list of alarms configured for the deployment group. A maximum of 10 alarms can be added to a deployment group.

Enabled bool

Indicates whether the alarm configuration is enabled. This option is useful when you want to temporarily deactivate alarm monitoring for a deployment group without having to add the same alarms again later.

IgnorePollAlarmFailure bool

Indicates whether a deployment should continue if information about the current state of alarms cannot be retrieved from CloudWatch. The default value is false.

  • true: The deployment will proceed even if alarm status information can't be retrieved.
  • false: The deployment will stop if alarm status information can't be retrieved.
Alarms []string

A list of alarms configured for the deployment group. A maximum of 10 alarms can be added to a deployment group.

Enabled bool

Indicates whether the alarm configuration is enabled. This option is useful when you want to temporarily deactivate alarm monitoring for a deployment group without having to add the same alarms again later.

IgnorePollAlarmFailure bool

Indicates whether a deployment should continue if information about the current state of alarms cannot be retrieved from CloudWatch. The default value is false.

  • true: The deployment will proceed even if alarm status information can't be retrieved.
  • false: The deployment will stop if alarm status information can't be retrieved.
alarms List<String>

A list of alarms configured for the deployment group. A maximum of 10 alarms can be added to a deployment group.

enabled Boolean

Indicates whether the alarm configuration is enabled. This option is useful when you want to temporarily deactivate alarm monitoring for a deployment group without having to add the same alarms again later.

ignorePollAlarmFailure Boolean

Indicates whether a deployment should continue if information about the current state of alarms cannot be retrieved from CloudWatch. The default value is false.

  • true: The deployment will proceed even if alarm status information can't be retrieved.
  • false: The deployment will stop if alarm status information can't be retrieved.
alarms string[]

A list of alarms configured for the deployment group. A maximum of 10 alarms can be added to a deployment group.

enabled boolean

Indicates whether the alarm configuration is enabled. This option is useful when you want to temporarily deactivate alarm monitoring for a deployment group without having to add the same alarms again later.

ignorePollAlarmFailure boolean

Indicates whether a deployment should continue if information about the current state of alarms cannot be retrieved from CloudWatch. The default value is false.

  • true: The deployment will proceed even if alarm status information can't be retrieved.
  • false: The deployment will stop if alarm status information can't be retrieved.
alarms Sequence[str]

A list of alarms configured for the deployment group. A maximum of 10 alarms can be added to a deployment group.

enabled bool

Indicates whether the alarm configuration is enabled. This option is useful when you want to temporarily deactivate alarm monitoring for a deployment group without having to add the same alarms again later.

ignore_poll_alarm_failure bool

Indicates whether a deployment should continue if information about the current state of alarms cannot be retrieved from CloudWatch. The default value is false.

  • true: The deployment will proceed even if alarm status information can't be retrieved.
  • false: The deployment will stop if alarm status information can't be retrieved.
alarms List<String>

A list of alarms configured for the deployment group. A maximum of 10 alarms can be added to a deployment group.

enabled Boolean

Indicates whether the alarm configuration is enabled. This option is useful when you want to temporarily deactivate alarm monitoring for a deployment group without having to add the same alarms again later.

ignorePollAlarmFailure Boolean

Indicates whether a deployment should continue if information about the current state of alarms cannot be retrieved from CloudWatch. The default value is false.

  • true: The deployment will proceed even if alarm status information can't be retrieved.
  • false: The deployment will stop if alarm status information can't be retrieved.

DeploymentGroupAutoRollbackConfiguration

Enabled bool

Indicates whether a defined automatic rollback configuration is currently enabled for this Deployment Group. If you enable automatic rollback, you must specify at least one event type.

Events List<string>

The event type or types that trigger a rollback. Supported types are DEPLOYMENT_FAILURE and DEPLOYMENT_STOP_ON_ALARM.

Enabled bool

Indicates whether a defined automatic rollback configuration is currently enabled for this Deployment Group. If you enable automatic rollback, you must specify at least one event type.

Events []string

The event type or types that trigger a rollback. Supported types are DEPLOYMENT_FAILURE and DEPLOYMENT_STOP_ON_ALARM.

enabled Boolean

Indicates whether a defined automatic rollback configuration is currently enabled for this Deployment Group. If you enable automatic rollback, you must specify at least one event type.

events List<String>

The event type or types that trigger a rollback. Supported types are DEPLOYMENT_FAILURE and DEPLOYMENT_STOP_ON_ALARM.

enabled boolean

Indicates whether a defined automatic rollback configuration is currently enabled for this Deployment Group. If you enable automatic rollback, you must specify at least one event type.

events string[]

The event type or types that trigger a rollback. Supported types are DEPLOYMENT_FAILURE and DEPLOYMENT_STOP_ON_ALARM.

enabled bool

Indicates whether a defined automatic rollback configuration is currently enabled for this Deployment Group. If you enable automatic rollback, you must specify at least one event type.

events Sequence[str]

The event type or types that trigger a rollback. Supported types are DEPLOYMENT_FAILURE and DEPLOYMENT_STOP_ON_ALARM.

enabled Boolean

Indicates whether a defined automatic rollback configuration is currently enabled for this Deployment Group. If you enable automatic rollback, you must specify at least one event type.

events List<String>

The event type or types that trigger a rollback. Supported types are DEPLOYMENT_FAILURE and DEPLOYMENT_STOP_ON_ALARM.

DeploymentGroupBlueGreenDeploymentConfig

DeploymentReadyOption DeploymentGroupBlueGreenDeploymentConfigDeploymentReadyOption

Information about the action to take when newly provisioned instances are ready to receive traffic in a blue/green deployment (documented below).

GreenFleetProvisioningOption DeploymentGroupBlueGreenDeploymentConfigGreenFleetProvisioningOption

Information about how instances are provisioned for a replacement environment in a blue/green deployment (documented below).

TerminateBlueInstancesOnDeploymentSuccess DeploymentGroupBlueGreenDeploymentConfigTerminateBlueInstancesOnDeploymentSuccess

Information about whether to terminate instances in the original fleet during a blue/green deployment (documented below).

DeploymentReadyOption DeploymentGroupBlueGreenDeploymentConfigDeploymentReadyOption

Information about the action to take when newly provisioned instances are ready to receive traffic in a blue/green deployment (documented below).

GreenFleetProvisioningOption DeploymentGroupBlueGreenDeploymentConfigGreenFleetProvisioningOption

Information about how instances are provisioned for a replacement environment in a blue/green deployment (documented below).

TerminateBlueInstancesOnDeploymentSuccess DeploymentGroupBlueGreenDeploymentConfigTerminateBlueInstancesOnDeploymentSuccess

Information about whether to terminate instances in the original fleet during a blue/green deployment (documented below).

deploymentReadyOption DeploymentGroupBlueGreenDeploymentConfigDeploymentReadyOption

Information about the action to take when newly provisioned instances are ready to receive traffic in a blue/green deployment (documented below).

greenFleetProvisioningOption DeploymentGroupBlueGreenDeploymentConfigGreenFleetProvisioningOption

Information about how instances are provisioned for a replacement environment in a blue/green deployment (documented below).

terminateBlueInstancesOnDeploymentSuccess DeploymentGroupBlueGreenDeploymentConfigTerminateBlueInstancesOnDeploymentSuccess

Information about whether to terminate instances in the original fleet during a blue/green deployment (documented below).

deploymentReadyOption DeploymentGroupBlueGreenDeploymentConfigDeploymentReadyOption

Information about the action to take when newly provisioned instances are ready to receive traffic in a blue/green deployment (documented below).

greenFleetProvisioningOption DeploymentGroupBlueGreenDeploymentConfigGreenFleetProvisioningOption

Information about how instances are provisioned for a replacement environment in a blue/green deployment (documented below).

terminateBlueInstancesOnDeploymentSuccess DeploymentGroupBlueGreenDeploymentConfigTerminateBlueInstancesOnDeploymentSuccess

Information about whether to terminate instances in the original fleet during a blue/green deployment (documented below).

deployment_ready_option DeploymentGroupBlueGreenDeploymentConfigDeploymentReadyOption

Information about the action to take when newly provisioned instances are ready to receive traffic in a blue/green deployment (documented below).

green_fleet_provisioning_option DeploymentGroupBlueGreenDeploymentConfigGreenFleetProvisioningOption

Information about how instances are provisioned for a replacement environment in a blue/green deployment (documented below).

terminate_blue_instances_on_deployment_success DeploymentGroupBlueGreenDeploymentConfigTerminateBlueInstancesOnDeploymentSuccess

Information about whether to terminate instances in the original fleet during a blue/green deployment (documented below).

deploymentReadyOption Property Map

Information about the action to take when newly provisioned instances are ready to receive traffic in a blue/green deployment (documented below).

greenFleetProvisioningOption Property Map

Information about how instances are provisioned for a replacement environment in a blue/green deployment (documented below).

terminateBlueInstancesOnDeploymentSuccess Property Map

Information about whether to terminate instances in the original fleet during a blue/green deployment (documented below).

DeploymentGroupBlueGreenDeploymentConfigDeploymentReadyOption

ActionOnTimeout string

When to reroute traffic from an original environment to a replacement environment in a blue/green deployment.

  • CONTINUE_DEPLOYMENT: Register new instances with the load balancer immediately after the new application revision is installed on the instances in the replacement environment.
  • STOP_DEPLOYMENT: Do not register new instances with load balancer unless traffic is rerouted manually. If traffic is not rerouted manually before the end of the specified wait period, the deployment status is changed to Stopped.
WaitTimeInMinutes int

The number of minutes to wait before the status of a blue/green deployment changed to Stopped if rerouting is not started manually. Applies only to the STOP_DEPLOYMENT option for action_on_timeout.

ActionOnTimeout string

When to reroute traffic from an original environment to a replacement environment in a blue/green deployment.

  • CONTINUE_DEPLOYMENT: Register new instances with the load balancer immediately after the new application revision is installed on the instances in the replacement environment.
  • STOP_DEPLOYMENT: Do not register new instances with load balancer unless traffic is rerouted manually. If traffic is not rerouted manually before the end of the specified wait period, the deployment status is changed to Stopped.
WaitTimeInMinutes int

The number of minutes to wait before the status of a blue/green deployment changed to Stopped if rerouting is not started manually. Applies only to the STOP_DEPLOYMENT option for action_on_timeout.

actionOnTimeout String

When to reroute traffic from an original environment to a replacement environment in a blue/green deployment.

  • CONTINUE_DEPLOYMENT: Register new instances with the load balancer immediately after the new application revision is installed on the instances in the replacement environment.
  • STOP_DEPLOYMENT: Do not register new instances with load balancer unless traffic is rerouted manually. If traffic is not rerouted manually before the end of the specified wait period, the deployment status is changed to Stopped.
waitTimeInMinutes Integer

The number of minutes to wait before the status of a blue/green deployment changed to Stopped if rerouting is not started manually. Applies only to the STOP_DEPLOYMENT option for action_on_timeout.

actionOnTimeout string

When to reroute traffic from an original environment to a replacement environment in a blue/green deployment.

  • CONTINUE_DEPLOYMENT: Register new instances with the load balancer immediately after the new application revision is installed on the instances in the replacement environment.
  • STOP_DEPLOYMENT: Do not register new instances with load balancer unless traffic is rerouted manually. If traffic is not rerouted manually before the end of the specified wait period, the deployment status is changed to Stopped.
waitTimeInMinutes number

The number of minutes to wait before the status of a blue/green deployment changed to Stopped if rerouting is not started manually. Applies only to the STOP_DEPLOYMENT option for action_on_timeout.

action_on_timeout str

When to reroute traffic from an original environment to a replacement environment in a blue/green deployment.

  • CONTINUE_DEPLOYMENT: Register new instances with the load balancer immediately after the new application revision is installed on the instances in the replacement environment.
  • STOP_DEPLOYMENT: Do not register new instances with load balancer unless traffic is rerouted manually. If traffic is not rerouted manually before the end of the specified wait period, the deployment status is changed to Stopped.
wait_time_in_minutes int

The number of minutes to wait before the status of a blue/green deployment changed to Stopped if rerouting is not started manually. Applies only to the STOP_DEPLOYMENT option for action_on_timeout.

actionOnTimeout String

When to reroute traffic from an original environment to a replacement environment in a blue/green deployment.

  • CONTINUE_DEPLOYMENT: Register new instances with the load balancer immediately after the new application revision is installed on the instances in the replacement environment.
  • STOP_DEPLOYMENT: Do not register new instances with load balancer unless traffic is rerouted manually. If traffic is not rerouted manually before the end of the specified wait period, the deployment status is changed to Stopped.
waitTimeInMinutes Number

The number of minutes to wait before the status of a blue/green deployment changed to Stopped if rerouting is not started manually. Applies only to the STOP_DEPLOYMENT option for action_on_timeout.

DeploymentGroupBlueGreenDeploymentConfigGreenFleetProvisioningOption

Action string

The method used to add instances to a replacement environment.

  • DISCOVER_EXISTING: Use instances that already exist or will be created manually.
  • COPY_AUTO_SCALING_GROUP: Use settings from a specified Auto Scaling group to define and create instances in a new Auto Scaling group. Exactly one Auto Scaling group must be specified when selecting COPY_AUTO_SCALING_GROUP. Use autoscaling_groups to specify the Auto Scaling group.
Action string

The method used to add instances to a replacement environment.

  • DISCOVER_EXISTING: Use instances that already exist or will be created manually.
  • COPY_AUTO_SCALING_GROUP: Use settings from a specified Auto Scaling group to define and create instances in a new Auto Scaling group. Exactly one Auto Scaling group must be specified when selecting COPY_AUTO_SCALING_GROUP. Use autoscaling_groups to specify the Auto Scaling group.
action String

The method used to add instances to a replacement environment.

  • DISCOVER_EXISTING: Use instances that already exist or will be created manually.
  • COPY_AUTO_SCALING_GROUP: Use settings from a specified Auto Scaling group to define and create instances in a new Auto Scaling group. Exactly one Auto Scaling group must be specified when selecting COPY_AUTO_SCALING_GROUP. Use autoscaling_groups to specify the Auto Scaling group.
action string

The method used to add instances to a replacement environment.

  • DISCOVER_EXISTING: Use instances that already exist or will be created manually.
  • COPY_AUTO_SCALING_GROUP: Use settings from a specified Auto Scaling group to define and create instances in a new Auto Scaling group. Exactly one Auto Scaling group must be specified when selecting COPY_AUTO_SCALING_GROUP. Use autoscaling_groups to specify the Auto Scaling group.
action str

The method used to add instances to a replacement environment.

  • DISCOVER_EXISTING: Use instances that already exist or will be created manually.
  • COPY_AUTO_SCALING_GROUP: Use settings from a specified Auto Scaling group to define and create instances in a new Auto Scaling group. Exactly one Auto Scaling group must be specified when selecting COPY_AUTO_SCALING_GROUP. Use autoscaling_groups to specify the Auto Scaling group.
action String

The method used to add instances to a replacement environment.

  • DISCOVER_EXISTING: Use instances that already exist or will be created manually.
  • COPY_AUTO_SCALING_GROUP: Use settings from a specified Auto Scaling group to define and create instances in a new Auto Scaling group. Exactly one Auto Scaling group must be specified when selecting COPY_AUTO_SCALING_GROUP. Use autoscaling_groups to specify the Auto Scaling group.

DeploymentGroupBlueGreenDeploymentConfigTerminateBlueInstancesOnDeploymentSuccess

Action string

The action to take on instances in the original environment after a successful blue/green deployment.

  • TERMINATE: Instances are terminated after a specified wait time.
  • KEEP_ALIVE: Instances are left running after they are deregistered from the load balancer and removed from the deployment group.
TerminationWaitTimeInMinutes int

The number of minutes to wait after a successful blue/green deployment before terminating instances from the original environment.

Action string

The action to take on instances in the original environment after a successful blue/green deployment.

  • TERMINATE: Instances are terminated after a specified wait time.
  • KEEP_ALIVE: Instances are left running after they are deregistered from the load balancer and removed from the deployment group.
TerminationWaitTimeInMinutes int

The number of minutes to wait after a successful blue/green deployment before terminating instances from the original environment.

action String

The action to take on instances in the original environment after a successful blue/green deployment.

  • TERMINATE: Instances are terminated after a specified wait time.
  • KEEP_ALIVE: Instances are left running after they are deregistered from the load balancer and removed from the deployment group.
terminationWaitTimeInMinutes Integer

The number of minutes to wait after a successful blue/green deployment before terminating instances from the original environment.

action string

The action to take on instances in the original environment after a successful blue/green deployment.

  • TERMINATE: Instances are terminated after a specified wait time.
  • KEEP_ALIVE: Instances are left running after they are deregistered from the load balancer and removed from the deployment group.
terminationWaitTimeInMinutes number

The number of minutes to wait after a successful blue/green deployment before terminating instances from the original environment.

action str

The action to take on instances in the original environment after a successful blue/green deployment.

  • TERMINATE: Instances are terminated after a specified wait time.
  • KEEP_ALIVE: Instances are left running after they are deregistered from the load balancer and removed from the deployment group.
termination_wait_time_in_minutes int

The number of minutes to wait after a successful blue/green deployment before terminating instances from the original environment.

action String

The action to take on instances in the original environment after a successful blue/green deployment.

  • TERMINATE: Instances are terminated after a specified wait time.
  • KEEP_ALIVE: Instances are left running after they are deregistered from the load balancer and removed from the deployment group.
terminationWaitTimeInMinutes Number

The number of minutes to wait after a successful blue/green deployment before terminating instances from the original environment.

DeploymentGroupDeploymentStyle

DeploymentOption string

Indicates whether to route deployment traffic behind a load balancer. Valid Values are WITH_TRAFFIC_CONTROL or WITHOUT_TRAFFIC_CONTROL. Default is WITHOUT_TRAFFIC_CONTROL.

DeploymentType string

Indicates whether to run an in-place deployment or a blue/green deployment. Valid Values are IN_PLACE or BLUE_GREEN. Default is IN_PLACE.

DeploymentOption string

Indicates whether to route deployment traffic behind a load balancer. Valid Values are WITH_TRAFFIC_CONTROL or WITHOUT_TRAFFIC_CONTROL. Default is WITHOUT_TRAFFIC_CONTROL.

DeploymentType string

Indicates whether to run an in-place deployment or a blue/green deployment. Valid Values are IN_PLACE or BLUE_GREEN. Default is IN_PLACE.

deploymentOption String

Indicates whether to route deployment traffic behind a load balancer. Valid Values are WITH_TRAFFIC_CONTROL or WITHOUT_TRAFFIC_CONTROL. Default is WITHOUT_TRAFFIC_CONTROL.

deploymentType String

Indicates whether to run an in-place deployment or a blue/green deployment. Valid Values are IN_PLACE or BLUE_GREEN. Default is IN_PLACE.

deploymentOption string

Indicates whether to route deployment traffic behind a load balancer. Valid Values are WITH_TRAFFIC_CONTROL or WITHOUT_TRAFFIC_CONTROL. Default is WITHOUT_TRAFFIC_CONTROL.

deploymentType string

Indicates whether to run an in-place deployment or a blue/green deployment. Valid Values are IN_PLACE or BLUE_GREEN. Default is IN_PLACE.

deployment_option str

Indicates whether to route deployment traffic behind a load balancer. Valid Values are WITH_TRAFFIC_CONTROL or WITHOUT_TRAFFIC_CONTROL. Default is WITHOUT_TRAFFIC_CONTROL.

deployment_type str

Indicates whether to run an in-place deployment or a blue/green deployment. Valid Values are IN_PLACE or BLUE_GREEN. Default is IN_PLACE.

deploymentOption String

Indicates whether to route deployment traffic behind a load balancer. Valid Values are WITH_TRAFFIC_CONTROL or WITHOUT_TRAFFIC_CONTROL. Default is WITHOUT_TRAFFIC_CONTROL.

deploymentType String

Indicates whether to run an in-place deployment or a blue/green deployment. Valid Values are IN_PLACE or BLUE_GREEN. Default is IN_PLACE.

DeploymentGroupEc2TagFilter

Key string

The key of the tag filter.

Type string

The type of the tag filter, either KEY_ONLY, VALUE_ONLY, or KEY_AND_VALUE.

Value string

The value of the tag filter.

Key string

The key of the tag filter.

Type string

The type of the tag filter, either KEY_ONLY, VALUE_ONLY, or KEY_AND_VALUE.

Value string

The value of the tag filter.

key String

The key of the tag filter.

type String

The type of the tag filter, either KEY_ONLY, VALUE_ONLY, or KEY_AND_VALUE.

value String

The value of the tag filter.

key string

The key of the tag filter.

type string

The type of the tag filter, either KEY_ONLY, VALUE_ONLY, or KEY_AND_VALUE.

value string

The value of the tag filter.

key str

The key of the tag filter.

type str

The type of the tag filter, either KEY_ONLY, VALUE_ONLY, or KEY_AND_VALUE.

value str

The value of the tag filter.

key String

The key of the tag filter.

type String

The type of the tag filter, either KEY_ONLY, VALUE_ONLY, or KEY_AND_VALUE.

value String

The value of the tag filter.

DeploymentGroupEc2TagSet

Ec2TagFilters List<DeploymentGroupEc2TagSetEc2TagFilter>

Tag filters associated with the deployment group. See the AWS docs for details.

Ec2TagFilters []DeploymentGroupEc2TagSetEc2TagFilter

Tag filters associated with the deployment group. See the AWS docs for details.

ec2TagFilters List<DeploymentGroupEc2TagSetEc2TagFilter>

Tag filters associated with the deployment group. See the AWS docs for details.

ec2TagFilters DeploymentGroupEc2TagSetEc2TagFilter[]

Tag filters associated with the deployment group. See the AWS docs for details.

ec2_tag_filters Sequence[DeploymentGroupEc2TagSetEc2TagFilter]

Tag filters associated with the deployment group. See the AWS docs for details.

ec2TagFilters List<Property Map>

Tag filters associated with the deployment group. See the AWS docs for details.

DeploymentGroupEc2TagSetEc2TagFilter

Key string

The key of the tag filter.

Type string

The type of the tag filter, either KEY_ONLY, VALUE_ONLY, or KEY_AND_VALUE.

Value string

The value of the tag filter.

Key string

The key of the tag filter.

Type string

The type of the tag filter, either KEY_ONLY, VALUE_ONLY, or KEY_AND_VALUE.

Value string

The value of the tag filter.

key String

The key of the tag filter.

type String

The type of the tag filter, either KEY_ONLY, VALUE_ONLY, or KEY_AND_VALUE.

value String

The value of the tag filter.

key string

The key of the tag filter.

type string

The type of the tag filter, either KEY_ONLY, VALUE_ONLY, or KEY_AND_VALUE.

value string

The value of the tag filter.

key str

The key of the tag filter.

type str

The type of the tag filter, either KEY_ONLY, VALUE_ONLY, or KEY_AND_VALUE.

value str

The value of the tag filter.

key String

The key of the tag filter.

type String

The type of the tag filter, either KEY_ONLY, VALUE_ONLY, or KEY_AND_VALUE.

value String

The value of the tag filter.

DeploymentGroupEcsService

ClusterName string

The name of the ECS cluster.

ServiceName string

The name of the ECS service.

ClusterName string

The name of the ECS cluster.

ServiceName string

The name of the ECS service.

clusterName String

The name of the ECS cluster.

serviceName String

The name of the ECS service.

clusterName string

The name of the ECS cluster.

serviceName string

The name of the ECS service.

cluster_name str

The name of the ECS cluster.

service_name str

The name of the ECS service.

clusterName String

The name of the ECS cluster.

serviceName String

The name of the ECS service.

DeploymentGroupLoadBalancerInfo

ElbInfos List<DeploymentGroupLoadBalancerInfoElbInfo>

The Classic Elastic Load Balancer to use in a deployment. Conflicts with target_group_info and target_group_pair_info.

TargetGroupInfos List<DeploymentGroupLoadBalancerInfoTargetGroupInfo>

The (Application/Network Load Balancer) target group to use in a deployment. Conflicts with elb_info and target_group_pair_info.

TargetGroupPairInfo DeploymentGroupLoadBalancerInfoTargetGroupPairInfo

The (Application/Network Load Balancer) target group pair to use in a deployment. Conflicts with elb_info and target_group_info.

ElbInfos []DeploymentGroupLoadBalancerInfoElbInfo

The Classic Elastic Load Balancer to use in a deployment. Conflicts with target_group_info and target_group_pair_info.

TargetGroupInfos []DeploymentGroupLoadBalancerInfoTargetGroupInfo

The (Application/Network Load Balancer) target group to use in a deployment. Conflicts with elb_info and target_group_pair_info.

TargetGroupPairInfo DeploymentGroupLoadBalancerInfoTargetGroupPairInfo

The (Application/Network Load Balancer) target group pair to use in a deployment. Conflicts with elb_info and target_group_info.

elbInfos List<DeploymentGroupLoadBalancerInfoElbInfo>

The Classic Elastic Load Balancer to use in a deployment. Conflicts with target_group_info and target_group_pair_info.

targetGroupInfos List<DeploymentGroupLoadBalancerInfoTargetGroupInfo>

The (Application/Network Load Balancer) target group to use in a deployment. Conflicts with elb_info and target_group_pair_info.

targetGroupPairInfo DeploymentGroupLoadBalancerInfoTargetGroupPairInfo

The (Application/Network Load Balancer) target group pair to use in a deployment. Conflicts with elb_info and target_group_info.

elbInfos DeploymentGroupLoadBalancerInfoElbInfo[]

The Classic Elastic Load Balancer to use in a deployment. Conflicts with target_group_info and target_group_pair_info.

targetGroupInfos DeploymentGroupLoadBalancerInfoTargetGroupInfo[]

The (Application/Network Load Balancer) target group to use in a deployment. Conflicts with elb_info and target_group_pair_info.

targetGroupPairInfo DeploymentGroupLoadBalancerInfoTargetGroupPairInfo

The (Application/Network Load Balancer) target group pair to use in a deployment. Conflicts with elb_info and target_group_info.

elb_infos Sequence[DeploymentGroupLoadBalancerInfoElbInfo]

The Classic Elastic Load Balancer to use in a deployment. Conflicts with target_group_info and target_group_pair_info.

target_group_infos Sequence[DeploymentGroupLoadBalancerInfoTargetGroupInfo]

The (Application/Network Load Balancer) target group to use in a deployment. Conflicts with elb_info and target_group_pair_info.

target_group_pair_info DeploymentGroupLoadBalancerInfoTargetGroupPairInfo

The (Application/Network Load Balancer) target group pair to use in a deployment. Conflicts with elb_info and target_group_info.

elbInfos List<Property Map>

The Classic Elastic Load Balancer to use in a deployment. Conflicts with target_group_info and target_group_pair_info.

targetGroupInfos List<Property Map>

The (Application/Network Load Balancer) target group to use in a deployment. Conflicts with elb_info and target_group_pair_info.

targetGroupPairInfo Property Map

The (Application/Network Load Balancer) target group pair to use in a deployment. Conflicts with elb_info and target_group_info.

DeploymentGroupLoadBalancerInfoElbInfo

Name string

The name of the load balancer that will be used to route traffic from original instances to replacement instances in a blue/green deployment. For in-place deployments, the name of the load balancer that instances are deregistered from so they are not serving traffic during a deployment, and then re-registered with after the deployment completes.

Name string

The name of the load balancer that will be used to route traffic from original instances to replacement instances in a blue/green deployment. For in-place deployments, the name of the load balancer that instances are deregistered from so they are not serving traffic during a deployment, and then re-registered with after the deployment completes.

name String

The name of the load balancer that will be used to route traffic from original instances to replacement instances in a blue/green deployment. For in-place deployments, the name of the load balancer that instances are deregistered from so they are not serving traffic during a deployment, and then re-registered with after the deployment completes.

name string

The name of the load balancer that will be used to route traffic from original instances to replacement instances in a blue/green deployment. For in-place deployments, the name of the load balancer that instances are deregistered from so they are not serving traffic during a deployment, and then re-registered with after the deployment completes.

name str

The name of the load balancer that will be used to route traffic from original instances to replacement instances in a blue/green deployment. For in-place deployments, the name of the load balancer that instances are deregistered from so they are not serving traffic during a deployment, and then re-registered with after the deployment completes.

name String

The name of the load balancer that will be used to route traffic from original instances to replacement instances in a blue/green deployment. For in-place deployments, the name of the load balancer that instances are deregistered from so they are not serving traffic during a deployment, and then re-registered with after the deployment completes.

DeploymentGroupLoadBalancerInfoTargetGroupInfo

Name string

The name of the target group that instances in the original environment are deregistered from, and instances in the replacement environment registered with. For in-place deployments, the name of the target group that instances are deregistered from, so they are not serving traffic during a deployment, and then re-registered with after the deployment completes.

Name string

The name of the target group that instances in the original environment are deregistered from, and instances in the replacement environment registered with. For in-place deployments, the name of the target group that instances are deregistered from, so they are not serving traffic during a deployment, and then re-registered with after the deployment completes.

name String

The name of the target group that instances in the original environment are deregistered from, and instances in the replacement environment registered with. For in-place deployments, the name of the target group that instances are deregistered from, so they are not serving traffic during a deployment, and then re-registered with after the deployment completes.

name string

The name of the target group that instances in the original environment are deregistered from, and instances in the replacement environment registered with. For in-place deployments, the name of the target group that instances are deregistered from, so they are not serving traffic during a deployment, and then re-registered with after the deployment completes.

name str

The name of the target group that instances in the original environment are deregistered from, and instances in the replacement environment registered with. For in-place deployments, the name of the target group that instances are deregistered from, so they are not serving traffic during a deployment, and then re-registered with after the deployment completes.

name String

The name of the target group that instances in the original environment are deregistered from, and instances in the replacement environment registered with. For in-place deployments, the name of the target group that instances are deregistered from, so they are not serving traffic during a deployment, and then re-registered with after the deployment completes.

DeploymentGroupLoadBalancerInfoTargetGroupPairInfo

ProdTrafficRoute DeploymentGroupLoadBalancerInfoTargetGroupPairInfoProdTrafficRoute

Configuration block for the production traffic route (documented below).

TargetGroups List<DeploymentGroupLoadBalancerInfoTargetGroupPairInfoTargetGroup>

Configuration blocks for a target group within a target group pair (documented below).

TestTrafficRoute DeploymentGroupLoadBalancerInfoTargetGroupPairInfoTestTrafficRoute

Configuration block for the test traffic route (documented below).

ProdTrafficRoute DeploymentGroupLoadBalancerInfoTargetGroupPairInfoProdTrafficRoute

Configuration block for the production traffic route (documented below).

TargetGroups []DeploymentGroupLoadBalancerInfoTargetGroupPairInfoTargetGroup

Configuration blocks for a target group within a target group pair (documented below).

TestTrafficRoute DeploymentGroupLoadBalancerInfoTargetGroupPairInfoTestTrafficRoute

Configuration block for the test traffic route (documented below).

prodTrafficRoute DeploymentGroupLoadBalancerInfoTargetGroupPairInfoProdTrafficRoute

Configuration block for the production traffic route (documented below).

targetGroups List<DeploymentGroupLoadBalancerInfoTargetGroupPairInfoTargetGroup>

Configuration blocks for a target group within a target group pair (documented below).

testTrafficRoute DeploymentGroupLoadBalancerInfoTargetGroupPairInfoTestTrafficRoute

Configuration block for the test traffic route (documented below).

prodTrafficRoute DeploymentGroupLoadBalancerInfoTargetGroupPairInfoProdTrafficRoute

Configuration block for the production traffic route (documented below).

targetGroups DeploymentGroupLoadBalancerInfoTargetGroupPairInfoTargetGroup[]

Configuration blocks for a target group within a target group pair (documented below).

testTrafficRoute DeploymentGroupLoadBalancerInfoTargetGroupPairInfoTestTrafficRoute

Configuration block for the test traffic route (documented below).

prod_traffic_route DeploymentGroupLoadBalancerInfoTargetGroupPairInfoProdTrafficRoute

Configuration block for the production traffic route (documented below).

target_groups Sequence[DeploymentGroupLoadBalancerInfoTargetGroupPairInfoTargetGroup]

Configuration blocks for a target group within a target group pair (documented below).

test_traffic_route DeploymentGroupLoadBalancerInfoTargetGroupPairInfoTestTrafficRoute

Configuration block for the test traffic route (documented below).

prodTrafficRoute Property Map

Configuration block for the production traffic route (documented below).

targetGroups List<Property Map>

Configuration blocks for a target group within a target group pair (documented below).

testTrafficRoute Property Map

Configuration block for the test traffic route (documented below).

DeploymentGroupLoadBalancerInfoTargetGroupPairInfoProdTrafficRoute

ListenerArns List<string>

List of Amazon Resource Names (ARNs) of the load balancer listeners.

ListenerArns []string

List of Amazon Resource Names (ARNs) of the load balancer listeners.

listenerArns List<String>

List of Amazon Resource Names (ARNs) of the load balancer listeners.

listenerArns string[]

List of Amazon Resource Names (ARNs) of the load balancer listeners.

listener_arns Sequence[str]

List of Amazon Resource Names (ARNs) of the load balancer listeners.

listenerArns List<String>

List of Amazon Resource Names (ARNs) of the load balancer listeners.

DeploymentGroupLoadBalancerInfoTargetGroupPairInfoTargetGroup

Name string

Name of the target group.

Name string

Name of the target group.

name String

Name of the target group.

name string

Name of the target group.

name str

Name of the target group.

name String

Name of the target group.

DeploymentGroupLoadBalancerInfoTargetGroupPairInfoTestTrafficRoute

ListenerArns List<string>

List of Amazon Resource Names (ARNs) of the load balancer listeners.

ListenerArns []string

List of Amazon Resource Names (ARNs) of the load balancer listeners.

listenerArns List<String>

List of Amazon Resource Names (ARNs) of the load balancer listeners.

listenerArns string[]

List of Amazon Resource Names (ARNs) of the load balancer listeners.

listener_arns Sequence[str]

List of Amazon Resource Names (ARNs) of the load balancer listeners.

listenerArns List<String>

List of Amazon Resource Names (ARNs) of the load balancer listeners.

DeploymentGroupOnPremisesInstanceTagFilter

Key string

The key of the tag filter.

Type string

The type of the tag filter, either KEY_ONLY, VALUE_ONLY, or KEY_AND_VALUE.

Value string

The value of the tag filter.

Key string

The key of the tag filter.

Type string

The type of the tag filter, either KEY_ONLY, VALUE_ONLY, or KEY_AND_VALUE.

Value string

The value of the tag filter.

key String

The key of the tag filter.

type String

The type of the tag filter, either KEY_ONLY, VALUE_ONLY, or KEY_AND_VALUE.

value String

The value of the tag filter.

key string

The key of the tag filter.

type string

The type of the tag filter, either KEY_ONLY, VALUE_ONLY, or KEY_AND_VALUE.

value string

The value of the tag filter.

key str

The key of the tag filter.

type str

The type of the tag filter, either KEY_ONLY, VALUE_ONLY, or KEY_AND_VALUE.

value str

The value of the tag filter.

key String

The key of the tag filter.

type String

The type of the tag filter, either KEY_ONLY, VALUE_ONLY, or KEY_AND_VALUE.

value String

The value of the tag filter.

DeploymentGroupTriggerConfiguration

TriggerEvents List<string>

The event type or types for which notifications are triggered. Some values that are supported: DeploymentStart, DeploymentSuccess, DeploymentFailure, DeploymentStop, DeploymentRollback, InstanceStart, InstanceSuccess, InstanceFailure. See the CodeDeploy documentation for all possible values.

TriggerName string

The name of the notification trigger.

TriggerTargetArn string

The ARN of the SNS topic through which notifications are sent.

TriggerEvents []string

The event type or types for which notifications are triggered. Some values that are supported: DeploymentStart, DeploymentSuccess, DeploymentFailure, DeploymentStop, DeploymentRollback, InstanceStart, InstanceSuccess, InstanceFailure. See the CodeDeploy documentation for all possible values.

TriggerName string

The name of the notification trigger.

TriggerTargetArn string

The ARN of the SNS topic through which notifications are sent.

triggerEvents List<String>

The event type or types for which notifications are triggered. Some values that are supported: DeploymentStart, DeploymentSuccess, DeploymentFailure, DeploymentStop, DeploymentRollback, InstanceStart, InstanceSuccess, InstanceFailure. See the CodeDeploy documentation for all possible values.

triggerName String

The name of the notification trigger.

triggerTargetArn String

The ARN of the SNS topic through which notifications are sent.

triggerEvents string[]

The event type or types for which notifications are triggered. Some values that are supported: DeploymentStart, DeploymentSuccess, DeploymentFailure, DeploymentStop, DeploymentRollback, InstanceStart, InstanceSuccess, InstanceFailure. See the CodeDeploy documentation for all possible values.

triggerName string

The name of the notification trigger.

triggerTargetArn string

The ARN of the SNS topic through which notifications are sent.

trigger_events Sequence[str]

The event type or types for which notifications are triggered. Some values that are supported: DeploymentStart, DeploymentSuccess, DeploymentFailure, DeploymentStop, DeploymentRollback, InstanceStart, InstanceSuccess, InstanceFailure. See the CodeDeploy documentation for all possible values.

trigger_name str

The name of the notification trigger.

trigger_target_arn str

The ARN of the SNS topic through which notifications are sent.

triggerEvents List<String>

The event type or types for which notifications are triggered. Some values that are supported: DeploymentStart, DeploymentSuccess, DeploymentFailure, DeploymentStop, DeploymentRollback, InstanceStart, InstanceSuccess, InstanceFailure. See the CodeDeploy documentation for all possible values.

triggerName String

The name of the notification trigger.

triggerTargetArn String

The ARN of the SNS topic through which notifications are sent.

Import

CodeDeploy Deployment Groups can be imported by their app_name, a colon, and deployment_group_name, e.g.,

 $ pulumi import aws:codedeploy/deploymentGroup:DeploymentGroup example my-application:my-deployment-group

[1]http://docs.aws.amazon.com/codedeploy/latest/userguide/monitoring-sns-event-notifications-create-trigger.html

Package Details

Repository
https://github.com/pulumi/pulumi-aws
License
Apache-2.0
Notes

This Pulumi package is based on the aws Terraform Provider.