Create a VCN and Networking Components in OCI

In the "Code Editor" tab, open the network.tf file.

Your task: Create a VCN with CIDR block 10.0.0.0/16, a public subnet with CIDR block 10.0.1.0/24, an Internet Gateway, and a Route Table with a rule to route traffic to the Internet Gateway. Ensure all components are interlinked.

GitOps Repository

  • 📁 /root/learn-terraform-oci-network
    • 📄 provider.tf
    • 📄 network.tf

Code Editor

Terminal