Skip to content

Commit

Permalink
fix(cwp-templates): use bucket name as StatementId instead of a hardc…
Browse files Browse the repository at this point in the history
…oded value
  • Loading branch information
Pavel910 committed Jul 14, 2020
1 parent 516de84 commit e16f271
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/cwp-template-cms/template/api/resources.js
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,7 @@ module.exports = () => ({
{
Action: "lambda:InvokeFunction",
Principal: "s3.amazonaws.com",
StatementId: "s3invoke",
StatementId: process.env.S3_BUCKET,
SourceArn: `arn:aws:s3:::${process.env.S3_BUCKET}`
}
],
Expand Down
2 changes: 1 addition & 1 deletion packages/cwp-template-full/template/api/resources.js
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,7 @@ module.exports = () => ({
{
Action: "lambda:InvokeFunction",
Principal: "s3.amazonaws.com",
StatementId: "s3invoke",
StatementId: process.env.S3_BUCKET,
SourceArn: `arn:aws:s3:::${process.env.S3_BUCKET}`
}
],
Expand Down

0 comments on commit e16f271

Please sign in to comment.