Deployment

Provides an AppConfig Deployment resource for an aws.appconfig.Application resource.

Example Usage

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

return await Deployment.RunAsync(() => 
{
    var example = new Aws.AppConfig.Deployment("example", new()
    {
        ApplicationId = aws_appconfig_application.Example.Id,
        ConfigurationProfileId = aws_appconfig_configuration_profile.Example.Configuration_profile_id,
        ConfigurationVersion = aws_appconfig_hosted_configuration_version.Example.Version_number,
        DeploymentStrategyId = aws_appconfig_deployment_strategy.Example.Id,
        Description = "My example deployment",
        EnvironmentId = aws_appconfig_environment.Example.Environment_id,
        Tags = 
        {
            { "Type", "AppConfig Deployment" },
        },
    });

});
package main

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

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := appconfig.NewDeployment(ctx, "example", &appconfig.DeploymentArgs{
			ApplicationId:          pulumi.Any(aws_appconfig_application.Example.Id),
			ConfigurationProfileId: pulumi.Any(aws_appconfig_configuration_profile.Example.Configuration_profile_id),
			ConfigurationVersion:   pulumi.Any(aws_appconfig_hosted_configuration_version.Example.Version_number),
			DeploymentStrategyId:   pulumi.Any(aws_appconfig_deployment_strategy.Example.Id),
			Description:            pulumi.String("My example deployment"),
			EnvironmentId:          pulumi.Any(aws_appconfig_environment.Example.Environment_id),
			Tags: pulumi.StringMap{
				"Type": pulumi.String("AppConfig Deployment"),
			},
		})
		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.appconfig.Deployment;
import com.pulumi.aws.appconfig.DeploymentArgs;
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 example = new Deployment("example", DeploymentArgs.builder()        
            .applicationId(aws_appconfig_application.example().id())
            .configurationProfileId(aws_appconfig_configuration_profile.example().configuration_profile_id())
            .configurationVersion(aws_appconfig_hosted_configuration_version.example().version_number())
            .deploymentStrategyId(aws_appconfig_deployment_strategy.example().id())
            .description("My example deployment")
            .environmentId(aws_appconfig_environment.example().environment_id())
            .tags(Map.of("Type", "AppConfig Deployment"))
            .build());

    }
}
import pulumi
import pulumi_aws as aws

example = aws.appconfig.Deployment("example",
    application_id=aws_appconfig_application["example"]["id"],
    configuration_profile_id=aws_appconfig_configuration_profile["example"]["configuration_profile_id"],
    configuration_version=aws_appconfig_hosted_configuration_version["example"]["version_number"],
    deployment_strategy_id=aws_appconfig_deployment_strategy["example"]["id"],
    description="My example deployment",
    environment_id=aws_appconfig_environment["example"]["environment_id"],
    tags={
        "Type": "AppConfig Deployment",
    })
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";

const example = new aws.appconfig.Deployment("example", {
    applicationId: aws_appconfig_application.example.id,
    configurationProfileId: aws_appconfig_configuration_profile.example.configuration_profile_id,
    configurationVersion: aws_appconfig_hosted_configuration_version.example.version_number,
    deploymentStrategyId: aws_appconfig_deployment_strategy.example.id,
    description: "My example deployment",
    environmentId: aws_appconfig_environment.example.environment_id,
    tags: {
        Type: "AppConfig Deployment",
    },
});
resources:
  example:
    type: aws:appconfig:Deployment
    properties:
      applicationId: ${aws_appconfig_application.example.id}
      configurationProfileId: ${aws_appconfig_configuration_profile.example.configuration_profile_id}
      configurationVersion: ${aws_appconfig_hosted_configuration_version.example.version_number}
      deploymentStrategyId: ${aws_appconfig_deployment_strategy.example.id}
      description: My example deployment
      environmentId: ${aws_appconfig_environment.example.environment_id}
      tags:
        Type: AppConfig Deployment

Create Deployment Resource

new Deployment(name: string, args: DeploymentArgs, opts?: CustomResourceOptions);
@overload
def Deployment(resource_name: str,
               opts: Optional[ResourceOptions] = None,
               application_id: Optional[str] = None,
               configuration_profile_id: Optional[str] = None,
               configuration_version: Optional[str] = None,
               deployment_strategy_id: Optional[str] = None,
               description: Optional[str] = None,
               environment_id: Optional[str] = None,
               tags: Optional[Mapping[str, str]] = None)
@overload
def Deployment(resource_name: str,
               args: DeploymentArgs,
               opts: Optional[ResourceOptions] = None)
func NewDeployment(ctx *Context, name string, args DeploymentArgs, opts ...ResourceOption) (*Deployment, error)
public Deployment(string name, DeploymentArgs args, CustomResourceOptions? opts = null)
public Deployment(String name, DeploymentArgs args)
public Deployment(String name, DeploymentArgs args, CustomResourceOptions options)
type: aws:appconfig:Deployment
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

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

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

ApplicationId string

