Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
sveronneau committed Feb 12, 2018
1 parent cecfe83 commit ebe12e8
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 0 deletions.
4 changes: 4 additions & 0 deletions gcs-backend/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# gcp/gce
Terraform script sample to deploy 5 instances with a second disk attached to it and installs traceroute in them ounce deployed.

Scripts uses a GCP service account and a JSON file with your account token and ENV VARS
13 changes: 13 additions & 0 deletions gcs-backend/gcs.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
provider "google" {
credentials = "${file("path_to_your_json_file")}"
project = "your_project"
region = "northamerica-northeast1"
}

terraform {
backend "gcs" {
credentials = "path_to_your_json_file"
bucket = "your_bucket_name" // Needs to exist prior execution of script
prefix = "terraform/tfstate"
}
}
1 change: 1 addition & 0 deletions packer/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,6 @@ Packer script for image baking on GCP
* V1 = Install packages from the packer file
* V2 = Install packages from provisioner.sh
* V3 = Install packages from provisioner.sh and uses the image_family to avoid mentioning image version.
* Docker = Docker Image Builder

Scripts uses a GCP service account and a JSON file with your account token.
3 changes: 3 additions & 0 deletions packer/docker.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{

}

0 comments on commit ebe12e8

Please sign in to comment.