-
-
Notifications
You must be signed in to change notification settings - Fork 29
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Allows users to provide their own S3 bucket for use in holding LB Acc…
…ess Logs (#37) * Allows users to provide their own S3 bucket for use in holding LB Access Logs Our organization has a single bucket designated for LB access logs in each environment, and we'd like to avoid having a 1:1 ratio between LBs and log buckets. This commit enables the module user to provide the ID of a pre-existing S3 bucket that the LB is configured to use. This becomes mutually exclusive with the existing "enable_s3_logs" boolean. * Keeping enable_s3_logs as the overarching variable, allowing bring-your-own bucket ID variable * Removing now-unnecessary dynamic access_logs * Fixing outputs.tf * Checked for null incorrectly, fixing * Explicitly setting vars to try to pass the test * Fixing test error by defining local.bucket_id
- Loading branch information
1 parent
50f4515
commit 8ed1f65
Showing
8 changed files
with
112 additions
and
75 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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,16 @@ | ||
locals { | ||
bucket_id = "my-tf-test-bucket" | ||
} | ||
|
||
resource "aws_s3_bucket" "bucket" { | ||
bucket = local.bucket_id | ||
} | ||
|
||
module "load_balancer_bring_your_own_bucket" { | ||
source = "../../" | ||
name_prefix = "test-alb" | ||
vpc_id = module.base-network.vpc_id | ||
private_subnets = module.base-network.private_subnets_ids | ||
public_subnets = module.base-network.public_subnets_ids | ||
log_bucket_id = local.bucket_id | ||
} |
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
Oops, something went wrong.