module "default_tags" {
  source             = "git@github.com:theorchard/terraform-default-tags.git//?ref=2.0.0"
  environment        = var.environment
  application_family = var.application_family
  team_name          = var.team_name
}

provider "aws" {
  region = var.aws_region

  default_tags {
    tags = module.default_tags.tags
  }
}

# Terraform backends cannot contain interpolations
terraform {
  backend "s3" {
    bucket  = "orcd-terraform-state"
    key     = "prod/quotas/terraform.tfstate"
    region  = "us-east-1"
    encrypt = "true"
  }
}

# Security groups per region
resource "aws_servicequotas_service_quota" "security_groups_per_region" {
  quota_code   = "L-E79EC296"
  service_code = "vpc"
  value        = 5000
}
