-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy paths3bucket
More file actions
33 lines (32 loc) · 856 Bytes
/
s3bucket
File metadata and controls
33 lines (32 loc) · 856 Bytes
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
AWSTemplateFormatVersion: 2010-09-09
Resources:
S3Bucket:
Type: AWS::S3::Bucket
Properties:
AccessControl: PublicReadWrite
VersioningConfiguration:
Status: Enabled
LifecycleConfiguration:
Rules:
- Id: MyRule
Prefix: myrule1
Status: Enabled
ExpirationInDays: 30
DeletionPolicy: Retain
BucketPolicy:
Type: AWS::S3::BucketPolicy
Properties:
PolicyDocument:
Id: MyPolicy
Version: 2012-10-17
Statement:
- Sid: PublicReadForGetBucketObjects
Effect: Allow
Principal: '*'
Action: 's3:GetObject'
Resource: !Join
- ''
- - 'arn:aws:s3:::'
- !Ref S3Bucket
- /*
Bucket: !Ref S3Bucket