/gdg-devfest-2018

Resources for GDG DevFest Cloud Track

Primary LanguageHCL

GDG DevFest 2018 - Cloud Track

Local Development (not using Google Cloud Console)

Installing Terraform

MacOs

Linux

  • Download the terraform binary - https://www.terraform.io/downloads.html
  • Make sure is available on the PATH. You need to add it to your ~/.profile or ~/.bashrc file.
    export PATH="$PATH:/path/to/terraform"
    
  • Then update
    source ~/.profile 
    or
    source ~/.bashrc
    

Installing go

Using Binaries for Windows, MacOs and Linux

MacOs (Brew)

Ubuntu

Other Linux

Setting up GOPATH

Optional: Visual Studio Code

Go extension

Aditional activity: Provisioning of Ethereum Consortium

Create your kaleido account in EU region, Get started

EU

Create a New API KEY

EU

  • Export both the API URL and the API KEY as follows
export TF_VAR_kaleido_api=https://console-eu.kaleido.io/api/v1
export TF_VAR_kaleido_api_key=<YOUR-KEY>

Clone the terraform-provider-kaleido repo

git clone git@github.com:kaleido-io/terraform-provider-kaleido.git

Build the provider

go build -o terraform-provider-kaleido

Move the binary to the terraform plugin directory

chmod +x terraform-provider-kaleido
mv terraform-provider-kaleido ~/.terraform.d/plugins/

Create the Consortium

  • Clone this repo and run
terraform init #You should have the `main.tf` in your current repository.
terraform plan
terraform apply