Skip to content

Instantly share code, notes, and snippets.

@polleyg
Created September 6, 2018 13:24
Show Gist options
  • Save polleyg/d58c2eb694797610b27b6ba01bf96924 to your computer and use it in GitHub Desktop.
Save polleyg/d58c2eb694797610b27b6ba01bf96924 to your computer and use it in GitHub Desktop.
Terraform script to create a bucket
terraform {
backend "gcs" {
bucket = "tf-state-gcp-batch-ingestion"
region = "australia-southeast1-a"
prefix = "terraform/state"
}
}
provider "google" {
project = "grey-sort-challenge"
region = "australia-southeast1-a"
}
resource "google_storage_bucket" "funky-bucket" {
name = "batch-pipeline"
storage_class = "REGIONAL"
location = "australia-southeast1"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment