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

  • OCI Email Delivery
    Workshop Background
    Workshop Icon
    OCI Email Delivery
    A walkthrough of configuring Oracle's Email Delivery Service including a creation of an email (..)
      1 hr 570 Views
  • Migrate WebLogic Server to OCI with Oracle Database
    Workshop Background
    Workshop Icon
    Migrate WebLogic Server to OCI with Oracle Database
    Migrate WebLogic Server domain from on-premises to OCI with WebLogic Server stack on the (..)
      2 hrs, 30 mins 14910 Views
  • CD3 Automation Toolkit
    Workshop Background
    Workshop Icon
    CD3 Automation Toolkit
    This workshop will help to deploy OCI resources using CD3 Automation toolkit. It has been developed (..)
      1 hr 2325 Views
  • Cloud-native analytics using Open-source tools with MySQL HeatWave
    Workshop Background
    Workshop Icon
    Cloud-native analytics using Open-source tools with MySQL HeatWave
    Build a modern cloud-native analytics solution using open-source technology and MySQL HeatWave
      2 hrs, 15 mins 7925 Views
Ask Oracle
Helping you on LiveLabs