-
Notifications
You must be signed in to change notification settings - Fork 3
/
awsm.json
60 lines (60 loc) · 1.41 KB
/
awsm.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
{
"name": "awsm-images",
"version": "0.0.1",
"location": "https://github.com/awsm-org/awsm-images",
"author": "Ryan Pendergast <[email protected]>",
"description": "Given image url, resize and save to s3",
"resources": {
"cloudFormation": {
"LambdaIamPolicyDocumentStatements": [
{
"Effect": "Allow",
"Action": [
"s3:PutObject",
"s3:PutObjectAcl"
],
"Resource": [
{
"Fn::Join": [
"",
[
"arn:aws:s3:::",
"imgresize.",
{
"Ref": "aaProjectDomain"
},
"/",
{
"Ref": "aaDataModelStage"
},
"*"
]
]
}
]
}
],
"ApiGatewayIamPolicyDocumentStatements": [],
"Resources": {
"ImgS3Bucket": {
"Type": "AWS::S3::Bucket",
"DeletionPolicy": "Delete",
"Properties": {
"AccessControl": "PublicRead",
"BucketName": {
"Fn::Join": [
".",
[
"imgresize",
{
"Ref": "aaProjectDomain"
}
]
]
}
}
}
}
}
}
}