-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.tf
32 lines (26 loc) · 798 Bytes
/
main.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
// gcloud iam service-accounts keys create credentials.json --iam-account 613541413891-compute@developer.gserviceaccount.com
provider "google" {
//credentials = file("credentials.json")
project = "tim-bigdata-lab"
region = "us-east1"
}
// Terraform plugin for creating random ids
resource "random_id" "instance_id" {
byte_length = 8
}
resource "google_storage_bucket" "static-site" {
name = "githubterraform"
location = "us-east1"
force_destroy = true
uniform_bucket_level_access = true
website {
main_page_suffix = "index.html"
not_found_page = "404.html"
}
cors {
origin = ["http://image-store.com"]
method = ["GET", "HEAD", "PUT", "POST", "DELETE"]
response_header = ["*"]
max_age_seconds = 3600
}
}