Added CORS dynamic block for gcs : feature/cors for gcs (#232)

* Added a dynamic CORS block for gcs module. Changed main.tf and variables.tf

* Updated the README for the CORS block

* Ran tfdoc for /modules/gcs/README.md

Co-authored-by: Chinmay Dorlikar <chinmay.dorlikar@quantiphi.com>
This commit is contained in:
Chinmay Dorlikar
2021-04-23 21:28:58 +05:30
committed by GitHub
parent 6df43f3b12
commit 9c0b37f100
3 changed files with 22 additions and 0 deletions

View File

@@ -99,3 +99,14 @@ variable "versioning" {
type = bool
default = false
}
variable "cors" {
description = "CORS configuration for the bucket. Defaults to null."
type = object({
origin = list(string)
method = list(string)
response_header = list(string)
max_age_seconds = number
})
default = null
}