Skip to content

C4Coin/c4coin-infrastructure

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

42 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

C4 Coin Infrastructure

How to use this project

  1. Install Terraform

Mac

brew install terraform

Linux

sudo apt-get install unzip

wget https://releases.hashicorp.com/terraform/0.11.1/terraform_0.11.1_linux_amd64.zip

unzip terraform_0.11.1_linux_amd64.zip

sudo mv terraform /usr/local/bin/

terraform --version
  1. Modify (sandbox/dev/qa/prod)/terraform.auto.tfvars for your project and vpc name

  2. cd init/(sandbox/dev/qa/prod)

a. follow setup-terraform-service-account.txt to create terraform service account (optional)

b. create bucket for terraform state files

terraform init 
terraform plan 
terraform apply 
  1. Create VPC and Subnet

cd (sandbox/dev/qa/prod)/(us-east1/us-central-1)/network

terraform init
terraform plan -var-file="../../terraform.auto.tfvars"
terraform apply -var-file="../../terraform.auto.tfvars"
  1. Create firewalls

cd (sandbox/dev/qa/prod)/(us-east1/us-central-1)/firewall

terraform init
terraform plan -var-file="../../terraform.auto.tfvars"
terraform apply -var-file="../../terraform.auto.tfvars"
  1. Create NAT + Bastion

cd (sandbox/dev/qa/prod)/(us-east1/us-central-1)/nat-bastion

Update bastion_user and bastion-ssh-key

terraform init
terraform plan -var-file="../../terraform.auto.tfvars"
terraform apply -var-file="../../terraform.auto.tfvars"

About

Infrastructure for C4Coin Blockchain Network

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •