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:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user