Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feature(access_logs): make possible to specify an external s3 bucket … #83

Merged
merged 3 commits into from
Apr 10, 2021

Conversation

scream314
Copy link
Contributor

…for logs

what

  • Added a new input variable to provide a bucket name for the logging bucket. If the name is provided, the access_logs module is skipped.

why

  • To be able to store multiple alb logs in a single bucket.
  • To be able to provide an external bucket with a random name.

references

@scream314 scream314 marked this pull request as ready for review March 4, 2021 10:38
@scream314 scream314 requested review from a team as code owners March 4, 2021 10:38
@scream314 scream314 requested review from Makeshift and jamengual and removed request for a team March 4, 2021 10:38
variables.tf Outdated Show resolved Hide resolved
main.tf Outdated
@@ -39,6 +39,8 @@ resource "aws_security_group_rule" "https_ingress" {
}

module "access_logs" {
count = var.access_logs_s3_bucket_id == "" ? 1 : 0

source = "cloudposse/lb-s3-bucket/aws"
version = "0.11.4"
enabled = module.this.enabled && var.access_logs_enabled
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

no reasons to add count you can just extend condition in the enabled

main.tf Outdated Show resolved Hide resolved
@adamantike
Copy link
Contributor

adamantike commented Mar 26, 2021

@scream314, let us know if you can keep working on this. I can take it, otherwise.

@scream314
Copy link
Contributor Author

scream314 commented Mar 27, 2021

@adamantike I hope I can address the change requests next week. I added a reminder in my calendar for Wednesday.

@mergify
Copy link

mergify bot commented Mar 31, 2021

This pull request is now in conflict. Could you fix it @scream314? 🙏

@mergify mergify bot dismissed SweetOps’s stale review March 31, 2021 07:58

This Pull Request has been updated, so we're dismissing all reviews.

@mergify
Copy link

mergify bot commented Mar 31, 2021

This pull request is now in conflict. Could you fix it @scream314? 🙏

@scream314 scream314 requested review from SweetOps and removed request for a team March 31, 2021 08:09
@adamantike
Copy link
Contributor

@SweetOps, I think this is ready for another review!

@jamengual
Copy link
Contributor

/test all

@mergify
Copy link

mergify bot commented Apr 7, 2021

This pull request is now in conflict. Could you fix it @scream314? 🙏

@Gowiem
Copy link
Member

Gowiem commented Apr 10, 2021

/test all

@Gowiem Gowiem merged commit be22f65 into cloudposse:master Apr 10, 2021
@Gowiem
Copy link
Member

Gowiem commented Apr 10, 2021

Thanks @scream314 -- released as 0.31.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Use central logging bucket rather then create a new one.
5 participants