From 32db8fbef2dad4c7cf88f7ee74a5d625686cb84a Mon Sep 17 00:00:00 2001 From: badra001 Date: Fri, 21 Oct 2022 12:01:35 -0400 Subject: [PATCH] update --- examples/full-setup-tf-upgrade/README.md | 67 ++++++++++-------------- 1 file changed, 28 insertions(+), 39 deletions(-) diff --git a/examples/full-setup-tf-upgrade/README.md b/examples/full-setup-tf-upgrade/README.md index 798725e..3960cd7 100644 --- a/examples/full-setup-tf-upgrade/README.md +++ b/examples/full-setup-tf-upgrade/README.md @@ -30,51 +30,40 @@ This directory constructs the appropriate resources for the vpc2-dice-dev VPC, i # Application Requirements - - # Terraform Directions +## Update files to reflect proper configuration + +1. start branch like 'configure-vpcN' (use N as the number) +1. flowlogs.tf + * set correct region (east, west) in `flowlog_bucket_arn` +1. variables.vpc.auto.tfvars + * put proper values for + * vpc_name + * vpc_cidr_block + * vpc_index (this is the number from vpc{number}-{name} + * vpc_short_name (vpc{number}) + * vpc_full_name (vpc_short_name "-" vpc_name) + * vpc_environment + * vpc_domain_name (usually {vpc_environment}.PROGRAM.census.gov) + * proper `ip_address` for the VPN settings (replace NNN with the value from TCO) +1. variables.subnets.auto.tfvars + * comment out public subnet objects (leaving public_subets = [], in essence; we are no longer using this) + * fill in the correct values for the base cidrs, starting with the blocks as shown. These will be validated in a PR +1. commit, push, and do a PR. This must be merged before any apply. Keep your branch, as you'll have more to add to it. + +Once you have a merged PR you can run through the setup + +```script +tf-run apply +``` + +Follow the diections from `tf-run`. You'll add all the files to git, do another commit, push and PR, before things are complete. + # Details -account_alias = "" -account_id = "" -aws_environment = "" -census_private_cidr = [ - "148.129.0.0/16", - "172.16.0.0/12", - "192.168.0.0/16" -] -census_public_cidr = [ - "148.129.0.0/16" -] -kms_tfstate_key = "k-kms-inf-tfstate" -profile = "" -region = "" -region_map = {} -regions = [] -tag_costallocation = "csvd:infrastructure" -tag_creator = "" -tfstate_bucket = "inf-tfstate-252960665057" -tfstate_bucket_prefix = "inf-tfstate" -tfstate_key_prefix = "ma6-gov" -tfstate_key_suffix = "terraform.tfstate" -tfstate_region = "us-gov-east-1" -tfstate_table = "tf_remote_state" -vpc_cidr_block = "" -vpc_dns_servers = [] -vpc_domain_name = "" -vpc_enable_awsdns = false -vpc_enable_igw = false -vpc_enable_nat = false -vpc_enable_vpn = true -vpc_environment = "" -vpc_full_name = "" -vpc_index = "" -vpc_name = "" -vpc_ntp_servers = [] -vpc_short_name = ""