Skip to Main Content
Setting up Highly Available and Secure Infrastructure with Terraform on OCI

About This Workshop

Youtube Video

About This Workshop
This Lab will show you how to set up a highly available Webserver architecture on OCI.
We will show how to set up a VCN, Load Balancer, Bastion, and 2 Compute Instances with Terraform.
We will provide the Terraform environment and give a step by step guide on how to set it up on a Tenancy.

Workshop Info

1 hour
  • Lab 1 - Setting up your tenancy
    • Task 1 - Generate SSH Keys
    • Task 2 - Generate API Key 
    • Task 3 - Create Compartment
    • Task 4 - Gather OCIDS
    • Task 5 - Setting up Terraform
  • Lab 2 - Editing Terraform provider
    • Task 1 - Terraform defining the OCI Provider in the Terraform 
  • Lab 3 - Network Module
    • Task 1 - Defining a VCN that will be created in Terraform
    • Task 2 - Defining Security Lists in Terraform for Private and Public Subnets
    • Task 3 - Defining Route Tables and Gateways in Terraform for Private and Public Subnets
    • Task 4 - Defining a Loadbalancer in Terraform
    • Task 5 - Defining a Network Security Group in Terraform
  • Lab 4 - Bastion and Webserver Modules
    • Task 1 - SSH Keys and Image OCIDs
    • Task 2 - Understanding The Bastion Variables
    • Task 3 - Understanding The Webserver Variables
    • Task 4 - Understanding Terraform Modules
  • Lab 5 - Terraform Deployment
    • Task 1 - Deploy your Terraform
    • Task 2 - Terraform Destroy
  • An Oracle Account
  • Familiarity with Networking is desirable, but not required
  • Some understanding of cloud, networking, Terraform terms is helpful
  • Familiarity with Oracle Cloud Infrastructure (OCI) is helpful

Other Workshops you might like