Resource: awsAppconfigDeployment
Provides an AppConfig Deployment resource for an awsAppconfigApplication
resource.
Example Usage
/*Provider bindings are generated by running cdktf get.
See https://cdk.tf/provider-generation for more details.*/
import * as aws from "./.gen/providers/aws";
new aws.appconfigDeployment.AppconfigDeployment(this, "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",
},
});
Argument Reference
The following arguments are supported:
applicationId
- (Required, Forces new resource) Application ID. Must be between 4 and 7 characters in length.configurationProfileId
- (Required, Forces new resource) Configuration profile ID. Must be between 4 and 7 characters in length.configurationVersion
- (Required, Forces new resource) Configuration version to deploy. Can be at most 1024 characters.deploymentStrategyId
- (Required, Forces new resource) Deployment strategy ID or name of a predefined deployment strategy. See Predefined Deployment Strategies for more details.description
- (Optional, Forces new resource) Description of the deployment. Can be at most 1024 characters.environmentId
- (Required, Forces new resource) Environment ID. Must be between 4 and 7 characters in length.tags
- (Optional) Map of tags to assign to the resource. If configured with a providerdefaultTags
configuration block present, tags with matching keys will overwrite those defined at the provider-level.
Attributes Reference
In addition to all arguments above, the following attributes are exported:
id
- AppConfig application ID, environment ID, and deployment number separated by a slash (/
).arn
- ARN of the AppConfig Deployment.deploymentNumber
- Deployment number.state
- State of the deployment.tagsAll
- Map of tags assigned to the resource, including those inherited from the providerdefaultTags
configuration block.
Import
AppConfig Deployments can be imported by using the application ID, environment ID, and deployment number separated by a slash (/
), e.g.,