Skip to content

Creating Terraform modules to deploy a multicloud setup between AWS and Azure.

Notifications You must be signed in to change notification settings

adhipgupta/multicloud-terraform

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 

Repository files navigation

multicloud-terraform

This repo includes the example (main.tf) and the Terraform modules required to deploy a secure Ipsec VPN between AWS and Azure using their cloud native VPN solutions.

You can follow my blogpost which takes you through the deployment here.

Getting Started

Download Terraform

You can download the latest Terraform executable from here

Set you AWS and Azure credentials.

Terraform has great documentation on how you can setup your AWS and Azure credentials. You can either set your environment variabless or the set the provider section in your main.tf file.

provider "azurerm" {
  features {}
  subscription_id = 
  tenant_id       = 
  client_secret   = 
  client_id       = 
}

provider "aws" {
  region     = ""
  access_key = ""
  secret_key = ""
}

Deploy

Run the following commands to deploy the modules defined in the main.tf file

  1. terraform init

  2. terraform plan

  3. terraform apply

As part of the apply, we will be deploying VMs in AWS and Azure and will need the following variables to be set to SSH onto these instances.

azure_username : Username to SSH into the Azure instance

azure_password : Password to SSH into the Azure instance

aws_public_ssh_key : Public portion of your local SSH key.

Note: You can always change the Azure instance to use SSH keys by modifying the modules/azure/vnet/vnet.tf file

Destroy

terraform destroy

About

Creating Terraform modules to deploy a multicloud setup between AWS and Azure.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages