#!/usr/bin/env bash

set -euo pipefail

REGION=${REGION}
if [[ ! ${REGION+guard} ]]; then
  echo "REGION must be set"
  exit 1
fi
VPC_QUOTA=1000
NLB_QUOTA=500
INTERNET_GATEWAY_QUOTA=1000
NAT_GATEWAY_QUOTA=200
EIP_QUOTA=1000

vpc_quota_code="L-F678F1CE"
internet_gateway_quota_code="L-A4707A72"
nag_gateway_quota_code="L-FE5A380F"
nlb_quota_code="L-69A177A2"
eip_quota_code="L-0263D0A3"


aws service-quotas request-service-quota-increase --region ${REGION} --service-code vpc --quota-code ${vpc_quota_code} --desired-value ${VPC_QUOTA}
aws service-quotas request-service-quota-increase --region ${REGION} --service-code vpc --quota-code ${internet_gateway_quota_code} --desired-value ${INTERNET_GATEWAY_QUOTA}
aws service-quotas request-service-quota-increase --region ${REGION} --service-code vpc --quota-code ${nag_gateway_quota_code} --desired-value ${NAT_GATEWAY_QUOTA}
aws service-quotas request-service-quota-increase --region ${REGION} --service-code elasticloadbalancing --quota-code ${nlb_quota_code} --desired-value ${NLB_QUOTA}
aws service-quotas request-service-quota-increase --region ${REGION} --service-code ec2 --quota-code ${eip_quota_code} --desired-value ${EIP_QUOTA}


