https://github.com/oracle-quickstart/oci-arch-hub-spoke
Set up a hub-and-spoke network topology
https://github.com/oracle-quickstart/oci-arch-hub-spoke
oracle-led
Last synced: 13 days ago
JSON representation
Set up a hub-and-spoke network topology
- Host: GitHub
- URL: https://github.com/oracle-quickstart/oci-arch-hub-spoke
- Owner: oracle-quickstart
- License: upl-1.0
- Archived: true
- Created: 2020-01-23T00:14:42.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2021-07-12T11:54:58.000Z (almost 4 years ago)
- Last Synced: 2025-02-19T21:12:45.686Z (2 months ago)
- Topics: oracle-led
- Language: HCL
- Homepage:
- Size: 1.65 MB
- Stars: 4
- Watchers: 10
- Forks: 7
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Hub-and-Spoke Network
A hub-and-spoke network (often called star topology) has a central component (the hub) that's connected to multiple networks around it, like a wheel. Implementing this topology in the traditional data center can be costly. But in the Oracle Cloud, there’s no extra cost.
For details of the architecture, see [_Set up a hub-and-spoke network topology_](https://docs.oracle.com/en/solutions/hub-spoke-network/index.html).
## Prerequisites
- Permission to `manage` the following types of resources in your Oracle Cloud Infrastructure tenancy: `vcns`, `internet-gateways`, `route-tables`, `security-lists`, `local-peering-gateways`, `subnets`, and `instances`.
- Quota to create the following resources: 3 VCNS, 3 subnets, and 1 compute instance.
If you don't have the required permissions and quota, contact your tenancy administrator. See [Policy Reference](https://docs.cloud.oracle.com/en-us/iaas/Content/Identity/Reference/policyreference.htm), [Service Limits](https://docs.cloud.oracle.com/en-us/iaas/Content/General/Concepts/servicelimits.htm), [Compartment Quotas](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcequotas.htm).
## Deploy Using Oracle Resource Manager
1. Click [](https://cloud.oracle.com/resourcemanager/stacks/create?region=home&zipUrl=https://github.com/oracle-quickstart/oci-arch-hub-spoke/releases/latest/download/oci-arch-hub-spoke-stack-latest.zip)
If you aren't already signed in, when prompted, enter the tenancy and user credentials.
2. Review and accept the terms and conditions.
3. Select the region where you want to deploy the stack.
4. Follow the on-screen prompts and instructions to create the stack.
5. After creating the stack, click **Terraform Actions**, and select **Plan**.
6. Wait for the job to be completed, and review the plan.
To make any changes, return to the Stack Details page, click **Edit Stack**, and make the required changes. Then, run the **Plan** action again.
7. If no further changes are necessary, return to the Stack Details page, click **Terraform Actions**, and select **Apply**.
## Deploy Using the Terraform CLI
### Clone the Module
Create a local copy of this repository:git clone https://github.com/oracle-quickstart/oci-arch-hub-spoke.git
cd oci-arch-hub-spoke
ls### Set Up and Configure Terraform
1. Complete the prerequisites described [here](https://github.com/cloud-partners/oci-prerequisites).
2. Create a `terraform.tfvars` file, and specify the following variables:
```
# Authentication
tenancy_ocid = ""
user_ocid = ""
fingerprint = ""
private_key_path = ""# Region
region = ""# Availablity Domain
availablity_domain_name = ""# Compartment
compartment_ocid = ""````
### Create the Resources
Run the following commands:terraform init
terraform plan
terraform apply### Destroy the Deployment
When you no longer need the deployment, you can run this command to destroy the resources:terraform destroy
## Architecture Diagram
