-
Notifications
You must be signed in to change notification settings - Fork 22
/
Copy paths3-buckets.yaml
36 lines (33 loc) · 995 Bytes
/
s3-buckets.yaml
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
---
AWSTemplateFormatVersion: '2010-09-09'
Description: 'DIALv2 Master Lambda'
Parameters:
s3BucketName:
Description: S3 bucket name to use to store lambda source code for DIALv2.
Type: String
Default: dialv2-source-repository
Resources:
DIALv2SourceRepositoryBucket:
Type: AWS::S3::Bucket
Properties:
BucketName: !Ref s3BucketName
AccessControl: Private
BucketEncryption:
ServerSideEncryptionConfiguration:
- ServerSideEncryptionByDefault:
SSEAlgorithm: AES256
PublicAccessBlockConfiguration:
BlockPublicAcls: true
BlockPublicPolicy: true
IgnorePublicAcls: true
RestrictPublicBuckets: true
Tags:
- Key: Project
Value: DIALv2
Outputs:
s3BucketArn:
Value: !GetAtt DIALv2SourceRepositoryBucket.Arn
s3BucketDomain:
Value: !GetAtt DIALv2SourceRepositoryBucket.DomainName
s3WebsiteURL:
Value: !GetAtt DIALv2SourceRepositoryBucket.WebsiteURL