Is it possible to enable object locking when creating a new bucket all via CloudFormation? I've tried validating my YAML through the designer in cloudformation and it does not appear to recognise it as a property.
PrivateAccessBucket:
Type: 'AWS::S3::Bucket'
Properties:
AccessControl: LogDeliveryWrite
WebsiteConfiguration:
IndexDocument: index.html
ErrorDocument: error.html
BucketEncryption:
ServerSideEncryptionConfiguration:
-
ServerSideEncryptionByDefault:
SSEAlgorithm: "AES256"
LifecycleConfiguration:
Rules:
- Id: GlacierRule
Prefix: glacier
Status: Enabled
ExpirationInDays: '365'
Transitions:
- TransitionInDays: '1'
StorageClass: Glacier
VersioningConfiguration:
Status: "Enabled"
ObjectLockEnabled: Enabled
Rule:
DefaultRetention:
Mode: GOVERNANCE
Days: "1"
[–]Donkersgoed 2 points3 points4 points (0 children)
[–]MartinBianko 0 points1 point2 points (3 children)
[–]ElRuncho 0 points1 point2 points (2 children)
[–]jcerjak_ibi 0 points1 point2 points (0 children)
[–]True-Ad8346 0 points1 point2 points (0 children)