mirror of
https://github.com/serverless/serverless.git
synced 2026-01-18 14:58:43 +00:00
65 lines
1.5 KiB
JSON
65 lines
1.5 KiB
JSON
{
|
|
"name": "example-jaws-module",
|
|
"version": "0.0.1",
|
|
"location": "https://github.com/jaws-stack/example-module",
|
|
"author": "Me <me@gmail.com> http://me.com",
|
|
"description": "example-project: An ambitious, server-less application built with the JAWS framework.",
|
|
"cfExtensions": {
|
|
"PolicyDocumentStatements": [
|
|
{
|
|
"Action": [
|
|
"s3:Get*",
|
|
"s3:List*",
|
|
"s3:Put*"
|
|
],
|
|
"Resource": [
|
|
{
|
|
"Fn::Join": [
|
|
"",
|
|
[
|
|
"arn:aws:s3:::",
|
|
{
|
|
"Ref": "aaProjectName"
|
|
},
|
|
"-images.",
|
|
{
|
|
"Ref": "aaHostedZoneName"
|
|
},
|
|
"/",
|
|
{
|
|
"Ref": "aaDataModelStage"
|
|
},
|
|
"*"
|
|
]
|
|
]
|
|
}
|
|
],
|
|
"Effect": "Allow"
|
|
}
|
|
],
|
|
"ResourceStatements": {
|
|
"imagesBucket": {
|
|
"Type": "AWS::S3::Bucket",
|
|
"DeletionPolicy": "Delete",
|
|
"Properties": {
|
|
"BucketName": {
|
|
"Fn::Join": [
|
|
"",
|
|
[
|
|
{
|
|
"Ref": "aaProjectName"
|
|
},
|
|
"-images.",
|
|
{
|
|
"Ref": "aaHostedZoneName"
|
|
}
|
|
]
|
|
]
|
|
},
|
|
"AccessControl": "PublicRead"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|