Provides an AppConfig Deployment resource for an aws_appconfig_application
resource.
resource "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
kms_key_identifier = aws_kms_key.example.arn
tags = {
Type = "AppConfig Deployment"
}
}
This resource supports the following arguments:
application_id
- (Required, Forces new resource) Application ID. Must be between 4 and 7 characters in length.configuration_profile_id
- (Required, Forces new resource) Configuration profile ID. Must be between 4 and 7 characters in length.configuration_version
- (Required, Forces new resource) Configuration version to deploy. Can be at most 1024 characters.deployment_strategy_id
- (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.environment_id
- (Required, Forces new resource) Environment ID. Must be between 4 and 7 characters in length.kms_key_identifier
- (Optional, Forces new resource) The KMS key identifier (key ID, key alias, or key ARN). AppConfig uses this to encrypt the configuration data using a customer managed key.tags
- (Optional) 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.This resource exports the following attributes in addition to the arguments above:
id
- AppConfig application ID, environment ID, and deployment number separated by a slash (/
).arn
- ARN of the AppConfig Deployment.deployment_number
- Deployment number.kms_key_arn
- ARN of the KMS key used to encrypt configuration data.state
- State of the deployment.tags_all
- Map of tags assigned to the resource, including those inherited from the provider default_tags
configuration block.In Terraform v1.5.0 and later, use an import
block to import AppConfig Deployments using the application ID, environment ID, and deployment number separated by a slash (/
). For example:
import {
to = aws_appconfig_deployment.example
id = "71abcde/11xxxxx/1"
}
Using terraform import
, import AppConfig Deployments using the application ID, environment ID, and deployment number separated by a slash (/
). For example:
% terraform import aws_appconfig_deployment.example 71abcde/11xxxxx/1