Coder Social home page Coder Social logo

oci-arch-cross-tenancies's Introduction

oci-arch-cross-tenancies

You might have business and technical reasons to privately peer your virtual networks in the cloud and ensure that your network traffic never traverses the public internet. For example, you might want private connectivity within a region and within your organization, or with a cooperating organization.

This repository shows how to configure cross-region private connectivity by using a transit LPG between two OCI tenancies.

Terraform Provider for Oracle Cloud Infrastructure

The OCI Terraform Provider is now available for automatic download through the Terraform Provider Registry. For more information on how to get started view the documentation and setup guide.

Clone the Module

Now, you'll want a local copy of this repo. You can make that with the commands:

git clone https://github.com/oracle-quickstart/oci-arch-cross-tenancies.git
cd oci-arch-cross-tenancies
ls

Prerequisites

First off, you'll need to do some pre-deploy setup. That's all detailed here.

Secondly, create a terraform.tfvars file and populate with the following information:

# Authentication to Tenancy A - Region 01 and Region 02
tenancy_ocid_a         = "tenancy ocid region A"
user_ocid_a            = "user ocid region A"
fingerprint_a          = "user fingreprint A"
private_key_path_a     = "private_key_path_region A"
region_01_a            = "ap-mumbai-1" (you can select any other region)
region_02_a            = "us-ashburn-1" (you can select any other region)
compartment_ocid_a     = "compartment ocid A"
compartment_name_a     = "compartment name A"

# Authentication to Tenancy B Region 01
tenancy_ocid_b     = "tenancy ocid region B"
user_ocid_b        = "user ocid region B"
fingerprint_b      = "user fingreprint B"
private_key_path_b = ""private_key_path_region B""
region_01_b        = "us-ashburn-1" (you can select any other region)
compartment_ocid_b = "compartment ocid B"
compartment_name_b = "compartment name B"

# SSH Keys
ssh_public_key  = "/ssh-keys/key.pub"

# Home Region
home_region_a = "us-phoenix-1"
home_region_b = "us-ashburn-1"

Deploy:

terraform init
terraform plan
terraform apply

Destroy the Deployment

When you no longer need the deployment, you can run this command to destroy it:

terraform destroy

Web Application Architecture

Reference Archirecture

oci-arch-cross-tenancies's People

Contributors

flavio-santino 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.