How to automate OCI with Terraform (2021 Edition)

Lesson 1 – VCN, Subnet and Single Webserver

In this lesson, you will create the most straightforward set of OCI resources, starting with one compartment, one VCN, and one subnet in this VCN. The subnet will be regional (covering all availability domains AD1-AD3). Inside this public subnet, we will nest one VM for Webserver. Public subnet means that VM will have public IP associated – VM will be exposed to the public Internet (via Internet Gateway and proper route table). After this deployment, one essential Security List will permit access from the public Internet to VM via protocol SSH (port 22) & HTTP/HTTPS protocols (port 80, 443). We will utilize null_resource and remote-exec capability of Terraform Null Provider – Terraform will install the HTTP server with root webpage content for the software provisioning. Consequently, after successful terraform apply, we should visit VM public IP address with our web browser and expect their straightforward webpage content – Welcome to FoggyKitchen.com! This is WEBSERVER1…

 

One thought on “Lesson 1 – VCN, Subnet and Single Webserver

Leave a Reply

8 thoughts on “How to automate OCI with Terraform (2021 Edition)

  1. Excellent course for the beginners. Helped me a lot to learn and understand the Terraform integration with OCI contents very well. The best thing about this course is that, everything is explained step by step so that can be easy comprehend by everyone. Thanks Martin.

  2. Thanks for the effort of creating this course, and it actually worth for beginner to understand terraform with OCI

  3. Please provide this course to me for 9.90, i checked the email received from you, as 9.90, but here i see, 19.90.

Comments are closed.