S3Bucket:
Type: "AWS::S3::Bucket"
Properties:
AccessControl: BucketOwnerFullControl
BucketEncryption:
ServerSideEncryptionConfiguration:
- ServerSideEncryptionByDefault:
SSEAlgorithm: AES256
BucketName: !Join ["-",["cloudops-datamgmt",!Ref S3BucketName]]
CorsConfiguration:
CorsRules:
- Id: !Join ["-",[!Ref S3BucketName,"Cors-Rule"]]
AllowedHeaders:
- "*"
AllowedMethods:
- "GET"
- "POST"
- "PUT"
AllowedOrigins:
- https:
ExposedHeaders:
- ETag
MaxAge: 3000
LifecycleConfiguration:
Rules:
- Id: !Join ["-",[!Ref S3BucketName,"Lifecycle-Rule"]]
NoncurrentVersionExpirationInDays: 7
Status: !If [Versions, Enabled, Disabled]
- Id: !Join ["-",[!Ref S3BucketName,"Multipart-Rule"]]
AbortIncompleteMultipartUpload:
DaysAfterInitiation: 1
Tags:
-
Key: contactnetid
Value: !Ref TagContactNetid
-
Key: service
Value: !Ref TagService
-
Key: groupname
Value: !Ref TagCloudOpsGroupName
-
Key: environment
Value: !Ref TagEnvironment
-
Key: accountnumber
Value: !Ref TagAccountNumber
-
Key: ticketnumber
Value: !Ref TagTicketNumber
-
Key: bucketdescr
Value: !Ref TagBucketDescr
-
Key: bucketname
Value: !Ref TagBucketName
-
Key: groupid
Value: !Ref TagCloudOpsGroupId
VersioningConfiguration:
Status: !If [Versions, Enabled, Suspended]
Description
This template provisions S3 buckets used by the CloudOps Data Management service