This repository has been archived by the owner on Jun 26, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 13
/
s3-buckets.json
63 lines (63 loc) · 2.08 KB
/
s3-buckets.json
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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
{
"AWSTemplateFormatVersion": "2010-09-09",
"Description": "S3 Buckets",
"Parameters": {
"AppName": {
"Description": "App Name - use a-z only - preferably all lower-case for consistency. Something like 'blog' - it should match the app's appspec file",
"Type": "String",
"MinLength": "1"
},
"BucketPrefix": {
"Description": "A unique string - use something like 'yourname'. This is used to make sure that your S3 bucket name is unique",
"Type": "String",
"MinLength": "1"
},
"EnvironmentName": {
"Description": "The environment we are building",
"Type": "String",
"Default": "dev",
"AllowedValues": [
"dev",
"staging",
"production"
],
"MinLength": "1"
}
},
"Resources": {
"ReleaseBucket": {
"Type": "AWS::S3::Bucket",
"Metadata": {
"Comment1": "Where software packages are uploaded to, so they can be applied to the system at startup",
"Comment2": "The join below means the name is something like blog-testing-releases"
},
"Properties": {
"BucketName": {
"Fn::Join": [
"",
[
{
"Ref": "BucketPrefix"
},
"-",
{
"Ref": "AppName"
},
"-",
{
"Ref": "EnvironmentName"
},
"-releases"
]
]
},
"Tags": [
{
"Key": "Name",
"Value": "App Releases"
}
]
}
}
}
}