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 Pulumi;
using Aws = Pulumi.Aws;

class MyStack : Stack
{
    public MyStack()
    {
        var exampleRole = new Aws.Iam.Role("exampleRole", new Aws.Iam.RoleArgs
        {
            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 Aws.Iam.RolePolicyAttachmentArgs
        {
            PolicyArn = "arn:aws:iam::aws:policy/service-role/AWSCodeDeployRole",
            Role = exampleRole.Name,
        });
        var exampleApplication = new Aws.CodeDeploy.Application("exampleApplication", new Aws.CodeDeploy.ApplicationArgs
        {
        });
        var exampleTopic = new Aws.Sns.Topic("exampleTopic", new Aws.Sns.TopicArgs
        {
        });
        var exampleDeploymentGroup = new Aws.CodeDeploy.DeploymentGroup("exampleDeploymentGroup", new Aws.CodeDeploy.DeploymentGroupArgs
        {
            AlarmConfiguration = new Aws.CodeDeploy.Inputs.DeploymentGroupAlarmConfigurationArgs
            {
                Alarms = 
                {
                    "my-alarm-name",
                },
                Enabled = true,
            },
            AppName = exampleApplication.Name,
            AutoRollbackConfiguration = new Aws.CodeDeploy.Inputs.DeploymentGroupAutoRollbackConfigurationArgs
            {
                Enabled = true,
                Events = 
                {
                    "DEPLOYMENT_FAILURE",
                },
            },
            DeploymentGroupName = "example-group",
            Ec2TagSets = 
            {
                new Aws.CodeDeploy.Inputs.DeploymentGroupEc2TagSetArgs
                {
                    Ec2TagFilters = 
                    {
                        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",
                        },
                    },
                },
            },
            ServiceRoleArn = exampleRole.Arn,
            TriggerConfigurations = 
            {
                new Aws.CodeDeploy.Inputs.DeploymentGroupTriggerConfigurationArgs
                {
                    TriggerEvents = 
                    {
                        "DeploymentFailure",
                    },
                    TriggerName = "example-trigger",
                    TriggerTargetArn = exampleTopic.Arn,
                },
            },
        });
    }

}
package main

import (
    "fmt"

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

func main() {
    pulumi.Run(func(ctx *pulumi.Context) error {
        exampleRole, err := iam.NewRole(ctx, "exampleRole", &iam.RoleArgs{
            AssumeRolePolicy: pulumi.String(fmt.Sprintf("%v%v%v%v%v%v%v%v%v%v%v%v%v%v", "{\n", "  \"Version\": \"2012-10-17\",\n", "  \"Statement\": [\n", "    {\n", "      \"Sid\": \"\",\n", "      \"Effect\": \"Allow\",\n", "      \"Principal\": {\n", "        \"Service\": \"codedeploy.amazonaws.com\"\n", "      },\n", "      \"Action\": \"sts:AssumeRole\"\n", "    }\n", "  ]\n", "}\n", "\n")),
        })
        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{
            AlarmConfiguration: &codedeploy.DeploymentGroupAlarmConfigurationArgs{
                Alarms: pulumi.StringArray{
                    pulumi.String("my-alarm-name"),
                },
                Enabled: pulumi.Bool(true),
            },
            AppName: exampleApplication.Name,
            AutoRollbackConfiguration: &codedeploy.DeploymentGroupAutoRollbackConfigurationArgs{
                Enabled: pulumi.Bool(true),
                Events: pulumi.StringArray{
                    pulumi.String("DEPLOYMENT_FAILURE"),
                },
            },
            DeploymentGroupName: pulumi.String("example-group"),
            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"),
                        },
                    },
                },
            },
            ServiceRoleArn: exampleRole.Arn,
            TriggerConfigurations: codedeploy.DeploymentGroupTriggerConfigurationArray{
                &codedeploy.DeploymentGroupTriggerConfigurationArgs{
                    TriggerEvents: pulumi.StringArray{
                        pulumi.String("DeploymentFailure"),
                    },
                    TriggerName:      pulumi.String("example-trigger"),
                    TriggerTargetArn: exampleTopic.Arn,
                },
            },
        })
        if err != nil {
            return err
        }
        return nil
    })
}
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",
    alarm_configuration={
        "alarms": ["my-alarm-name"],
        "enabled": True,
    },
    app_name=example_application.name,
    auto_rollback_configuration={
        "enabled": True,
        "events": ["DEPLOYMENT_FAILURE"],
    },
    deployment_group_name="example-group",
    ec2_tag_sets=[{
        "ec2_tag_filters": [
            {
                "key": "filterkey1",
                "type": "KEY_AND_VALUE",
                "value": "filtervalue",
            },
            {
                "key": "filterkey2",
                "type": "KEY_AND_VALUE",
                "value": "filtervalue",
            },
        ],
    }],
    service_role_arn=example_role.arn,
    trigger_configurations=[{
        "triggerEvents": ["DeploymentFailure"],
        "triggerName": "example-trigger",
        "triggerTargetArn": example_topic.arn,
    }])
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";

