Retrieve information about a Service Quota.
data "aws_servicequotas_service_quota" "by_quota_code" {
quota_code = "L-F678F1CE"
service_code = "vpc"
}
data "aws_servicequotas_service_quota" "by_quota_name" {
quota_name = "VPCs per Region"
service_code = "vpc"
}
service_code
- (Required) Service code for the quota. Available values can be found with the aws_servicequotas_service
data source or AWS CLI service-quotas list-services command.quota_code
- (Optional) Quota code within the service. When configured, the data source directly looks up the service quota. Available values can be found with the AWS CLI service-quotas list-service-quotas command. One of quota_code
or quota_name
must be specified.quota_name
- (Optional) Quota name within the service. When configured, the data source searches through all service quotas to find the matching quota name. Available values can be found with the AWS CLI service-quotas list-service-quotas command. One of quota_name
or quota_code
must be specified.This data source exports the following attributes in addition to the arguments above:
adjustable
- Whether the service quota is adjustable.arn
- ARN of the service quota.default_value
- Default value of the service quota.global_quota
- Whether the service quota is global for the AWS account.id
- ARN of the service quota.service_name
- Name of the service.usage_metric
- Information about the measurement.
metric_dimensions
- The metric dimensions.
class
resource
service
type
metric_name
- The name of the metric.metric_namespace
- The namespace of the metric.metric_statistic_recommendation
- The metric statistic that AWS recommend you use when determining quota usage.value
- Current value of the service quota.