aws logo
AWS Classic v5.41.0, May 15 23

aws.codedeploy.DeploymentConfig

Explore with Pulumi AI

Provides a CodeDeploy deployment config for an application

Example Usage

Server Usage

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

return await Deployment.RunAsync(() => 
{
    var fooDeploymentConfig = new Aws.CodeDeploy.DeploymentConfig("fooDeploymentConfig", new()
    {
        DeploymentConfigName = "test-deployment-config",
        MinimumHealthyHosts = new Aws.CodeDeploy.Inputs.DeploymentConfigMinimumHealthyHostsArgs
        {
            Type = "HOST_COUNT",
            Value = 2,
        },
    });

    var fooDeploymentGroup = new Aws.CodeDeploy.DeploymentGroup("fooDeploymentGroup", new()
    {
        AppName = aws_codedeploy_app.Foo_app.Name,
        DeploymentGroupName = "bar",
        ServiceRoleArn = aws_iam_role.Foo_role.Arn,
        DeploymentConfigName = fooDeploymentConfig.Id,
        Ec2TagFilters = new[]
        {
            new Aws.CodeDeploy.Inputs.DeploymentGroupEc2TagFilterArgs
            {
                Key = "filterkey",
                Type = "KEY_AND_VALUE",
                Value = "filtervalue",
            },
        },
        TriggerConfigurations = new[]
        {
            new Aws.CodeDeploy.Inputs.DeploymentGroupTriggerConfigurationArgs
            {
                TriggerEvents = new[]
                {
                    "DeploymentFailure",
                },
                TriggerName = "foo-trigger",
                TriggerTargetArn = "foo-topic-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 (
	"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 {
		fooDeploymentConfig, err := codedeploy.NewDeploymentConfig(ctx, "fooDeploymentConfig", &codedeploy.DeploymentConfigArgs{
			DeploymentConfigName: pulumi.String("test-deployment-config"),
			MinimumHealthyHosts: &codedeploy.DeploymentConfigMinimumHealthyHostsArgs{
				Type:  pulumi.String("HOST_COUNT"),
				Value: pulumi.Int(2),
			},
		})
		if err != nil {
			return err
		}
		_, err = codedeploy.NewDeploymentGroup(ctx, "fooDeploymentGroup", &codedeploy.DeploymentGroupArgs{
			AppName:              pulumi.Any(aws_codedeploy_app.Foo_app.Name),
			DeploymentGroupName:  pulumi.String("bar"),
			ServiceRoleArn:       pulumi.Any(aws_iam_role.Foo_role.Arn),
			DeploymentConfigName: fooDeploymentConfig.ID(),
			Ec2TagFilters: codedeploy.DeploymentGroupEc2TagFilterArray{
				&codedeploy.DeploymentGroupEc2TagFilterArgs{
					Key:   pulumi.String("filterkey"),
					Type:  pulumi.String("KEY_AND_VALUE"),
					Value: pulumi.String("filtervalue"),
				},
			},
			TriggerConfigurations: codedeploy.DeploymentGroupTriggerConfigurationArray{
				&codedeploy.DeploymentGroupTriggerConfigurationArgs{
					TriggerEvents: pulumi.StringArray{
						pulumi.String("DeploymentFailure"),
					},
					TriggerName:      pulumi.String("foo-trigger"),
					TriggerTargetArn: pulumi.String("foo-topic-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.codedeploy.DeploymentConfig;
import com.pulumi.aws.codedeploy.DeploymentConfigArgs;
import com.pulumi.aws.codedeploy.inputs.DeploymentConfigMinimumHealthyHostsArgs;
import com.pulumi.aws.codedeploy.DeploymentGroup;
import com.pulumi.aws.codedeploy.DeploymentGroupArgs;
import com.pulumi.aws.codedeploy.inputs.DeploymentGroupEc2TagFilterArgs;
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 fooDeploymentConfig = new DeploymentConfig("fooDeploymentConfig", DeploymentConfigArgs.builder()        
            .deploymentConfigName("test-deployment-config")
            .minimumHealthyHosts(DeploymentConfigMinimumHealthyHostsArgs.builder()
                .type("HOST_COUNT")
                .value(2)
                .build())
            .build());

        var fooDeploymentGroup = new DeploymentGroup("fooDeploymentGroup", DeploymentGroupArgs.builder()        
            .appName(aws_codedeploy_app.foo_app().name())
            .deploymentGroupName("bar")
            .serviceRoleArn(aws_iam_role.foo_role().arn())
            .deploymentConfigName(fooDeploymentConfig.id())
            .ec2TagFilters(DeploymentGroupEc2TagFilterArgs.builder()
                .key("filterkey")
                .type("KEY_AND_VALUE")
                .value("filtervalue")
                .build())
            .triggerConfigurations(DeploymentGroupTriggerConfigurationArgs.builder()
                .triggerEvents("DeploymentFailure")
                .triggerName("foo-trigger")
                .triggerTargetArn("foo-topic-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

foo_deployment_config = aws.codedeploy.DeploymentConfig("fooDeploymentConfig",
    deployment_config_name="test-deployment-config",
    minimum_healthy_hosts=aws.codedeploy.DeploymentConfigMinimumHealthyHostsArgs(
        type="HOST_COUNT",
        value=2,
    ))
foo_deployment_group = aws.codedeploy.DeploymentGroup("fooDeploymentGroup",
    app_name=aws_codedeploy_app["foo_app"]["name"],
    deployment_group_name="bar",
    service_role_arn=aws_iam_role["foo_role"]["arn"],
    deployment_config_name=foo_deployment_config.id,
    ec2_tag_filters=[aws.codedeploy.DeploymentGroupEc2TagFilterArgs(
        key="filterkey",
        type="KEY_AND_VALUE",
        value="filtervalue",
    )],
    trigger_configurations=[aws.codedeploy.DeploymentGroupTriggerConfigurationArgs(
        trigger_events=["DeploymentFailure"],
        trigger_name="foo-trigger",
        trigger_target_arn="foo-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 fooDeploymentConfig = new aws.codedeploy.DeploymentConfig("fooDeploymentConfig", {
    deploymentConfigName: "test-deployment-config",
    minimumHealthyHosts: {
        type: "HOST_COUNT",
        value: 2,
    },
});
const fooDeploymentGroup = new aws.codedeploy.DeploymentGroup("fooDeploymentGroup", {
    appName: aws_codedeploy_app.foo_app.name,
    deploymentGroupName: "bar",
    serviceRoleArn: aws_iam_role.foo_role.arn,
    deploymentConfigName: fooDeploymentConfig.id,
    ec2TagFilters: [{
        key: "filterkey",
        type: "KEY_AND_VALUE",
        value: "filtervalue",
    }],
    triggerConfigurations: [{
        triggerEvents: ["DeploymentFailure"],
        triggerName: "foo-trigger",
        triggerTargetArn: "foo-topic-arn",
    }],
    autoRollbackConfiguration: {
        enabled: true,
        events: ["DEPLOYMENT_FAILURE"],
    },
    alarmConfiguration: {
        alarms: ["my-alarm-name"],
        enabled: true,
    },
});
resources:
  fooDeploymentConfig:
    type: aws:codedeploy:DeploymentConfig
    properties:
      deploymentConfigName: test-deployment-config
      minimumHealthyHosts:
        type: HOST_COUNT
        value: 2
  fooDeploymentGroup:
    type: aws:codedeploy:DeploymentGroup
    properties:
      appName: ${aws_codedeploy_app.foo_app.name}
      deploymentGroupName: bar
      serviceRoleArn: ${aws_iam_role.foo_role.arn}
      deploymentConfigName: ${fooDeploymentConfig.id}
      ec2TagFilters:
        - key: filterkey
          type: KEY_AND_VALUE
          value: filtervalue
      triggerConfigurations:
        - triggerEvents:
            - DeploymentFailure
          triggerName: foo-trigger
          triggerTargetArn: foo-topic-arn
      autoRollbackConfiguration:
        enabled: true
        events:
          - DEPLOYMENT_FAILURE
      alarmConfiguration:
        alarms:
          - my-alarm-name
        enabled: true

Lambda Usage

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

return await Deployment.RunAsync(() => 
{
    var fooDeploymentConfig = new Aws.CodeDeploy.DeploymentConfig("fooDeploymentConfig", new()
    {
        DeploymentConfigName = "test-deployment-config",
        ComputePlatform = "Lambda",
        TrafficRoutingConfig = new Aws.CodeDeploy.Inputs.DeploymentConfigTrafficRoutingConfigArgs
        {
            Type = "TimeBasedLinear",
            TimeBasedLinear = new Aws.CodeDeploy.Inputs.DeploymentConfigTrafficRoutingConfigTimeBasedLinearArgs
            {
                Interval = 10,
                Percentage = 10,
            },
        },
    });

    var fooDeploymentGroup = new Aws.CodeDeploy.DeploymentGroup("fooDeploymentGroup", new()
    {
        AppName = aws_codedeploy_app.Foo_app.Name,
        DeploymentGroupName = "bar",
        ServiceRoleArn = aws_iam_role.Foo_role.Arn,
        DeploymentConfigName = fooDeploymentConfig.Id,
        AutoRollbackConfiguration = new Aws.CodeDeploy.Inputs.DeploymentGroupAutoRollbackConfigurationArgs
        {
            Enabled = true,
            Events = new[]
            {
                "DEPLOYMENT_STOP_ON_ALARM",
            },
        },
        AlarmConfiguration = new Aws.CodeDeploy.Inputs.DeploymentGroupAlarmConfigurationArgs
        {
            Alarms = new[]
            {
                "my-alarm-name",
            },
            Enabled = true,
        },
    });

});
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 {
		fooDeploymentConfig, err := codedeploy.NewDeploymentConfig(ctx, "fooDeploymentConfig", &codedeploy.DeploymentConfigArgs{
			DeploymentConfigName: pulumi.String("test-deployment-config"),
			ComputePlatform:      pulumi.String("Lambda"),
			TrafficRoutingConfig: &codedeploy.DeploymentConfigTrafficRoutingConfigArgs{
				Type: pulumi.String("TimeBasedLinear"),
				TimeBasedLinear: &codedeploy.DeploymentConfigTrafficRoutingConfigTimeBasedLinearArgs{
					Interval:   pulumi.Int(10),
					Percentage: pulumi.Int(10),
				},
			},
		})
		if err != nil {
			return err
		}
		_, err = codedeploy.NewDeploymentGroup(ctx, "fooDeploymentGroup", &codedeploy.DeploymentGroupArgs{
			AppName:              pulumi.Any(aws_codedeploy_app.Foo_app.Name),
			DeploymentGroupName:  pulumi.String("bar"),
			ServiceRoleArn:       pulumi.Any(aws_iam_role.Foo_role.Arn),
			DeploymentConfigName: fooDeploymentConfig.ID(),
			AutoRollbackConfiguration: &codedeploy.DeploymentGroupAutoRollbackConfigurationArgs{
				Enabled: pulumi.Bool(true),
				Events: pulumi.StringArray{
					pulumi.String("DEPLOYMENT_STOP_ON_ALARM"),
				},
			},
			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.codedeploy.DeploymentConfig;
import com.pulumi.aws.codedeploy.DeploymentConfigArgs;
import com.pulumi.aws.codedeploy.inputs.DeploymentConfigTrafficRoutingConfigArgs;
import com.pulumi.aws.codedeploy.inputs.DeploymentConfigTrafficRoutingConfigTimeBasedLinearArgs;
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.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 fooDeploymentConfig = new DeploymentConfig("fooDeploymentConfig", DeploymentConfigArgs.builder()        
            .deploymentConfigName("test-deployment-config")
            .computePlatform("Lambda")
            .trafficRoutingConfig(DeploymentConfigTrafficRoutingConfigArgs.builder()
                .type("TimeBasedLinear")
                .timeBasedLinear(DeploymentConfigTrafficRoutingConfigTimeBasedLinearArgs.builder()
                    .interval(10)
                    .percentage(10)
                    .build())
                .build())
            .build());

        var fooDeploymentGroup = new DeploymentGroup("fooDeploymentGroup", DeploymentGroupArgs.builder()        
            .appName(aws_codedeploy_app.foo_app().name())
            .deploymentGroupName("bar")
            .serviceRoleArn(aws_iam_role.foo_role().arn())
            .deploymentConfigName(fooDeploymentConfig.id())
            .autoRollbackConfiguration(DeploymentGroupAutoRollbackConfigurationArgs.builder()
                .enabled(true)
                .events("DEPLOYMENT_STOP_ON_ALARM")
                .build())
            .alarmConfiguration(DeploymentGroupAlarmConfigurationArgs.builder()
                .alarms("my-alarm-name")
                .enabled(true)
                .build())
            .build());

    }
}
import pulumi
import pulumi_aws as aws

foo_deployment_config = aws.codedeploy.DeploymentConfig("fooDeploymentConfig",
    deployment_config_name="test-deployment-config",
    compute_platform="Lambda",
    traffic_routing_config=aws.codedeploy.DeploymentConfigTrafficRoutingConfigArgs(
        type="TimeBasedLinear",
        time_based_linear=aws.codedeploy.DeploymentConfigTrafficRoutingConfigTimeBasedLinearArgs(
            interval=10,
            percentage=10,
        ),
    ))
foo_deployment_group = aws.codedeploy.DeploymentGroup("fooDeploymentGroup",
    app_name=aws_codedeploy_app["foo_app"]["name"],
    deployment_group_name="bar",
    service_role_arn=aws_iam_role["foo_role"]["arn"],
    deployment_config_name=foo_deployment_config.id,
    auto_rollback_configuration=aws.codedeploy.DeploymentGroupAutoRollbackConfigurationArgs(
        enabled=True,
        events=["DEPLOYMENT_STOP_ON_ALARM"],
    ),
    alarm_configuration=aws.codedeploy.DeploymentGroupAlarmConfigurationArgs(
        alarms=["my-alarm-name"],
        enabled=True,
    ))
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";

const fooDeploymentConfig = new aws.codedeploy.DeploymentConfig("fooDeploymentConfig", {
    deploymentConfigName: "test-deployment-config",
    computePlatform: "Lambda",
    trafficRoutingConfig: {
        type: "TimeBasedLinear",
        timeBasedLinear: {
            interval: 10,
            percentage: 10,
        },
    },
});
const fooDeploymentGroup = new aws.codedeploy.DeploymentGroup("fooDeploymentGroup", {
    appName: aws_codedeploy_app.foo_app.name,
    deploymentGroupName: "bar",
    serviceRoleArn: aws_iam_role.foo_role.arn,
    deploymentConfigName: fooDeploymentConfig.id,
    autoRollbackConfiguration: {
        enabled: true,
        events: ["DEPLOYMENT_STOP_ON_ALARM"],
    },
    alarmConfiguration: {
        alarms: ["my-alarm-name"],
        enabled: true,
    },
});
resources:
  fooDeploymentConfig:
    type: aws:codedeploy:DeploymentConfig
    properties:
      deploymentConfigName: test-deployment-config
      computePlatform: Lambda
      trafficRoutingConfig:
        type: TimeBasedLinear
        timeBasedLinear:
          interval: 10
          percentage: 10
  fooDeploymentGroup:
    type: aws:codedeploy:DeploymentGroup
    properties:
      appName: ${aws_codedeploy_app.foo_app.name}
      deploymentGroupName: bar
      serviceRoleArn: ${aws_iam_role.foo_role.arn}
      deploymentConfigName: ${fooDeploymentConfig.id}
      autoRollbackConfiguration:
        enabled: true
        events:
          - DEPLOYMENT_STOP_ON_ALARM
      alarmConfiguration:
        alarms:
          - my-alarm-name
        enabled: true

Create DeploymentConfig Resource

new DeploymentConfig(name: string, args?: DeploymentConfigArgs, opts?: CustomResourceOptions);
@overload
def DeploymentConfig(resource_name: str,
                     opts: Optional[ResourceOptions] = None,
                     compute_platform: Optional[str] = None,
                     deployment_config_name: Optional[str] = None,
                     minimum_healthy_hosts: Optional[DeploymentConfigMinimumHealthyHostsArgs] = None,
                     traffic_routing_config: Optional[DeploymentConfigTrafficRoutingConfigArgs] = None)
@overload
def DeploymentConfig(resource_name: str,
                     args: Optional[DeploymentConfigArgs] = None,
                     opts: Optional[ResourceOptions] = None)
func NewDeploymentConfig(ctx *Context, name string, args *DeploymentConfigArgs, opts ...ResourceOption) (*DeploymentConfig, error)
public DeploymentConfig(string name, DeploymentConfigArgs? args = null, CustomResourceOptions? opts = null)
public DeploymentConfig(String name, DeploymentConfigArgs args)
public DeploymentConfig(String name, DeploymentConfigArgs args, CustomResourceOptions options)
type: aws:codedeploy:DeploymentConfig
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

name string
The unique name of the resource.
args DeploymentConfigArgs
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 DeploymentConfigArgs
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 DeploymentConfigArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name string
The unique name of the resource.
args DeploymentConfigArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name String
The unique name of the resource.
args DeploymentConfigArgs
The arguments to resource properties.
options CustomResourceOptions
Bag of options to control resource's behavior.

DeploymentConfig 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 DeploymentConfig resource accepts the following input properties:

ComputePlatform string

The compute platform can be Server, Lambda, or ECS. Default is Server.

DeploymentConfigName string

The name of the deployment config.

MinimumHealthyHosts DeploymentConfigMinimumHealthyHostsArgs

A minimum_healthy_hosts block. Required for Server compute platform. Minimum Healthy Hosts are documented below.

TrafficRoutingConfig DeploymentConfigTrafficRoutingConfigArgs

A traffic_routing_config block. Traffic Routing Config is documented below.

ComputePlatform string

The compute platform can be Server, Lambda, or ECS. Default is Server.

DeploymentConfigName string

The name of the deployment config.

MinimumHealthyHosts DeploymentConfigMinimumHealthyHostsArgs

A minimum_healthy_hosts block. Required for Server compute platform. Minimum Healthy Hosts are documented below.

TrafficRoutingConfig DeploymentConfigTrafficRoutingConfigArgs

A traffic_routing_config block. Traffic Routing Config is documented below.

computePlatform String

The compute platform can be Server, Lambda, or ECS. Default is Server.

deploymentConfigName String

The name of the deployment config.

minimumHealthyHosts DeploymentConfigMinimumHealthyHostsArgs

A minimum_healthy_hosts block. Required for Server compute platform. Minimum Healthy Hosts are documented below.

trafficRoutingConfig DeploymentConfigTrafficRoutingConfigArgs

A traffic_routing_config block. Traffic Routing Config is documented below.

computePlatform string

The compute platform can be Server, Lambda, or ECS. Default is Server.

deploymentConfigName string

The name of the deployment config.

minimumHealthyHosts DeploymentConfigMinimumHealthyHostsArgs

A minimum_healthy_hosts block. Required for Server compute platform. Minimum Healthy Hosts are documented below.

trafficRoutingConfig DeploymentConfigTrafficRoutingConfigArgs

A traffic_routing_config block. Traffic Routing Config is documented below.

compute_platform str

The compute platform can be Server, Lambda, or ECS. Default is Server.

deployment_config_name str

The name of the deployment config.

minimum_healthy_hosts DeploymentConfigMinimumHealthyHostsArgs

A minimum_healthy_hosts block. Required for Server compute platform. Minimum Healthy Hosts are documented below.

traffic_routing_config DeploymentConfigTrafficRoutingConfigArgs

A traffic_routing_config block. Traffic Routing Config is documented below.

computePlatform String

The compute platform can be Server, Lambda, or ECS. Default is Server.

deploymentConfigName String

The name of the deployment config.

minimumHealthyHosts Property Map

A minimum_healthy_hosts block. Required for Server compute platform. Minimum Healthy Hosts are documented below.

trafficRoutingConfig Property Map

A traffic_routing_config block. Traffic Routing Config is documented below.

Outputs

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

DeploymentConfigId string

The AWS Assigned deployment config id

Id string

The provider-assigned unique ID for this managed resource.

DeploymentConfigId string

The AWS Assigned deployment config id

Id string

The provider-assigned unique ID for this managed resource.

deploymentConfigId String

The AWS Assigned deployment config id

id String

The provider-assigned unique ID for this managed resource.

deploymentConfigId string

The AWS Assigned deployment config id

id string

The provider-assigned unique ID for this managed resource.

deployment_config_id str

The AWS Assigned deployment config id

id str

The provider-assigned unique ID for this managed resource.

deploymentConfigId String

The AWS Assigned deployment config id

id String

The provider-assigned unique ID for this managed resource.

Look up Existing DeploymentConfig Resource

Get an existing DeploymentConfig 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?: DeploymentConfigState, opts?: CustomResourceOptions): DeploymentConfig
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        compute_platform: Optional[str] = None,
        deployment_config_id: Optional[str] = None,
        deployment_config_name: Optional[str] = None,
        minimum_healthy_hosts: Optional[DeploymentConfigMinimumHealthyHostsArgs] = None,
        traffic_routing_config: Optional[DeploymentConfigTrafficRoutingConfigArgs] = None) -> DeploymentConfig
func GetDeploymentConfig(ctx *Context, name string, id IDInput, state *DeploymentConfigState, opts ...ResourceOption) (*DeploymentConfig, error)
public static DeploymentConfig Get(string name, Input<string> id, DeploymentConfigState? state, CustomResourceOptions? opts = null)
public static DeploymentConfig get(String name, Output<String> id, DeploymentConfigState 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:
ComputePlatform string

The compute platform can be Server, Lambda, or ECS. Default is Server.

DeploymentConfigId string

The AWS Assigned deployment config id

DeploymentConfigName string

The name of the deployment config.

MinimumHealthyHosts DeploymentConfigMinimumHealthyHostsArgs

A minimum_healthy_hosts block. Required for Server compute platform. Minimum Healthy Hosts are documented below.

TrafficRoutingConfig DeploymentConfigTrafficRoutingConfigArgs

A traffic_routing_config block. Traffic Routing Config is documented below.

ComputePlatform string

The compute platform can be Server, Lambda, or ECS. Default is Server.

DeploymentConfigId string

The AWS Assigned deployment config id

DeploymentConfigName string

The name of the deployment config.

MinimumHealthyHosts DeploymentConfigMinimumHealthyHostsArgs

A minimum_healthy_hosts block. Required for Server compute platform. Minimum Healthy Hosts are documented below.

TrafficRoutingConfig DeploymentConfigTrafficRoutingConfigArgs

A traffic_routing_config block. Traffic Routing Config is documented below.

computePlatform String

The compute platform can be Server, Lambda, or ECS. Default is Server.

deploymentConfigId String

The AWS Assigned deployment config id

deploymentConfigName String

The name of the deployment config.

minimumHealthyHosts DeploymentConfigMinimumHealthyHostsArgs

A minimum_healthy_hosts block. Required for Server compute platform. Minimum Healthy Hosts are documented below.

trafficRoutingConfig DeploymentConfigTrafficRoutingConfigArgs

A traffic_routing_config block. Traffic Routing Config is documented below.

computePlatform string

The compute platform can be Server, Lambda, or ECS. Default is Server.

deploymentConfigId string

The AWS Assigned deployment config id

deploymentConfigName string

The name of the deployment config.

minimumHealthyHosts DeploymentConfigMinimumHealthyHostsArgs

A minimum_healthy_hosts block. Required for Server compute platform. Minimum Healthy Hosts are documented below.

trafficRoutingConfig DeploymentConfigTrafficRoutingConfigArgs

A traffic_routing_config block. Traffic Routing Config is documented below.

compute_platform str

The compute platform can be Server, Lambda, or ECS. Default is Server.

deployment_config_id str

The AWS Assigned deployment config id

deployment_config_name str

The name of the deployment config.

minimum_healthy_hosts DeploymentConfigMinimumHealthyHostsArgs

A minimum_healthy_hosts block. Required for Server compute platform. Minimum Healthy Hosts are documented below.

traffic_routing_config DeploymentConfigTrafficRoutingConfigArgs

A traffic_routing_config block. Traffic Routing Config is documented below.

computePlatform String

The compute platform can be Server, Lambda, or ECS. Default is Server.

deploymentConfigId String

The AWS Assigned deployment config id

deploymentConfigName String

The name of the deployment config.

minimumHealthyHosts Property Map

A minimum_healthy_hosts block. Required for Server compute platform. Minimum Healthy Hosts are documented below.

trafficRoutingConfig Property Map

A traffic_routing_config block. Traffic Routing Config is documented below.

Supporting Types

DeploymentConfigMinimumHealthyHosts

Type string

The type can either be FLEET_PERCENT or HOST_COUNT.

Value int

The value when the type is FLEET_PERCENT represents the minimum number of healthy instances as a percentage of the total number of instances in the deployment. If you specify FLEET_PERCENT, at the start of the deployment, AWS CodeDeploy converts the percentage to the equivalent number of instance and rounds up fractional instances. When the type is HOST_COUNT, the value represents the minimum number of healthy instances as an absolute value.

Type string

The type can either be FLEET_PERCENT or HOST_COUNT.

Value int

The value when the type is FLEET_PERCENT represents the minimum number of healthy instances as a percentage of the total number of instances in the deployment. If you specify FLEET_PERCENT, at the start of the deployment, AWS CodeDeploy converts the percentage to the equivalent number of instance and rounds up fractional instances. When the type is HOST_COUNT, the value represents the minimum number of healthy instances as an absolute value.

type String

The type can either be FLEET_PERCENT or HOST_COUNT.

value Integer

The value when the type is FLEET_PERCENT represents the minimum number of healthy instances as a percentage of the total number of instances in the deployment. If you specify FLEET_PERCENT, at the start of the deployment, AWS CodeDeploy converts the percentage to the equivalent number of instance and rounds up fractional instances. When the type is HOST_COUNT, the value represents the minimum number of healthy instances as an absolute value.

type string

The type can either be FLEET_PERCENT or HOST_COUNT.

value number

The value when the type is FLEET_PERCENT represents the minimum number of healthy instances as a percentage of the total number of instances in the deployment. If you specify FLEET_PERCENT, at the start of the deployment, AWS CodeDeploy converts the percentage to the equivalent number of instance and rounds up fractional instances. When the type is HOST_COUNT, the value represents the minimum number of healthy instances as an absolute value.

type str

The type can either be FLEET_PERCENT or HOST_COUNT.

value int

The value when the type is FLEET_PERCENT represents the minimum number of healthy instances as a percentage of the total number of instances in the deployment. If you specify FLEET_PERCENT, at the start of the deployment, AWS CodeDeploy converts the percentage to the equivalent number of instance and rounds up fractional instances. When the type is HOST_COUNT, the value represents the minimum number of healthy instances as an absolute value.

type String

The type can either be FLEET_PERCENT or HOST_COUNT.

value Number

The value when the type is FLEET_PERCENT represents the minimum number of healthy instances as a percentage of the total number of instances in the deployment. If you specify FLEET_PERCENT, at the start of the deployment, AWS CodeDeploy converts the percentage to the equivalent number of instance and rounds up fractional instances. When the type is HOST_COUNT, the value represents the minimum number of healthy instances as an absolute value.

DeploymentConfigTrafficRoutingConfig

TimeBasedCanary DeploymentConfigTrafficRoutingConfigTimeBasedCanary

The time based canary configuration information. If type is TimeBasedLinear, use time_based_linear instead.

TimeBasedLinear DeploymentConfigTrafficRoutingConfigTimeBasedLinear

The time based linear configuration information. If type is TimeBasedCanary, use time_based_canary instead.

Type string

Type of traffic routing config. One of TimeBasedCanary, TimeBasedLinear, AllAtOnce.

TimeBasedCanary DeploymentConfigTrafficRoutingConfigTimeBasedCanary

The time based canary configuration information. If type is TimeBasedLinear, use time_based_linear instead.

TimeBasedLinear DeploymentConfigTrafficRoutingConfigTimeBasedLinear

The time based linear configuration information. If type is TimeBasedCanary, use time_based_canary instead.

Type string

Type of traffic routing config. One of TimeBasedCanary, TimeBasedLinear, AllAtOnce.

timeBasedCanary DeploymentConfigTrafficRoutingConfigTimeBasedCanary

The time based canary configuration information. If type is TimeBasedLinear, use time_based_linear instead.

timeBasedLinear DeploymentConfigTrafficRoutingConfigTimeBasedLinear

The time based linear configuration information. If type is TimeBasedCanary, use time_based_canary instead.

type String

Type of traffic routing config. One of TimeBasedCanary, TimeBasedLinear, AllAtOnce.

timeBasedCanary DeploymentConfigTrafficRoutingConfigTimeBasedCanary

The time based canary configuration information. If type is TimeBasedLinear, use time_based_linear instead.

timeBasedLinear DeploymentConfigTrafficRoutingConfigTimeBasedLinear

The time based linear configuration information. If type is TimeBasedCanary, use time_based_canary instead.

type string

Type of traffic routing config. One of TimeBasedCanary, TimeBasedLinear, AllAtOnce.

time_based_canary DeploymentConfigTrafficRoutingConfigTimeBasedCanary

The time based canary configuration information. If type is TimeBasedLinear, use time_based_linear instead.

time_based_linear DeploymentConfigTrafficRoutingConfigTimeBasedLinear

The time based linear configuration information. If type is TimeBasedCanary, use time_based_canary instead.

type str

Type of traffic routing config. One of TimeBasedCanary, TimeBasedLinear, AllAtOnce.

timeBasedCanary Property Map

The time based canary configuration information. If type is TimeBasedLinear, use time_based_linear instead.

timeBasedLinear Property Map

The time based linear configuration information. If type is TimeBasedCanary, use time_based_canary instead.

type String

Type of traffic routing config. One of TimeBasedCanary, TimeBasedLinear, AllAtOnce.

DeploymentConfigTrafficRoutingConfigTimeBasedCanary

Interval int

The number of minutes between the first and second traffic shifts of a TimeBasedCanary deployment.

Percentage int

The percentage of traffic to shift in the first increment of a TimeBasedCanary deployment.

Interval int

The number of minutes between the first and second traffic shifts of a TimeBasedCanary deployment.

Percentage int

The percentage of traffic to shift in the first increment of a TimeBasedCanary deployment.

interval Integer

The number of minutes between the first and second traffic shifts of a TimeBasedCanary deployment.

percentage Integer

The percentage of traffic to shift in the first increment of a TimeBasedCanary deployment.

interval number

The number of minutes between the first and second traffic shifts of a TimeBasedCanary deployment.

percentage number

The percentage of traffic to shift in the first increment of a TimeBasedCanary deployment.

interval int

The number of minutes between the first and second traffic shifts of a TimeBasedCanary deployment.

percentage int

The percentage of traffic to shift in the first increment of a TimeBasedCanary deployment.

interval Number

The number of minutes between the first and second traffic shifts of a TimeBasedCanary deployment.

percentage Number

The percentage of traffic to shift in the first increment of a TimeBasedCanary deployment.

DeploymentConfigTrafficRoutingConfigTimeBasedLinear

Interval int

The number of minutes between each incremental traffic shift of a TimeBasedLinear deployment.

Percentage int

The percentage of traffic that is shifted at the start of each increment of a TimeBasedLinear deployment.

Interval int

The number of minutes between each incremental traffic shift of a TimeBasedLinear deployment.

Percentage int

The percentage of traffic that is shifted at the start of each increment of a TimeBasedLinear deployment.

interval Integer

The number of minutes between each incremental traffic shift of a TimeBasedLinear deployment.

percentage Integer

The percentage of traffic that is shifted at the start of each increment of a TimeBasedLinear deployment.

interval number

The number of minutes between each incremental traffic shift of a TimeBasedLinear deployment.

percentage number

The percentage of traffic that is shifted at the start of each increment of a TimeBasedLinear deployment.

interval int

The number of minutes between each incremental traffic shift of a TimeBasedLinear deployment.

percentage int

The percentage of traffic that is shifted at the start of each increment of a TimeBasedLinear deployment.

interval Number

The number of minutes between each incremental traffic shift of a TimeBasedLinear deployment.

percentage Number

The percentage of traffic that is shifted at the start of each increment of a TimeBasedLinear deployment.

Import

CodeDeploy Deployment Configurations can be imported using the deployment_config_name, e.g.,

 $ pulumi import aws:codedeploy/deploymentConfig:DeploymentConfig example my-deployment-config

Package Details

Repository
AWS Classic pulumi/pulumi-aws
License
Apache-2.0
Notes

This Pulumi package is based on the aws Terraform Provider.