const exampleRole = new aws.iam.Role("example", {
    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("example", {});
const exampleTopic = new aws.sns.Topic("example", {});
const exampleDeploymentGroup = new aws.codedeploy.DeploymentGroup("example", {
    alarmConfiguration: {
        alarms: ["my-alarm-name"],
        enabled: true,
    },
    appName: exampleApplication.name,
    autoRollbackConfiguration: {
        enabled: true,
        events: ["DEPLOYMENT_FAILURE"],
    },
    deploymentGroupName: "example-group",
    ec2TagSets: [{
        ec2TagFilters: [
            {
                key: "filterkey1",
                type: "KEY_AND_VALUE",
                value: "filtervalue",
            },
            {
                key: "filterkey2",
                type: "KEY_AND_VALUE",
                value: "filtervalue",
            },
        ],
    }],
    serviceRoleArn: exampleRole.arn,
    triggerConfigurations: [{
        triggerEvents: ["DeploymentFailure"],
        triggerName: "example-trigger",
        triggerTargetArn: exampleTopic.arn,
    }],
});

Blue Green Deployments with Servers and Classic ELB

using Pulumi;
using Aws = Pulumi.Aws;

class MyStack : Stack
{
    public MyStack()
    {
        var exampleApplication = new Aws.CodeDeploy.Application("exampleApplication", new Aws.CodeDeploy.ApplicationArgs
        {
        });
        var exampleDeploymentGroup = new Aws.CodeDeploy.DeploymentGroup("exampleDeploymentGroup", new Aws.CodeDeploy.DeploymentGroupArgs
        {
            AppName = exampleApplication.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",
                },
            },
            DeploymentGroupName = "example-group",
            DeploymentStyle = new Aws.CodeDeploy.Inputs.DeploymentGroupDeploymentStyleArgs
            {
                DeploymentOption = "WITH_TRAFFIC_CONTROL",
                DeploymentType = "BLUE_GREEN",
            },
            LoadBalancerInfo = new Aws.CodeDeploy.Inputs.DeploymentGroupLoadBalancerInfoArgs
            {
                ElbInfos = 
                {
                    new Aws.CodeDeploy.Inputs.DeploymentGroupLoadBalancerInfoElbInfoArgs
                    {
                        Name = aws_elb.Example.Name,
                    },
                },
            },
            ServiceRoleArn = aws_iam_role.Example.Arn,
        });
    }

}
package main

import (
    "github.com/pulumi/pulumi-aws/sdk/v2/go/aws/codedeploy"
    "github.com/pulumi/pulumi/sdk/v2/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,
            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"),
                },
            },
            DeploymentGroupName: pulumi.String("example-group"),
            DeploymentStyle: &codedeploy.DeploymentGroupDeploymentStyleArgs{
                DeploymentOption: pulumi.String("WITH_TRAFFIC_CONTROL"),
                DeploymentType:   pulumi.String("BLUE_GREEN"),
            },
            LoadBalancerInfo: &codedeploy.DeploymentGroupLoadBalancerInfoArgs{
                ElbInfos: codedeploy.DeploymentGroupLoadBalancerInfoElbInfoArray{
                    &codedeploy.DeploymentGroupLoadBalancerInfoElbInfoArgs{
                        Name: pulumi.String(aws_elb.Example.Name),
                    },
                },
            },
            ServiceRoleArn: pulumi.String(aws_iam_role.Example.Arn),
        })
        if err != nil {
            return err
        }
        return nil
    })
}
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,
    blue_green_deployment_config={
        "deploymentReadyOption": {
            "actionOnTimeout": "STOP_DEPLOYMENT",
            "waitTimeInMinutes": 60,
        },
        "greenFleetProvisioningOption": {
            "action": "DISCOVER_EXISTING",
        },
        "terminateBlueInstancesOnDeploymentSuccess": {
            "action": "KEEP_ALIVE",
        },
    },
    deployment_group_name="example-group",
    deployment_style={
        "deploymentOption": "WITH_TRAFFIC_CONTROL",
        "deploymentType": "BLUE_GREEN",
    },
    load_balancer_info={
        "elbInfos": [{
            "name": aws_elb["example"]["name"],
        }],
    },
    service_role_arn=aws_iam_role["example"]["arn"])
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";

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

