How to automate OCI with Terraform

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.

One thought on “Lesson 8 – VCN local peering

  1. This lesson is very clear and crisp. Able to get the concept of Local peering from OCI front and terraform coding. Able to test successfully. Very much interested to start lesson 9. Will leave my comment for Lesson 9 once i complete. Great learning for today.


Leave a Reply

8 thoughts on “How to automate OCI with Terraform

  1. Didn’t see anything that course has a time limit to complete. Not possible to complete this course in that time wouldn’t have signed up if that was case

    1. This is LearnPress timer which will reach zero, but the course will be still available (lifetime access). I am working on disabling this feature which is misleading.

  2. Hello, I can not see the course, Its showing locked for me. Can you please suggest?


Comments are closed.