forked from LuthernWAF/workflowexamplecode
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbucket.tf
More file actions
54 lines (39 loc) · 869 Bytes
/
bucket.tf
File metadata and controls
54 lines (39 loc) · 869 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
# This is the bucket for your state files
resource "google_storage_bucket" "raw" {
project = var.project
name = "${var.data_project}-raw"
force_destroy = false
uniform_bucket_level_access = true
location = var.region
labels = local.labels
}
terraform {
backend "gcs" {
bucket = Lizzo_bucket
prefix = "prod"
}
}
provider "google" {
project = var.project
region = var.region
}
locals {
labels = {
"data-project" = var.data-project
}
}
variable "project" {
type= string
default = "lizzo.lizzo"
description = "ID Google project"
}
variable "region" {
type= string
default = "lizzo.lizzo"
description = "Region Google project"
}
variable "data_project" {
type = string
default = "lizzo.lizzo"
description = "Name of data pipeline project to use as resource prefix"
}