Create a DeploymentGroup Resource

def DeploymentGroup(resource_name, opts=None, alarm_configuration=None, app_name=None, auto_rollback_configuration=None, autoscaling_groups=None, blue_green_deployment_config=None, deployment_config_name=None, deployment_group_name=None, deployment_style=None, ec2_tag_filters=None, ec2_tag_sets=None, ecs_service=None, load_balancer_info=None, on_premises_instance_tag_filters=None, service_role_arn=None, trigger_configurations=None, __props__=None);
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.
opts ResourceOptions
A bag of options that control this 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.

DeploymentGroup Resource Properties

To learn more about resource properties and how to use them, see Inputs and Outputs in the Programming Model 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.

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 DeploymentGroupAlarmConfiguration

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

AutoRollbackConfiguration DeploymentGroupAutoRollbackConfiguration

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

AutoscalingGroups []string

Autoscaling groups associated with the deployment group.

BlueGreenDeploymentConfig DeploymentGroupBlueGreenDeploymentConfig

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 DeploymentGroupDeploymentStyle

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 []DeploymentGroupEc2TagFilter

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

Ec2TagSets []DeploymentGroupEc2TagSet

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 DeploymentGroupEcsService

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

LoadBalancerInfo DeploymentGroupLoadBalancerInfo

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

OnPremisesInstanceTagFilters []DeploymentGroupOnPremisesInstanceTagFilter

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

TriggerConfigurations []DeploymentGroupTriggerConfiguration

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 DeploymentGroupAlarmConfiguration

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

autoRollbackConfiguration DeploymentGroupAutoRollbackConfiguration

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

autoscalingGroups string[]

Autoscaling groups associated with the deployment group.

blueGreenDeploymentConfig DeploymentGroupBlueGreenDeploymentConfig

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 DeploymentGroupDeploymentStyle

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 DeploymentGroupEc2TagFilter[]

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

ec2TagSets DeploymentGroupEc2TagSet[]

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 DeploymentGroupEcsService

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

loadBalancerInfo DeploymentGroupLoadBalancerInfo

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

onPremisesInstanceTagFilters DeploymentGroupOnPremisesInstanceTagFilter[]

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

triggerConfigurations DeploymentGroupTriggerConfiguration[]

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 Dict[DeploymentGroupAlarmConfiguration]

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

auto_rollback_configuration Dict[DeploymentGroupAutoRollbackConfiguration]

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

autoscaling_groups List[str]

Autoscaling groups associated with the deployment group.

blue_green_deployment_config Dict[DeploymentGroupBlueGreenDeploymentConfig]

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 Dict[DeploymentGroupDeploymentStyle]

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 List[DeploymentGroupEc2TagFilter]

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

ec2_tag_sets List[DeploymentGroupEc2TagSet]

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 Dict[DeploymentGroupEcsService]

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

load_balancer_info Dict[DeploymentGroupLoadBalancerInfo]

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

on_premises_instance_tag_filters List[DeploymentGroupOnPremisesInstanceTagFilter]

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

trigger_configurations List[DeploymentGroupTriggerConfiguration]

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:

Id string
The provider-assigned unique ID for this managed resource.
Id string
The provider-assigned unique ID for this managed resource.
id string
The provider-assigned unique ID for this managed resource.
id str
The provider-assigned unique ID for this managed resource.

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
static get(resource_name, id, opts=None, alarm_configuration=None, app_name=None, auto_rollback_configuration=None, autoscaling_groups=None, blue_green_deployment_config=None, deployment_config_name=None, deployment_group_name=None, deployment_style=None, ec2_tag_filters=None, ec2_tag_sets=None, ecs_service=None, load_balancer_info=None, on_premises_instance_tag_filters=None, service_role_arn=None, trigger_configurations=None, __props__=None);
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)
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.

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.

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”.

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.

TriggerConfigurations List<DeploymentGroupTriggerConfigurationArgs>

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

