Deployment Args
Provides an AppConfig Deployment resource for an aws.appconfig.Application
resource.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";
const example = new aws.appconfig.Deployment("example", {
applicationId: exampleAwsAppconfigApplication.id,
configurationProfileId: exampleAwsAppconfigConfigurationProfile.configurationProfileId,
configurationVersion: exampleAwsAppconfigHostedConfigurationVersion.versionNumber,
deploymentStrategyId: exampleAwsAppconfigDeploymentStrategy.id,
description: "My example deployment",
environmentId: exampleAwsAppconfigEnvironment.environmentId,
kmsKeyIdentifier: exampleAwsKmsKey.arn,
tags: {
Type: "AppConfig Deployment",
},
});
import pulumi
import pulumi_aws as aws
example = aws.appconfig.Deployment("example",
application_id=example_aws_appconfig_application["id"],
configuration_profile_id=example_aws_appconfig_configuration_profile["configurationProfileId"],
configuration_version=example_aws_appconfig_hosted_configuration_version["versionNumber"],
deployment_strategy_id=example_aws_appconfig_deployment_strategy["id"],
description="My example deployment",
environment_id=example_aws_appconfig_environment["environmentId"],
kms_key_identifier=example_aws_kms_key["arn"],
tags={
"Type": "AppConfig Deployment",
})
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Aws = Pulumi.Aws;
return await Deployment.RunAsync(() =>
{
var example = new Aws.AppConfig.Deployment("example", new()
{
ApplicationId = exampleAwsAppconfigApplication.Id,
ConfigurationProfileId = exampleAwsAppconfigConfigurationProfile.ConfigurationProfileId,
ConfigurationVersion = exampleAwsAppconfigHostedConfigurationVersion.VersionNumber,
DeploymentStrategyId = exampleAwsAppconfigDeploymentStrategy.Id,
Description = "My example deployment",
EnvironmentId = exampleAwsAppconfigEnvironment.EnvironmentId,
KmsKeyIdentifier = exampleAwsKmsKey.Arn,
Tags =
{
{ "Type", "AppConfig Deployment" },
},
});
});
package main
import (
"github.com/pulumi/pulumi-aws/sdk/v6/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(exampleAwsAppconfigApplication.Id),
ConfigurationProfileId: pulumi.Any(exampleAwsAppconfigConfigurationProfile.ConfigurationProfileId),
ConfigurationVersion: pulumi.Any(exampleAwsAppconfigHostedConfigurationVersion.VersionNumber),
DeploymentStrategyId: pulumi.Any(exampleAwsAppconfigDeploymentStrategy.Id),
Description: pulumi.String("My example deployment"),
EnvironmentId: pulumi.Any(exampleAwsAppconfigEnvironment.EnvironmentId),
KmsKeyIdentifier: pulumi.Any(exampleAwsKmsKey.Arn),
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(exampleAwsAppconfigApplication.id())
.configurationProfileId(exampleAwsAppconfigConfigurationProfile.configurationProfileId())
.configurationVersion(exampleAwsAppconfigHostedConfigurationVersion.versionNumber())
.deploymentStrategyId(exampleAwsAppconfigDeploymentStrategy.id())
.description("My example deployment")
.environmentId(exampleAwsAppconfigEnvironment.environmentId())
.kmsKeyIdentifier(exampleAwsKmsKey.arn())
.tags(Map.of("Type", "AppConfig Deployment"))
.build());
}
}
resources:
example:
type: aws:appconfig:Deployment
properties:
applicationId: ${exampleAwsAppconfigApplication.id}
configurationProfileId: ${exampleAwsAppconfigConfigurationProfile.configurationProfileId}
configurationVersion: ${exampleAwsAppconfigHostedConfigurationVersion.versionNumber}
deploymentStrategyId: ${exampleAwsAppconfigDeploymentStrategy.id}
description: My example deployment
environmentId: ${exampleAwsAppconfigEnvironment.environmentId}
kmsKeyIdentifier: ${exampleAwsKmsKey.arn}
tags:
Type: AppConfig Deployment
Import
Using pulumi import
, import AppConfig Deployments using the application ID, environment ID, and deployment number separated by a slash (/
). For example:
$ pulumi import aws:appconfig/deployment:Deployment example 71abcde/11xxxxx/1
Constructors
Properties
Application ID. Must be between 4 and 7 characters in length.
Configuration profile ID. Must be between 4 and 7 characters in length.
Configuration version to deploy. Can be at most 1024 characters.
Deployment strategy ID or name of a predefined deployment strategy. See Predefined Deployment Strategies for more details.
Description of the deployment. Can be at most 1024 characters.
Environment ID. Must be between 4 and 7 characters in length.
The KMS key identifier (key ID, key alias, or key ARN). AppConfig uses this to encrypt the configuration data using a customer managed key.