# --- # AWSTemplateFormatVersion: 2010-09-09 # Description: CloudFormation - Server Side Encryption Resources: MyBucket: Type: AWS::S3::Bucket Properties: PublicAccessBlockConfiguration: BlockPublicAcls: true BlockPublicPolicy: true IgnorePublicAcls: true RestrictPublicBuckets: true BucketEncryption: VersioningConfiguration: Status: Enabled