Skip to content

Resource: awsAppconfigDeploymentStrategy

Provides an AppConfig Deployment Strategy 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.appconfigDeploymentStrategy.AppconfigDeploymentStrategy(
  this,
  "example",
  {
    deploymentDurationInMinutes: 3,
    description: "Example Deployment Strategy",
    finalBakeTimeInMinutes: 4,
    growthFactor: 10,
    growthType: "LINEAR",
    name: "example-deployment-strategy-tf",
    replicateTo: "NONE",
    tags: {
      Type: "AppConfig Deployment Strategy",
    },
  }
);

Argument Reference

The following arguments are supported:

  • deploymentDurationInMinutes - (Required) Total amount of time for a deployment to last. Minimum value of 0, maximum value of 1440.
  • growthFactor - (Required) Percentage of targets to receive a deployed configuration during each interval. Minimum value of 1.0, maximum value of 100.0.
  • name - (Required, Forces new resource) Name for the deployment strategy. Must be between 1 and 64 characters in length.
  • replicateTo - (Required, Forces new resource) Where to save the deployment strategy. Valid values: none and SSM_DOCUMENT.
  • description - (Optional) Description of the deployment strategy. Can be at most 1024 characters.
  • finalBakeTimeInMinutes - (Optional) Amount of time AWS AppConfig monitors for alarms before considering the deployment to be complete and no longer eligible for automatic roll back. Minimum value of 0, maximum value of 1440.
  • growthType - (Optional) Algorithm used to define how percentage grows over time. Valid value: linear and exponential. Defaults to linear.
  • tags - (Optional) Map of tags to assign to the resource. If configured with a provider defaultTags 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 deployment strategy ID.
  • arn - ARN of the AppConfig Deployment Strategy.
  • tagsAll - Map of tags assigned to the resource, including those inherited from the provider defaultTags configuration block.

Import

AppConfig Deployment Strategies can be imported by using their deployment strategy ID, e.g.,

$ terraform import aws_appconfig_deployment_strategy.example 11xxxxx