Skip to content
This repository was archived by the owner on Mar 19, 2024. It is now read-only.

Commit 86a8605

Browse files
author
CodingNagger
committed
Fixed bucket creation + Added permissions to sample policies file
1 parent badf522 commit 86a8605

File tree

2 files changed

+11
-2
lines changed

2 files changed

+11
-2
lines changed

LambdaDeployerPolicyExample.json

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,15 @@
4949
"arn:aws:lambda:*:*:function:*",
5050
"arn:aws:lambda:*:*:layer:*"
5151
]
52+
},
53+
{
54+
"Sid": "VisualEditor4",
55+
"Effect": "Allow",
56+
"Action": [
57+
"s3:CreateBucket",
58+
"s3:ListBucket"
59+
],
60+
"Resource": "arn:aws:s3:::*"
5261
}
5362
]
5463
}

Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -181,8 +181,8 @@ invoke_lambda:
181181
aws lambda invoke --function-name $(LAMBDA_FUNCTION_NAME) --profile $(AWS_PROFILE) --payload "fileb://$(SWIFT_PROJECT_PATH)/event.json" $(LAMBDA_BUILD_PATH)/outfile && echo "\nResult:" && cat $(LAMBDA_BUILD_PATH)/outfile && echo "\n"
182182

183183
create_s3_buckets_if_not_existing:
184-
aws s3 ls "s3://$(AWS_BUCKET)" --summarize || aws s3 mb "s3://$(AWS_BUCKET)"
185-
aws s3 ls "s3://$(AWS_LAYER_BUCKET)" --summarize || aws s3 mb "s3://$(AWS_LAYER_BUCKET)"
184+
aws s3 ls "s3://$(AWS_BUCKET)" || aws s3 mb "s3://$(AWS_BUCKET)"
185+
aws s3 ls "s3://$(AWS_LAYER_BUCKET)" || aws s3 mb "s3://$(AWS_LAYER_BUCKET)"
186186

187187
#quick commands - no clean
188188
quick_build_lambda: build_lambda create_build_directory

0 commit comments

Comments
 (0)