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

Implement Functionality for S3BucketServerSideEncryption #1483

Closed
wants to merge 0 commits into from

Conversation

james03160927
Copy link
Contributor

Description

Fixes #1080

TODOs

Read the Gruntwork contribution guidelines.

  • Update the docs.
  • Run the relevant tests successfully, including pre-commit checks.
  • Ensure any 3rd party code adheres with our license policy or delete this line if its not applicable.
  • Include release notes. If this PR is backward incompatible, include a migration guide.

Release Notes (draft)

Added / Removed / Updated [X].

Migration Guide

@james03160927 james03160927 self-assigned this Dec 9, 2024
modules/aws/s3.go Outdated Show resolved Hide resolved
modules/aws/s3.go Outdated Show resolved Hide resolved
@@ -478,6 +478,37 @@ func AssertS3BucketPolicyExistsE(t testing.TestingT, region string, bucketName s
return nil
}

// AssertS3BucketServerSideEncryption checks if the given S3 bucket has a server side encryption configured using the given algorithm and fail the test if it does not
func AssertS3BucketServerSideEncryption(t testing.TestingT, region string, bucketName string, algorithm types.ServerSideEncryption) {
Copy link
Member

Choose a reason for hiding this comment

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

Unused function 'AssertS3BucketServerSideEncryption' - may be a problem if at some point, the function is removed and there will not be any test that fails

@james03160927
Copy link
Contributor Author

PTAL @denis256. Addressed your comments.

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.

Add check for ApplyServerSideEncryptionByDefault
2 participants