aws.appconfig.Deployment
Explore with Pulumi AI
Provides an AppConfig Deployment resource for an aws.appconfig.Application
resource.
Example Usage
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 = 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:
- Application
Id string Application ID. Must be between 4 and 7 characters in length.
- Configuration
Profile stringId Configuration profile ID. Must be between 4 and 7 characters in length.
- Configuration
Version string Configuration version to deploy. Can be at most 1024 characters.
- Deployment
Strategy stringId Deployment strategy ID or name of a predefined deployment strategy. See Predefined Deployment Strategies for more details.
- Environment
Id string Environment ID. Must be between 4 and 7 characters in length.
- Description string
Description of the deployment. Can be at most 1024 characters.
- 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.
- Application
Id string Application ID. Must be between 4 and 7 characters in length.
- Configuration
Profile stringId Configuration profile ID. Must be between 4 and 7 characters in length.
- Configuration
Version string Configuration version to deploy. Can be at most 1024 characters.
- Deployment
Strategy stringId Deployment strategy ID or name of a predefined deployment strategy. See Predefined Deployment Strategies for more details.
- Environment
Id string Environment ID. Must be between 4 and 7 characters in length.
- Description string
Description of the deployment. Can be at most 1024 characters.
- 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.
- application
Id String Application ID. Must be between 4 and 7 characters in length.
- configuration
Profile StringId Configuration profile ID. Must be between 4 and 7 characters in length.
- configuration
Version String Configuration version to deploy. Can be at most 1024 characters.
- deployment
Strategy StringId Deployment strategy ID or name of a predefined deployment strategy. See Predefined Deployment Strategies for more details.
- environment
Id String Environment ID. Must be between 4 and 7 characters in length.
- description String
Description of the deployment. Can be at most 1024 characters.
- 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.
- application
Id string Application ID. Must be between 4 and 7 characters in length.
- configuration
Profile stringId Configuration profile ID. Must be between 4 and 7 characters in length.
- configuration
Version string Configuration version to deploy. Can be at most 1024 characters.
- deployment
Strategy stringId Deployment strategy ID or name of a predefined deployment strategy. See Predefined Deployment Strategies for more details.
- environment
Id string Environment ID. Must be between 4 and 7 characters in length.
- description string
Description of the deployment. Can be at most 1024 characters.
- {[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_ strid 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_ strid 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.
- 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.
- application
Id String Application ID. Must be between 4 and 7 characters in length.
- configuration
Profile StringId Configuration profile ID. Must be between 4 and 7 characters in length.
- configuration
Version String Configuration version to deploy. Can be at most 1024 characters.
- deployment
Strategy StringId Deployment strategy ID or name of a predefined deployment strategy. See Predefined Deployment Strategies for more details.
- environment
Id String Environment ID. Must be between 4 and 7 characters in length.
- description String
Description of the deployment. Can be at most 1024 characters.
- 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.
- Deployment
Number int Deployment number.
- Id string
The provider-assigned unique ID for this managed resource.
- State string
State of the deployment.
- 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.
- Deployment
Number int Deployment number.
- Id string
The provider-assigned unique ID for this managed resource.
- State string
State of the deployment.
- 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.
- deployment
Number Integer Deployment number.
- id String
The provider-assigned unique ID for this managed resource.
- state String
State of the deployment.
- 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.
- deployment
Number number Deployment number.
- id string
The provider-assigned unique ID for this managed resource.
- state string
State of the deployment.
- {[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.
- 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.
- deployment
Number Number Deployment number.
- id String
The provider-assigned unique ID for this managed resource.
- state String
State of the deployment.
- 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.
- Application
Id string Application ID. Must be between 4 and 7 characters in length.
- Arn string
ARN of the AppConfig Deployment.
- Configuration
Profile stringId Configuration profile ID. Must be between 4 and 7 characters in length.
- Configuration
Version string Configuration version to deploy. Can be at most 1024 characters.
- Deployment
Number int Deployment number.
- Deployment
Strategy stringId 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.
- Environment
Id string Environment ID. Must be between 4 and 7 characters in length.
- State string
State of the deployment.
- 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.- Dictionary<string, string>
Map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block.
- Application
Id string Application ID. Must be between 4 and 7 characters in length.
- Arn string
ARN of the AppConfig Deployment.
- Configuration
Profile stringId Configuration profile ID. Must be between 4 and 7 characters in length.
- Configuration
Version string Configuration version to deploy. Can be at most 1024 characters.
- Deployment
Number int Deployment number.
- Deployment
Strategy stringId 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.
- Environment
Id string Environment ID. Must be between 4 and 7 characters in length.
- State string
State of the deployment.
- 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.- map[string]string
Map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block.
- application
Id String Application ID. Must be between 4 and 7 characters in length.
- arn String
ARN of the AppConfig Deployment.
- configuration
Profile StringId Configuration profile ID. Must be between 4 and 7 characters in length.
- configuration
Version String Configuration version to deploy. Can be at most 1024 characters.
- deployment
Number Integer Deployment number.
- deployment
Strategy StringId 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.
- environment
Id String Environment ID. Must be between 4 and 7 characters in length.
- state String
State of the deployment.
- 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.- Map<String,String>
Map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block.
- application
Id string Application ID. Must be between 4 and 7 characters in length.
- arn string
ARN of the AppConfig Deployment.
- configuration
Profile stringId Configuration profile ID. Must be between 4 and 7 characters in length.
- configuration
Version string Configuration version to deploy. Can be at most 1024 characters.
- deployment
Number number Deployment number.
- deployment
Strategy stringId 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.
- environment
Id string Environment ID. Must be between 4 and 7 characters in length.
- state string
State of the deployment.
- {[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.- {[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_ strid 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_ strid 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.
- 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.- Mapping[str, str]
Map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block.
- application
Id String Application ID. Must be between 4 and 7 characters in length.
- arn String
ARN of the AppConfig Deployment.
- configuration
Profile StringId Configuration profile ID. Must be between 4 and 7 characters in length.
- configuration
Version String Configuration version to deploy. Can be at most 1024 characters.
- deployment
Number Number Deployment number.
- deployment
Strategy StringId 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.
- environment
Id String Environment ID. Must be between 4 and 7 characters in length.
- state String
State of the deployment.
- 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.- 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
- AWS Classic pulumi/pulumi-aws
- License
- Apache-2.0
- Notes
This Pulumi package is based on the
aws
Terraform Provider.