Application ID. Must be between 4 and 7 characters in length.

ConfigurationProfileId string

Configuration profile ID. Must be between 4 and 7 characters in length.

ConfigurationVersion string

Configuration version to deploy. Can be at most 1024 characters.

DeploymentStrategyId string

Deployment strategy ID or name of a predefined deployment strategy. See Predefined Deployment Strategies for more details.

EnvironmentId string

Environment ID. Must be between 4 and 7 characters in length.

Description string

Description of the deployment. Can be at most 1024 characters.

Tags Dictionary<string, string>

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

ApplicationId string

Application ID. Must be between 4 and 7 characters in length.

ConfigurationProfileId string

Configuration profile ID. Must be between 4 and 7 characters in length.

ConfigurationVersion string

Configuration version to deploy. Can be at most 1024 characters.

DeploymentStrategyId string

Deployment strategy ID or name of a predefined deployment strategy. See Predefined Deployment Strategies for more details.

EnvironmentId string

Environment ID. Must be between 4 and 7 characters in length.

Description string

Description of the deployment. Can be at most 1024 characters.

Tags map[string]string

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

applicationId String

Application ID. Must be between 4 and 7 characters in length.

configurationProfileId String

Configuration profile ID. Must be between 4 and 7 characters in length.

configurationVersion String

Configuration version to deploy. Can be at most 1024 characters.

deploymentStrategyId String

Deployment strategy ID or name of a predefined deployment strategy. See Predefined Deployment Strategies for more details.

environmentId String

Environment ID. Must be between 4 and 7 characters in length.

description String

Description of the deployment. Can be at most 1024 characters.

tags Map<String,String>

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

applicationId string

Application ID. Must be between 4 and 7 characters in length.

configurationProfileId string

Configuration profile ID. Must be between 4 and 7 characters in length.

configurationVersion string

Configuration version to deploy. Can be at most 1024 characters.

deploymentStrategyId string

Deployment strategy ID or name of a predefined deployment strategy. See Predefined Deployment Strategies for more details.

environmentId string

Environment ID. Must be between 4 and 7 characters in length.

description string

Description of the deployment. Can be at most 1024 characters.

tags {[key: string]: string}

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

application_id str

Application ID. Must be between 4 and 7 characters in length.

configuration_profile_id str

Configuration profile ID. Must be between 4 and 7 characters in length.

configuration_version str

Configuration version to deploy. Can be at most 1024 characters.

deployment_strategy_id str

Deployment strategy ID or name of a predefined deployment strategy. See Predefined Deployment Strategies for more details.

environment_id str

Environment ID. Must be between 4 and 7 characters in length.

description str

Description of the deployment. Can be at most 1024 characters.

tags Mapping[str, str]

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

applicationId String

Application ID. Must be between 4 and 7 characters in length.

configurationProfileId String

Configuration profile ID. Must be between 4 and 7 characters in length.

configurationVersion String

Configuration version to deploy. Can be at most 1024 characters.

deploymentStrategyId String

Deployment strategy ID or name of a predefined deployment strategy. See Predefined Deployment Strategies for more details.

environmentId String

Environment ID. Must be between 4 and 7 characters in length.

description String

Description of the deployment. Can be at most 1024 characters.

tags Map<String>

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

Outputs

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

Arn string

ARN of the AppConfig Deployment.

DeploymentNumber int

Deployment number.

Id string

The provider-assigned unique ID for this managed resource.

State string

State of the deployment.

TagsAll Dictionary<string, string>

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

Arn string

ARN of the AppConfig Deployment.

DeploymentNumber int

Deployment number.

Id string

The provider-assigned unique ID for this managed resource.

State string

State of the deployment.

TagsAll map[string]string

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

arn String

ARN of the AppConfig Deployment.

deploymentNumber Integer

Deployment number.

id String

The provider-assigned unique ID for this managed resource.

state String

State of the deployment.

tagsAll Map<String,String>

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

arn string

ARN of the AppConfig Deployment.

deploymentNumber number

Deployment number.

id string

The provider-assigned unique ID for this managed resource.

state string

State of the deployment.

tagsAll {[key: string]: string}

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

arn str

ARN of the AppConfig Deployment.

deployment_number int

Deployment number.

id str

The provider-assigned unique ID for this managed resource.

state str

State of the deployment.

tags_all Mapping[str, str]

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

arn String

ARN of the AppConfig Deployment.

deploymentNumber Number

Deployment number.

id String

The provider-assigned unique ID for this managed resource.

state String

State of the deployment.

tagsAll Map<String>

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

Look up Existing Deployment Resource

Get an existing Deployment 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?: DeploymentState, opts?: CustomResourceOptions): Deployment
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        application_id: Optional[str] = None,
        arn: Optional[str] = None,
        configuration_profile_id: Optional[str] = None,
        configuration_version: Optional[str] = None,
        deployment_number: Optional[int] = None,
        deployment_strategy_id: Optional[str] = None,
        description: Optional[str] = None,
        environment_id: Optional[str] = None,
        state: Optional[str] = None,
        tags: Optional[Mapping[str, str]] = None,
        tags_all: Optional[Mapping[str, str]] = None) -> Deployment
