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

Separate distincts workflows #61

Merged
merged 1 commit into from
Jun 4, 2024
Merged

Separate distincts workflows #61

merged 1 commit into from
Jun 4, 2024

Conversation

GregdTd
Copy link
Contributor

@GregdTd GregdTd commented Jun 4, 2024

Separate two distincts workflows depending on
shouldBlockBucketPublicAccess variable. This ease reading and simplify
debugging. Ensure any existing OAC is deleted.

BREAKING CHANGE:
The following IAM rights are now required:

- cloudfront:ListOriginAccessControls,
- cloudfront:UpdateDistribution,
- cloudfront:GetOriginAccessControl

Additional IAM right are also necessary if using
shouldBlockBucketPublicAccess:

- cloudfront:CreateOriginAccessControl,
- cloudfront:DeleteOriginAccessControl

Separate two distincts workflows depending on
shouldBlockBucketPublicAccess variable. This ease reading and simplify
debugging. Ensure any existing OAC is deleted.

BREAKING CHANGE:
The following IAM rights are now required:
```
- cloudfront:ListOriginAccessControls,
- cloudfront:UpdateDistribution,
- cloudfront:GetOriginAccessControl
```

Additional IAM right are also necessary if using
shouldBlockBucketPublicAccess:

```
- cloudfront:CreateOriginAccessControl,
- cloudfront:DeleteOriginAccessControl

```
@GregdTd GregdTd changed the title feat!: refactor code Separate distincts workflows Jun 4, 2024
@codecov-commenter
Copy link

Codecov Report

Attention: Patch coverage is 28.57143% with 5 lines in your changes missing coverage. Please review.

Project coverage is 82.23%. Comparing base (f378c76) to head (c6422a2).

Files Patch % Lines
src/cloudfront/origin-access.ts 16.66% 5 Missing ⚠️

❗ Your organization needs to install the Codecov GitHub app to enable full functionality.

Additional details and impacted files
@@            Coverage Diff             @@
##             main      #61      +/-   ##
==========================================
- Coverage   83.18%   82.23%   -0.95%     
==========================================
  Files          13       13              
  Lines         452      456       +4     
  Branches       85       85              
==========================================
- Hits          376      375       -1     
- Misses         76       81       +5     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

src/cloudfront/index.spec.ts Show resolved Hide resolved
@GregdTd GregdTd merged commit 9944f84 into main Jun 4, 2024
1 check passed
@LaliloCI
Copy link

LaliloCI commented Jun 4, 2024

🎉 This PR is included in version 4.0.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

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

Successfully merging this pull request may close these issues.

4 participants