-
-
Notifications
You must be signed in to change notification settings - Fork 93
/
Copy pathcloudstorage.tf
34 lines (31 loc) · 1.04 KB
/
cloudstorage.tf
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
##########################
# Darklang AI deployment
##########################
# Downloads for the cli(s)
resource "google_storage_bucket" "downloads" {
force_destroy = false
location = "US"
name = "darklang-downloads"
project = local.project_name
public_access_prevention = "inherited"
storage_class = "STANDARD"
uniform_bucket_level_access = true
autoclass {
enabled = true
}
}
resource "google_storage_bucket_iam_binding" "public_access" {
bucket = google_storage_bucket.downloads.name
role = "roles/storage.objectViewer"
members = ["allUsers"]
}
# Bucket for storing customer traces
resource "google_storage_bucket" "traces" {
force_destroy = false
location = "US-CENTRAL1"
name = "darklang-traces"
project = local.project_name
public_access_prevention = "enforced"
storage_class = "STANDARD"
uniform_bucket_level_access = true
}