AlarmConfiguration DeploymentGroupAlarmConfiguration

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

AppName string

The name of the application.

AutoRollbackConfiguration DeploymentGroupAutoRollbackConfiguration

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

AutoscalingGroups []string

Autoscaling groups associated with the deployment group.

BlueGreenDeploymentConfig DeploymentGroupBlueGreenDeploymentConfig

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”.

DeploymentGroupName string

The name of the deployment group.

DeploymentStyle DeploymentGroupDeploymentStyle

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 []DeploymentGroupEc2TagFilter

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

Ec2TagSets []DeploymentGroupEc2TagSet

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 DeploymentGroupEcsService

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

LoadBalancerInfo DeploymentGroupLoadBalancerInfo

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

OnPremisesInstanceTagFilters []DeploymentGroupOnPremisesInstanceTagFilter

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

ServiceRoleArn string

The service role ARN that allows deployments.

TriggerConfigurations []DeploymentGroupTriggerConfiguration

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

alarmConfiguration DeploymentGroupAlarmConfiguration

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

appName string

The name of the application.

autoRollbackConfiguration DeploymentGroupAutoRollbackConfiguration

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

autoscalingGroups string[]

Autoscaling groups associated with the deployment group.

blueGreenDeploymentConfig DeploymentGroupBlueGreenDeploymentConfig

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”.

deploymentGroupName string

The name of the deployment group.

deploymentStyle DeploymentGroupDeploymentStyle

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 DeploymentGroupEc2TagFilter[]

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

ec2TagSets DeploymentGroupEc2TagSet[]

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 DeploymentGroupEcsService

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

loadBalancerInfo DeploymentGroupLoadBalancerInfo

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

onPremisesInstanceTagFilters DeploymentGroupOnPremisesInstanceTagFilter[]

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

serviceRoleArn string

The service role ARN that allows deployments.

triggerConfigurations DeploymentGroupTriggerConfiguration[]

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

alarm_configuration Dict[DeploymentGroupAlarmConfiguration]

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

app_name str

The name of the application.

auto_rollback_configuration Dict[DeploymentGroupAutoRollbackConfiguration]

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

autoscaling_groups List[str]

Autoscaling groups associated with the deployment group.

blue_green_deployment_config Dict[DeploymentGroupBlueGreenDeploymentConfig]

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_group_name str

The name of the deployment group.

deployment_style Dict[DeploymentGroupDeploymentStyle]

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 List[DeploymentGroupEc2TagFilter]

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

ec2_tag_sets List[DeploymentGroupEc2TagSet]

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 Dict[DeploymentGroupEcsService]

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

load_balancer_info Dict[DeploymentGroupLoadBalancerInfo]

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

on_premises_instance_tag_filters List[DeploymentGroupOnPremisesInstanceTagFilter]

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.

trigger_configurations List[DeploymentGroupTriggerConfiguration]

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

Supporting Types

DeploymentGroupAlarmConfiguration

See the input and output API doc for this type.

See the input and output API doc for this type.

