2023-03-15 16:00:52 +00:00
|
|
|
# Copyright (c) HashiCorp, Inc.
|
|
|
|
# SPDX-License-Identifier: MPL-2.0
|
|
|
|
|
2022-12-12 18:14:38 +00:00
|
|
|
locals {
|
|
|
|
// This is the code of the service quota to request a change for. Each adjustable limit has a
|
|
|
|
// unique code. See, https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/servicequotas_service_quota#quota_code
|
2023-04-13 19:44:43 +00:00
|
|
|
subnets_per_vpcs_quota = "L-F678F1CE"
|
|
|
|
standard_spot_instance_requests_quota = "L-34B43A08"
|
2022-12-12 18:14:38 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
resource "aws_servicequotas_service_quota" "vpcs_per_region_us_east_1" {
|
|
|
|
provider = aws.us_east_2
|
2023-04-13 19:44:43 +00:00
|
|
|
quota_code = local.subnets_per_vpcs_quota
|
2022-12-12 18:14:38 +00:00
|
|
|
service_code = "vpc"
|
|
|
|
value = 50
|
|
|
|
}
|
|
|
|
|
|
|
|
resource "aws_servicequotas_service_quota" "vpcs_per_region_us_east_2" {
|
|
|
|
provider = aws.us_east_2
|
2023-04-13 19:44:43 +00:00
|
|
|
quota_code = local.subnets_per_vpcs_quota
|
2022-12-12 18:14:38 +00:00
|
|
|
service_code = "vpc"
|
|
|
|
value = 50
|
|
|
|
}
|
|
|
|
|
|
|
|
resource "aws_servicequotas_service_quota" "vpcs_per_region_us_west_1" {
|
|
|
|
provider = aws.us_west_1
|
2023-04-13 19:44:43 +00:00
|
|
|
quota_code = local.subnets_per_vpcs_quota
|
2022-12-12 18:14:38 +00:00
|
|
|
service_code = "vpc"
|
|
|
|
value = 50
|
|
|
|
}
|
|
|
|
|
|
|
|
resource "aws_servicequotas_service_quota" "vpcs_per_region_us_west_2" {
|
|
|
|
provider = aws.us_west_2
|
2023-04-13 19:44:43 +00:00
|
|
|
quota_code = local.subnets_per_vpcs_quota
|
2022-12-12 18:14:38 +00:00
|
|
|
service_code = "vpc"
|
|
|
|
value = 50
|
|
|
|
}
|
2023-04-13 19:44:43 +00:00
|
|
|
|
|
|
|
resource "aws_servicequotas_service_quota" "spot_requests_per_region_us_east_1" {
|
|
|
|
provider = aws.us_east_2
|
|
|
|
quota_code = local.standard_spot_instance_requests_quota
|
|
|
|
service_code = "ec2"
|
|
|
|
value = 640
|
|
|
|
}
|
|
|
|
|
|
|
|
resource "aws_servicequotas_service_quota" "spot_requests_per_region_us_east_2" {
|
|
|
|
provider = aws.us_east_2
|
|
|
|
quota_code = local.standard_spot_instance_requests_quota
|
|
|
|
service_code = "ec2"
|
|
|
|
value = 640
|
|
|
|
}
|
|
|
|
|
|
|
|
resource "aws_servicequotas_service_quota" "spot_requests_per_region_us_west_1" {
|
|
|
|
provider = aws.us_west_1
|
|
|
|
quota_code = local.standard_spot_instance_requests_quota
|
|
|
|
service_code = "ec2"
|
|
|
|
value = 640
|
|
|
|
}
|
|
|
|
|
|
|
|
resource "aws_servicequotas_service_quota" "spot_requests_per_region_us_west_2" {
|
|
|
|
provider = aws.us_west_2
|
|
|
|
quota_code = local.standard_spot_instance_requests_quota
|
|
|
|
service_code = "ec2"
|
|
|
|
value = 640
|
|
|
|
}
|