We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7dda809 commit d323a9aCopy full SHA for d323a9a
main.tf
@@ -10,7 +10,7 @@ resource "google_storage_bucket" "terraform_state" {
10
force_destroy = var.force_destroy
11
12
# Ensure no public access
13
- uniform_bucket_level_access = true
+ uniform_bucket_level_access = var.block_public_access
14
15
labels = var.labels
16
}
variables.tf
@@ -21,6 +21,12 @@ variable "enable_versioning" {
21
type = bool
22
23
24
+variable "block_public_access" {
25
+ description = "A boolean that indicates to block public access to the bucket"
26
+ default = true
27
+ type = bool
28
+}
29
+
30
variable "labels" {
31
description = "A map of bucket labels to add to all resources"
32
type = map(string)
0 commit comments