Terraform resource for managing an AWS Service Quotas Template.
resource "aws_servicequotas_template" "example" {
region = "us-east-1"
quota_code = "L-2ACBD22F" # function and layer storage (default: 75 GB)
service_code = "lambda"
value = "80"
}
The following arguments are required:
region
- (Required) AWS Region to which the template applies.quota_code
- (Required) Quota identifier. To find the quota code for a specific quota, use the aws_servicequotas_service_quota data source.service_code
- (Required) Service identifier. To find the service code value for an AWS service, use the aws_servicequotas_service data source.value
- (Required) The new, increased value for the quota.This resource exports the following attributes in addition to the arguments above:
global_quota
- Indicates whether the quota is global.id
- Unique identifier for the resource, which is a comma-delimited string separating region
, quota_code
, and service_code
.quota_name
- Quota name.service_name
- Service name.unit
- Unit of measurement.In Terraform v1.5.0 and later, use an import
block to import Service Quotas Template using the id
. For example:
import {
to = aws_servicequotas_template.example
id = "us-east-1,L-2ACBD22F,lambda"
}
Using terraform import
, import Service Quotas Template using the id
. For example:
% terraform import aws_servicequotas_template.example us-east-1,L-2ACBD22F,lambda