diff --git a/examples/dummy-vpc/vpc0/README.md b/examples/dummy-vpc/vpc0/README.md index d2f5f9e..528652e 100644 --- a/examples/dummy-vpc/vpc0/README.md +++ b/examples/dummy-vpc/vpc0/README.md @@ -2,7 +2,7 @@ This VPC is created when a Route53 Private Hosted Zone PHZ is needed in an account which uses shared subnets from a central account. -A [support case(https://us-gov-west-1.console.amazonaws-us-gov.com/support/home?region=us-gov-west-1#/case/?displayId=13210918551&language=en) was opened with AWS +A [support case](https://us-gov-west-1.console.amazonaws-us-gov.com/support/home?region=us-gov-west-1#/case/?displayId=13210918551&language=en) was opened with AWS in account `258852445129-ma50-gov`. Initial problem: @@ -118,3 +118,38 @@ The process will work something like this: 3. authorize the shared VPC in account B with the PHZ in account A (credentials for account B) 4. associate the shared VPC in account B with the PHZ in account A 5. delete the dummy VPC in account A + +# Execution + +To create the dummy VPC, you will do this in the region desired, copy this code, and execute it. Please note you must get this from the `tf-upgrade` branch. + +```script +cd PATH-TO-TERRAFORM-MODULES +git clone git@github.e.it.census.gov:terraform-modules/aws-vpc-setup.git -b tf-upgrade +``` + +If you already have this repo, checkout and update the branch. + +```script +cd PATH-TO-TERRAFORM-MODULES +cd aws-vpc-setup +git checkout tf-upgrade +git pull origin tf-upgrade +``` + +Next go to your vpc and region where you desire to create the dummy VPC. + +```script +cd PATH-TO-TARGET-ACCOUNT +cd vpc/{region} +git checkout -b create-dummy-vpc +rsync -avRWH PATH-TO-TERRAFORM-MODULES/aws-vpc-setup/examples/dummy-vpc/./vpc0 ./ +cd vpc0 +tf-run apply + +# add, commit, and PR +git add . +git commit -m'add dummy vpc0' +git push +# add run.apply*log to PR, create PR +```