Networking
All applications in an environment share a common network (VPC).
The default VPC for your environment set up by this guide is: {Environment}
Step 1: Add and configure the networking package
Update package-config.yml with your preferences.
Step 2: Install the package
Step 3: Configure CIDR range
Each VPC must have a unique CIDR range within the Origo AWS organization. You must claim a range and document this in the Google doc created for this purpose.
Once you've claimed a range, edit config_override.tf and set the CIDR range:
Release CIDR block
The CIDR block must be released (removed from the Google doc) once the VPC is no longer in use.
Step 4: Apply in this order (required)
Order matters: Apply data first, then networking. The networking stack depends on resources created by the data stack.
1) Apply the data stack (required first)
Creates S3 buckets and other data resources.
2) Apply the networking stack (run second)
Creates the VPC and networking resources.
Step 5: Verify
Run the following command:
The output list should contain the name of the VPC you just created.
Login to the AWS console and navigate to VPC. Select Your VPCs in the left-hand menu.
The list should contain the name of the VPC you just created.
Commit your files
At this stage it is a good idea to commit your files.
Next step
Set up databases.