func GetDeployment(ctx *Context, name string, id IDInput, state *DeploymentState, opts ...ResourceOption) (*Deployment, error)
public static Deployment Get(string name, Input<string> id, DeploymentState? state, CustomResourceOptions? opts = null)
public static Deployment get(String name, Output<String> id, DeploymentState 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:
ApplicationId string

Application ID. Must be between 4 and 7 characters in length.

Arn string

ARN of the AppConfig Deployment.

ConfigurationProfileId string

Configuration profile ID. Must be between 4 and 7 characters in length.

ConfigurationVersion string

Configuration version to deploy. Can be at most 1024 characters.

DeploymentNumber int

Deployment number.

DeploymentStrategyId string

Deployment strategy ID or name of a predefined deployment strategy. See Predefined Deployment Strategies for more details.

Description string

Description of the deployment. Can be at most 1024 characters.

EnvironmentId string

Environment ID. Must be between 4 and 7 characters in length.

State string

State of the deployment.

Tags Dictionary<string, string>

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

TagsAll Dictionary<string, string>

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

ApplicationId string

Application ID. Must be between 4 and 7 characters in length.

Arn string

ARN of the AppConfig Deployment.

ConfigurationProfileId string

Configuration profile ID. Must be between 4 and 7 characters in length.

ConfigurationVersion string

Configuration version to deploy. Can be at most 1024 characters.

DeploymentNumber int

Deployment number.

DeploymentStrategyId string

Deployment strategy ID or name of a predefined deployment strategy. See Predefined Deployment Strategies for more details.

Description string

Description of the deployment. Can be at most 1024 characters.

EnvironmentId string

Environment ID. Must be between 4 and 7 characters in length.

State string

State of the deployment.

Tags map[string]string

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

TagsAll map[string]string

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

applicationId String

Application ID. Must be between 4 and 7 characters in length.

arn String

ARN of the AppConfig Deployment.

configurationProfileId String

Configuration profile ID. Must be between 4 and 7 characters in length.

configurationVersion String

Configuration version to deploy. Can be at most 1024 characters.

deploymentNumber Integer

Deployment number.

deploymentStrategyId String

Deployment strategy ID or name of a predefined deployment strategy. See Predefined Deployment Strategies for more details.

description String

Description of the deployment. Can be at most 1024 characters.

environmentId String

Environment ID. Must be between 4 and 7 characters in length.

state String

State of the deployment.

tags Map<String,String>

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

tagsAll Map<String,String>

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

applicationId string

Application ID. Must be between 4 and 7 characters in length.

arn string

ARN of the AppConfig Deployment.

configurationProfileId string

Configuration profile ID. Must be between 4 and 7 characters in length.

configurationVersion string

Configuration version to deploy. Can be at most 1024 characters.

deploymentNumber number

Deployment number.

deploymentStrategyId string

Deployment strategy ID or name of a predefined deployment strategy. See Predefined Deployment Strategies for more details.

description string

Description of the deployment. Can be at most 1024 characters.

environmentId string

Environment ID. Must be between 4 and 7 characters in length.

state string

State of the deployment.

tags {[key: string]: string}

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

tagsAll {[key: string]: string}

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

application_id str

Application ID. Must be between 4 and 7 characters in length.

arn str

ARN of the AppConfig Deployment.

configuration_profile_id str

Configuration profile ID. Must be between 4 and 7 characters in length.

configuration_version str

Configuration version to deploy. Can be at most 1024 characters.

deployment_number int

Deployment number.

deployment_strategy_id str

Deployment strategy ID or name of a predefined deployment strategy. See Predefined Deployment Strategies for more details.

description str

Description of the deployment. Can be at most 1024 characters.

environment_id str

Environment ID. Must be between 4 and 7 characters in length.

state str

State of the deployment.

tags Mapping[str, str]

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

tags_all Mapping[str, str]

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

applicationId String

Application ID. Must be between 4 and 7 characters in length.

arn String

ARN of the AppConfig Deployment.

configurationProfileId String

Configuration profile ID. Must be between 4 and 7 characters in length.

configurationVersion String

Configuration version to deploy. Can be at most 1024 characters.

deploymentNumber Number

Deployment number.

deploymentStrategyId String

Deployment strategy ID or name of a predefined deployment strategy. See Predefined Deployment Strategies for more details.

description String

Description of the deployment. Can be at most 1024 characters.

environmentId String

Environment ID. Must be between 4 and 7 characters in length.

state String

State of the deployment.

tags Map<String>

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

tagsAll Map<String>

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

Import

AppConfig Deployments can be imported by using the application ID, environment ID, and deployment number separated by a slash (/), e.g.,

 $ pulumi import aws:appconfig/deployment:Deployment example 71abcde/11xxxxx/1

Package Details

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

This Pulumi package is based on the aws Terraform Provider.