How to automate OCI with Terraform (2019 Edition)

Lesson 8 – VCN local peering

This lesson is the most complex so far. Besides the current pair of Compartment and VCN, we would like to setup up a completely separated island. It will be a new Compartment there called ExternalCompartment. It this compartment we will create a brand new VCN (FoggyKitchenVCN2) with a completely different CIDR ( Inside this VCN we will create a new regional private subnet and the Backend server will be nested there. So far this is the isolated island from original cloud infrastructure, so to interconnect them we need to create local peering with LPGs. Finally, we need to apply LPG policies there. If everything goes good we should be able to access Backend Server from Database server with SSH protocol. Let’s roll with terraform apply.


Here is GitHub repo where you can download the code for this lesson.

Leave a Reply

2 thoughts on “How to automate OCI with Terraform (2019 Edition)

Comments are closed.