See the input and output API doc for this type.

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 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 List[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.

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.

DeploymentGroupAutoRollbackConfiguration

See the input and output API doc for this type.

See the input and output API doc for this type.

See the input and output API doc for this type.

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 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 List[str]

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

DeploymentGroupBlueGreenDeploymentConfig

See the input and output API doc for this type.

See the input and output API doc for this type.

See the input and output API doc for this type.

DeploymentReadyOption DeploymentGroupBlueGreenDeploymentConfigDeploymentReadyOptionArgs

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

GreenFleetProvisioningOption DeploymentGroupBlueGreenDeploymentConfigGreenFleetProvisioningOptionArgs

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

TerminateBlueInstancesOnDeploymentSuccess DeploymentGroupBlueGreenDeploymentConfigTerminateBlueInstancesOnDeploymentSuccessArgs

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 Dict[DeploymentGroupBlueGreenDeploymentConfigDeploymentReadyOption]

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

greenFleetProvisioningOption Dict[DeploymentGroupBlueGreenDeploymentConfigGreenFleetProvisioningOption]

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

terminateBlueInstancesOnDeploymentSuccess Dict[DeploymentGroupBlueGreenDeploymentConfigTerminateBlueInstancesOnDeploymentSuccess]

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

DeploymentGroupBlueGreenDeploymentConfigDeploymentReadyOption

See the input and output API doc for this type.

See the input and output API doc for this type.

See the input and output API doc for this type.

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 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.

actionOnTimeout 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.

waitTimeInMinutes float

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

See the input and output API doc for this type.

See the input and output API doc for this type.

See the input and output API doc for this type.

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.

DeploymentGroupBlueGreenDeploymentConfigTerminateBlueInstancesOnDeploymentSuccess

See the input and output API doc for this type.

See the input and output API doc for this type.

See the input and output API doc for this type.

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 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.

terminationWaitTimeInMinutes float

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

DeploymentGroupDeploymentStyle

See the input and output API doc for this type.

See the input and output API doc for this type.

See the input and output API doc for this type.

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 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.

deploymentType 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.

DeploymentGroupEc2TagFilter

See the input and output API doc for this type.

See the input and output API doc for this type.

See the input and output API doc for this type.

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.

DeploymentGroupEc2TagSet

See the input and output API doc for this type.

See the input and output API doc for this type.

See the input and output API doc for this type.

Ec2TagFilters List<DeploymentGroupEc2TagSetEc2TagFilterArgs>

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 DeploymentGroupEc2TagSetEc2TagFilter[]

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

ec2_tag_filters List[DeploymentGroupEc2TagSetEc2TagFilter]

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

DeploymentGroupEc2TagSetEc2TagFilter

See the input and output API doc for this type.

See the input and output API doc for this type.

See the input and output API doc for this type.

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.

DeploymentGroupEcsService

See the input and output API doc for this type.

See the input and output API doc for this type.

See the input and output API doc for this type.

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.

DeploymentGroupLoadBalancerInfo

See the input and output API doc for this type.

See the input and output API doc for this type.

See the input and output API doc for this type.

ElbInfos List<DeploymentGroupLoadBalancerInfoElbInfoArgs>

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

TargetGroupInfos List<DeploymentGroupLoadBalancerInfoTargetGroupInfoArgs>

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

TargetGroupPairInfo DeploymentGroupLoadBalancerInfoTargetGroupPairInfoArgs

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 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 Dict[DeploymentGroupLoadBalancerInfoTargetGroupPairInfo]

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

DeploymentGroupLoadBalancerInfoElbInfo

See the input and output API doc for this type.

See the input and output API doc for this type.

See the input and output API doc for this type.

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.

DeploymentGroupLoadBalancerInfoTargetGroupInfo

See the input and output API doc for this type.

See the input and output API doc for this type.

See the input and output API doc for this type.

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.

DeploymentGroupLoadBalancerInfoTargetGroupPairInfo

See the input and output API doc for this type.

See the input and output API doc for this type.

See the input and output API doc for this type.

ProdTrafficRoute DeploymentGroupLoadBalancerInfoTargetGroupPairInfoProdTrafficRouteArgs

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

TargetGroups List<DeploymentGroupLoadBalancerInfoTargetGroupPairInfoTargetGroupArgs>

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

TestTrafficRoute DeploymentGroupLoadBalancerInfoTargetGroupPairInfoTestTrafficRouteArgs

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 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 Dict[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 Dict[DeploymentGroupLoadBalancerInfoTargetGroupPairInfoTestTrafficRoute]

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

DeploymentGroupLoadBalancerInfoTargetGroupPairInfoProdTrafficRoute

See the input and output API doc for this type.

See the input and output API doc for this type.

See the input and output API doc for this type.

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 string[]

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

listenerArns List[str]

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

DeploymentGroupLoadBalancerInfoTargetGroupPairInfoTargetGroup

See the input and output API doc for this type.

See the input and output API doc for this type.

See the input and output API doc for this type.

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.

DeploymentGroupLoadBalancerInfoTargetGroupPairInfoTestTrafficRoute

See the input and output API doc for this type.

See the input and output API doc for this type.

See the input and output API doc for this type.

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 string[]

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

listenerArns List[str]

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

DeploymentGroupOnPremisesInstanceTagFilter

See the input and output API doc for this type.

See the input and output API doc for this type.

See the input and output API doc for this type.

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.

DeploymentGroupTriggerConfiguration

See the input and output API doc for this type.

See the input and output API doc for this type.

See the input and output API doc for this type.

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 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[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.

triggerName str

The name of the notification trigger.

triggerTargetArn str

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

Package Details

Repository
https://github.com/pulumi/pulumi-aws
License
Apache-2.0
Notes
This Pulumi package is based on the aws Terraform Provider.