base

Sets up VPCs, a default KMS key, and the db/cache subnets for your environment

The defaults for this module are set to work 99% of the time, assuming no funny networking constraints (you’ll know them if you have them), so in most cases, there is no need to set any of the fields or know what the outputs do.

Fields

  • total_ipv4_cidr_block - Optional. This is the total cidr block for the VPC. Default 10.0.0.0/16
  • private_ipv4_cidr_blocks - Optional. These are the cidr blocks to use for the private subnets, one for each AZ. Default [‘10.0.128.0/21’, ‘10.0.136.0/21’, ‘10.0.144.0/21’]
  • public_ipv4_cidr_blocks - Optional. These are the cidr blocks to use for the public subnets, one for each AZ. Default [‘10.0.0.0/21’, ‘10.0.8.0/21’, ‘10.0.16.0/21’]

Outputs

  • kms_account_key_arn - The ARN of the default KMS key (this is what handles encryption for redis, documentdb, eks, etc…)
  • kms_account_key_id - The ID of the default KMS key (sometimes things need the ID, sometimes the ARN, so we’re giving both)
  • vpc_id - The ID of the VPC we created for this environment
  • private_subnet_ids - The IDs of the private subnets we setup for your environment
  • public_subnets_ids - The IDs of the public subnets we setup for your environment
  • s3_log_bucket_name - The name of the default logging bucket provisioned by opta
Last modified September 22, 2021: Updating latest references (62bb6e2)