This is an additional Terraform configuration for example-foundation 3-Networks and is used to set up the subnets, additional firewall rules for the Bank of Anthos example application across dev/non-prod/prod environments.
- 0-bootstrap executed successfully.
- 1-org executed successfully.
- 2-environments/envs/ executed successfully.
- Run the bash script network_prepare.sh using either
cd ../../ && make docker_network_prepare
or execute script directly in this folder./network_prepare.sh
- Alternatively you can perform the steps of the bash script manually laid out in the next section
- Follow steps in example_foundation 3-Networks, interchanging the paths
terraform-example-foundation/3-networks
withterraform-example-foundation-app/foundation-extension/3-networks
terraform-example-foundation/build
withterraform-example-foundation-app/build
- Clone example_foundation 3-Networks
- Merge files from 3-networks-extensions/envs into 3-networks/envs for the respective environments
- Copy
cloudbuild-tf-*
andtf-wrapper.sh
files from example-foundation/build to the build folder in the root of this repo. - Change Primary Region in example_foundation 3-networks/common.auto.tfvars from us-central1 to us-east1 to be consistent with BOA 4-projects and 5-infrastructure
- Remove Base Shared VPC defined in main.tf of example_foundation 3-Networks as boa_vpc_fw.tf replaces it with new subnets.
- Ensure you have given execute permissions
chmod +x network_prepare.sh
- If you get '\r Error' you can use dos2unix to convert file format "dos2unix network_prepare.sh", you may need to install dos2unix first