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

feat: Add default Access Log Delivery Policy (same as ALB/NLB) to work since April 2023 #230

Merged
merged 4 commits into from
Apr 27, 2023

Conversation

cageyv
Copy link
Contributor

@cageyv cageyv commented Apr 27, 2023

Description

Create default Access Log Delivery Policy for migrate from grants according to latest aws s3 bucket update.

Motivation and Context

It will allow us to setup Bucket Policy for Access Log Delivery in the same way same as for ALB/NLB logs delivery. Policy was created by using that migration guide from AWS:
https://docs.aws.amazon.com/AmazonS3/latest/userguide/object-ownership-migrating-acls-prerequisites.html#object-ownership-server-access-logs

It also support additional security conditions such as aws:SourceArn and aws:SourceAccount which will helpful for someone who using cross-account log delivery

Close #229

Breaking Changes

How Has This Been Tested?

⚠️ 2023-04-27 10:20 UTC This changes was not yet tested. Use it on your own risk.
⚠️ 2023-04-27 10:40 UTC Terraform code is correct. Waiting for S3 Access Log delivery
2023-04-27 12:57 UTC S3 Access Logs appears and policy is working

  • I have updated at least one of the examples/* to demonstrate and validate my change(s)
  • I have tested and validated these changes using one or more of the provided examples/* projects
  • I have executed pre-commit run -a on my pull request

@cageyv cageyv changed the title add access_log_delivery_policy feat: Add default Access Log Delivery Policy (same as ALB/NLB) to work since April 2023 Apr 27, 2023
attach_deny_insecure_transport_policy = true
attach_require_latest_tls_policy = true

# Advanced options
Copy link
Member

Choose a reason for hiding this comment

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

I would not call this "advanced" :)

@antonbabenko antonbabenko merged commit bafac30 into terraform-aws-modules:master Apr 27, 2023
antonbabenko pushed a commit that referenced this pull request Apr 27, 2023
## [3.10.0](v3.9.0...v3.10.0) (2023-04-27)

### Features

* Add default Access Log Delivery Policy (same as ALB/NLB) to work since April 2023 ([#230](#230)) ([bafac30](bafac30))
@antonbabenko
Copy link
Member

This PR is included in version 3.10.0 🎉

@antonbabenko
Copy link
Member

@cageyv Thank you for this PR!

Jean717p pushed a commit to Jean717p/terraform-aws-s3-bucket that referenced this pull request Apr 27, 2023
Jean717p pushed a commit to Jean717p/terraform-aws-s3-bucket that referenced this pull request Apr 27, 2023
## [3.10.0](terraform-aws-modules/terraform-aws-s3-bucket@v3.9.0...v3.10.0) (2023-04-27)

### Features

* Add default Access Log Delivery Policy (same as ALB/NLB) to work since April 2023 ([terraform-aws-modules#230](terraform-aws-modules#230)) ([bafac30](terraform-aws-modules@bafac30))
@github-actions
Copy link

I'm going to lock this pull request because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. If you have found a problem that seems related to this change, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators May 28, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Policy for access logs
2 participants