AWS App Runner Auto Scaling Configuration Version
This page shows how to write Terraform for App Runner Auto Scaling Configuration Version and write them securely.
aws_apprunner_auto_scaling_configuration_version (Terraform)
The Auto Scaling Configuration Version in App Runner can be configured in Terraform with the resource name aws_apprunner_auto_scaling_configuration_version
. The following sections describe 4 examples of how to use the resource and its parameters.
Example Usage from GitHub
resource "aws_apprunner_auto_scaling_configuration_version" "auto-scaling-config" {
auto_scaling_configuration_name = "petclinic-config"
max_concurrency = var.max_concurrency
max_size = var.max_size
min_size = var.min_size
resource "aws_apprunner_auto_scaling_configuration_version" "apprunnerautoscaling" {
auto_scaling_configuration_name = "kitc"
max_concurrency = 50
max_size = 2
min_size = 1
resource "aws_apprunner_auto_scaling_configuration_version" "demo_python" {
auto_scaling_configuration_name = "demo-python"
max_concurrency = 10
max_size = 3
min_size = 1
}
resource "aws_apprunner_auto_scaling_configuration_version" "auto-scaling-config" {
auto_scaling_configuration_name = "petclinic-config"
max_concurrency = var.max_concurrency
max_size = var.max_size
min_size = var.min_size
Parameters
The following arguments supported:
auto_scaling_configuration_name
- (Required, Forces new resource) Name of the auto scaling configuration.max_concurrency
- (Optional, Forces new resource) The 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.max_size
- (Optional, Forces new resource) The maximal number of instances that App Runner provisions for your service.min_size
- (Optional, Forces new resource) The minimal number of instances that App Runner provisions for your service.tags
- (Optional) Key-value map of resource tags. If configured with a providerdefault_tags
configuration block present, tags with matching keys will overwrite those defined at the provider-level.
In addition to all arguments above, the following attributes are exported:
arn
- ARN of this auto scaling configuration version.auto_scaling_configuration_revision
- The revision of this auto scaling configuration.latest
- Whether the auto scaling configuration has the highestauto_scaling_configuration_revision
among all configurations that share the sameauto_scaling_configuration_name
.status
- The 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.tags_all
- A map of tags assigned to the resource, including those inherited from the providerdefault_tags
configuration block.
Explanation in Terraform Registry
Manages an App Runner AutoScaling Configuration Version.
CloudFormation Example
CloudFormation code does not have the related resource.
Frequently asked questions
What is AWS App Runner Auto Scaling Configuration Version?
AWS App Runner Auto Scaling Configuration Version is a resource for App Runner of Amazon Web Service. Settings can be wrote in Terraform.
Where can I find the example code for the AWS App Runner Auto Scaling Configuration Version?
For Terraform, the ibuchh/aws-apprunner-terraform, kirkryan/tf-kitc-terraform-complex-deploy-aws and sano307/terraform-app-runner-demo source code examples are useful. See the Terraform Example section for further details.