Last active
September 2, 2021 18:16
-
-
Save epeters3/cf9e7559ebf4ffb80266f320d3094876 to your computer and use it in GitHub Desktop.
Terraform config for GCS bucket which will support signed upload URLs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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