Skip to content

Resource: awsApprunnerAutoScalingConfigurationVersion

Manages an App Runner AutoScaling Configuration Version.

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.apprunnerAutoScalingConfigurationVersion.ApprunnerAutoScalingConfigurationVersion(
  this,
  "example",
  {
    autoScalingConfigurationName: "example",
    maxConcurrency: 50,
    maxSize: 10,
    minSize: 2,
    tags: {
      Name: "example-apprunner-autoscaling",
    },
  }
);

Argument Reference

The following arguments supported:

  • autoScalingConfigurationName - (Required, Forces new resource) Name of the auto scaling configuration.
  • maxConcurrency - (Optional, Forces new resource) Maximal number of concurrent requests that you want an instance to process. When the number of concurrent requests goes over this limit, App Runner scales up your service.
  • maxSize - (Optional, Forces new resource) Maximal number of instances that App Runner provisions for your service.
  • minSize - (Optional, Forces new resource) Minimal number of instances that App Runner provisions for your service.
  • tags - (Optional) Key-value map of resource tags. 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:

  • arn - ARN of this auto scaling configuration version.
  • autoScalingConfigurationRevision - The revision of this auto scaling configuration.
  • latest - Whether the auto scaling configuration has the highest autoScalingConfigurationRevision among all configurations that share the same autoScalingConfigurationName.
  • status - Current state of the auto scaling configuration. An INACTIVE configuration revision has been deleted and can't be used. It is permanently removed some time after deletion.
  • tagsAll - Map of tags assigned to the resource, including those inherited from the provider defaultTags configuration block.

Import

App Runner AutoScaling Configuration Versions can be imported by using the arn, e.g.,

$ terraform import aws_apprunner_auto_scaling_configuration_version.example "arn:aws:apprunner:us-east-1:1234567890:autoscalingconfiguration/example/1/69bdfe0115224b0db49398b7beb68e0f