-
Notifications
You must be signed in to change notification settings - Fork 2
/
AWS-S3.yml.yml
40 lines (39 loc) · 979 Bytes
/
AWS-S3.yml.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
---
AWSTemplateFormatVersion: '2010-09-09'
Description: This Template will create AWS S3 Bucket.
Parameters:
S3BucketName:
Description: Provide the Valid S3 Bucket Name
Type: String
ConstraintDescription: Must be Valid Name
KMSKEY:
Description: Paste the KMS KEY ARN Here
Type: String
ConstraintDescription: Must be Valid KMS ARN type
Resources:
S3Bucket:
Type: AWS::S3::Bucket
DeletionPolicy: Retain
Properties:
BucketName:
Ref: S3BucketName
BucketEncryption:
ServerSideEncryptionConfiguration:
- ServerSideEncryptionByDefault:
KMSMasterKeyID:
Ref: KMSKEY
SSEAlgorithm: aws:kms
VersioningConfiguration:
Status: Enabled
Metadata:
AWS::CloudFormation::Interface:
ParameterGroups:
- Label:
default: S3 Bucket details
Parameters:
- S3BucketName
- KMSKEY
Outputs:
MyStacksRegion:
Value: !Ref "AWS::Region"
---