We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7000c07 commit c3629f6Copy full SHA for c3629f6
modules/cache/main.tf
@@ -63,7 +63,9 @@ resource "aws_s3_bucket" "build_cache" {
63
64
# block public access to S3 cache bucket
65
resource "aws_s3_bucket_public_access_block" "build_cache_policy" {
66
- bucket = local.cache_bucket_name
+ count = var.create_cache_bucket ? 1 : 0
67
+
68
+ bucket = aws_s3_bucket.build_cache[0].id
69
70
block_public_acls = true
71
block_public_policy = true
0 commit comments