Skip to content

Instantly share code, notes, and snippets.

@epeters3
Last active September 2, 2021 18:16
Show Gist options
  • Save epeters3/cf9e7559ebf4ffb80266f320d3094876 to your computer and use it in GitHub Desktop.
Save epeters3/cf9e7559ebf4ffb80266f320d3094876 to your computer and use it in GitHub Desktop.
Terraform config for GCS bucket which will support signed upload URLs
resource "google_storage_bucket" "my_bucket" {
name = "my-unique-bucket-name"
cors {
origin = ["*"]
method = ["*"]
response_header = [
"Content-Type",
"Access-Control-Allow-Origin",
"X-Goog-Content-Length-Range"
]
max_age_seconds = 3600 # this can be whatever value you want
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment