aws-samples / experimental-programmatic-access-ccft

Experimental Programmatic Access to the AWS Customer Carbon Footprint Tool data
MIT No Attribution
28 stars 8 forks source link

Enable S3 Versioning (primarily for Securityhub finding S3.14) #12

Closed xnick123 closed 3 months ago

xnick123 commented 3 months ago

Hi,

i will contribute a small change to enable versioning, to resolve AWS Securityhub finding: 07/08/2024 corrected from [S3.10] S3 general purpose buckets with versioning enabled should have Lifecycle configurations to [S3.14] [S3 general purpose buckets should have versioning enabled](https://docs.aws.amazon.com/securityhub/latest/userguide/s3-controls.html#s3-14)

If interested, i'll add some more, like logging for the same reason.

We have a POC in our company and are glad you shared this solution!

Best Regards, Nick

steffeng commented 3 months ago

Thanks @xnick123, for the feedback and the contribution. Based on your feedback, in PR #18 we implemented automated AWS CloudFormation Guard checks for the Security Pillar on Pull Requests. We did fix most checks and raised the security bar. However, we don't want to make a decision for customers' versioning or a retention policies. Customers will have to make this decision triggered by AWS Security Hub on their own if they specified this rule.