-
-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
477 | Enable ALB access logs for EKS clusters (#484)
* EKS ALB access logs * bucket must be on the same account * disabled by default * terraform fmt * demoapps alb logs * Apply suggestions from code review Co-authored-by: Diego OJeda (BinBash) <[email protected]> * feedback * consider demoapps too * fmt --------- Co-authored-by: Diego OJeda (BinBash) <[email protected]>
- Loading branch information
1 parent
6184fd1
commit 7aad416
Showing
11 changed files
with
62 additions
and
4 deletions.
There are no files selected for viewing
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
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
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
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
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
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
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
module "s3_bucket_alb_logs" { | ||
source = "github.com/binbashar/terraform-aws-s3-bucket.git?ref=v3.7.0" | ||
count = var.create_alb_logs_bucket ? 1 : 0 | ||
|
||
bucket = "${var.project}-${var.environment}-alb-logs" | ||
acl = "log-delivery-write" | ||
|
||
versioning = { | ||
enabled = true | ||
} | ||
|
||
# Allow deletion of non-empty bucket | ||
force_destroy = true | ||
|
||
attach_elb_log_delivery_policy = true # Required for ALB logs | ||
attach_lb_log_delivery_policy = true # Required for ALB/NLB logs | ||
|
||
# S3 bucket-level Public Access Block configuration | ||
block_public_acls = true | ||
block_public_policy = true | ||
ignore_public_acls = true | ||
restrict_public_buckets = true | ||
} |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,4 +4,4 @@ | |
output "certificate_arn" { | ||
description = "The certificate ARN" | ||
value = aws_acm_certificate.main.arn | ||
} | ||
} |