-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy paths3-cloudformation.json
53 lines (53 loc) · 1.31 KB
/
s3-cloudformation.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
{
"AWSTemplateFormatVersion": "2010-09-09",
"Description": "Example AWS CloudFormation Template used to create two distinct S3 buckets",
"Parameters": {
"SourceName": {
"Type": "String",
"Description": "Name of the S3 bucket for the source data",
"AllowedPattern": "[-a-z0-9]*"
},
"DestinationName": {
"Type": "String",
"Description": "Name of the S3 bucket for the destination data",
"AllowedPattern": "[-a-z0-9]*"
},
"BillingTag": {
"Type": "String",
"Default": "hello-world",
"Description": "Billing tag for services"
}
},
"Resources": {
"SourceS3Bucket" : {
"Type": "AWS::S3::Bucket",
"Properties": {
"BucketName": { "Ref": "SourceName" },
"Tags": [
{
"Key": "billing", "Value": { "Ref": "BillingTag" }
}
]
}
},
"DestinationS3Bucket" : {
"Type": "AWS::S3::Bucket",
"Properties": {
"BucketName": { "Ref": "DestinationName" },
"Tags": [
{
"Key": "billing", "Value": { "Ref": "BillingTag" }
}
]
}
}
},
"Outputs" : {
"SourceBucketName": {
"Value": { "Ref": "SourceS3Bucket" }
},
"DestinationBucketName": {
"Value": { "Ref": "DestinationS3Bucket" }
}
}
}