Giter Club home page Giter Club logo

terraform_oci_cf_deployment's Introduction

OCI and Cloudflare automation using Terraform

These Terraform modules are designed to automate the creation of OCI resources and Cloudflare DNS records. You can deploy an OCI instance and create a Cloudflare DNS record for it in a single Terraform run.

I have created these modules to help me with my own projects, but I think they will be useful to others as well.

Usage

  1. Grab the relevant information from your OCI account

    • tenancy_ocid
    • user_ocid
    • private_key_path
    • fingerprint
    • region
  2. Grab the relevant information from your Cloudflare account

    • email
    • api_key
  3. Create the Terraform .auto.tfvars variables files and populate them with the information from the previous steps

  4. Run terraform init to initialize the modules

  5. Run terraform plan to see what will be created

  6. Run terraform apply to create the resources

  7. Run terraform destroy to destroy the resources

Variables

  • tenancy_ocid - The tenancy OCID
  • user_ocid - The user OCID
  • private_key_path - The path to the private key
  • fingerprint - The fingerprint of the private key
  • region - The region to create the instance in
  • compartment_ocid - The compartment OCID
  • availability_domain - The availability domain to create the instance in
  • shape - The shape of the instance
  • image_ocid - The image OCID
  • zone_id - The Cloudflare zone ID
  • record_name - The name of the DNS record

terraform_oci_cf_deployment's People

Contributors

rishavnandi avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.