Skip to content

Commit

Permalink
add instructions
Browse files Browse the repository at this point in the history
  • Loading branch information
badra001 committed Aug 1, 2023
1 parent 7ce1762 commit 5c5e4b1
Showing 1 changed file with 36 additions and 1 deletion.
37 changes: 36 additions & 1 deletion examples/dummy-vpc/vpc0/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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
```

0 comments on commit 5c5e4b1

Please sign in to comment.