File tree 3 files changed +25
-16
lines changed
template/lambda-sqs-worker
3 files changed +25
-16
lines changed Original file line number Diff line number Diff line change
1
+ ---
2
+ ' skuba ' : patch
3
+ ---
4
+
5
+ ** template/lambda-sqs-worker:** Use new ` serverless.yml#/provider/iam ` grouping
6
+
7
+ The ` provider.iamRoleStatements ` property [ will be removed in Serverless v3] ( https://github.com/serverless/serverless/blob/v2.25.1/docs/deprecations.md#grouping-iam-settings-under-provideriam ) .
Original file line number Diff line number Diff line change 13
13
"@types/node" : " ^14.14.22" ,
14
14
"chance" : " ^1.1.7" ,
15
15
"pino-pretty" : " ^4.3.0" ,
16
- "serverless" : " ^2.20 .1" ,
16
+ "serverless" : " ^2.25 .1" ,
17
17
"serverless-plugin-canary-deployments" : " ^0.5.0" ,
18
18
"serverless-prune-plugin" : " ^1.4.3" ,
19
19
"skuba" : " *"
Original file line number Diff line number Diff line change @@ -31,21 +31,23 @@ provider:
31
31
# Use a shared account-level bucket for Lambda bundles and other artefacts.
32
32
# This is easier to manage in terms of access, deployment, and tagging.
33
33
name : ${self:custom.env.deploymentBucket}
34
- iamRoleStatements :
35
- - Action :
36
- - kms:Decrypt
37
- - kms:GenerateDataKey*
38
- Effect : Allow
39
- Resource : !GetAtt EncryptionKey.Arn
40
- - Action : lambda:InvokeFunction
41
- Effect : Allow
42
- Resource : !Sub arn:aws:lambda:${AWS::Region}:${AWS::AccountId}:function:${self:functions.Worker.name}
43
- - Action : sns:Publish
44
- Effect : Allow
45
- Resource : !Ref DestinationTopic
46
- - Action : sqs:SendMessage*
47
- Effect : Allow
48
- Resource : !GetAtt DeadLetterQueue.Arn
34
+ iam :
35
+ role :
36
+ statements :
37
+ - Action :
38
+ - kms:Decrypt
39
+ - kms:GenerateDataKey*
40
+ Effect : Allow
41
+ Resource : !GetAtt EncryptionKey.Arn
42
+ - Action : lambda:InvokeFunction
43
+ Effect : Allow
44
+ Resource : !Sub arn:aws:lambda:${AWS::Region}:${AWS::AccountId}:function:${self:functions.Worker.name}
45
+ - Action : sns:Publish
46
+ Effect : Allow
47
+ Resource : !Ref DestinationTopic
48
+ - Action : sqs:SendMessage*
49
+ Effect : Allow
50
+ Resource : !GetAtt DeadLetterQueue.Arn
49
51
stackTags :
50
52
# TODO: add data classification tags
51
53
# https://rfc.skinfra.xyz/RFC019-AWS-Tagging-Standard.html#seekdataconsumers
You can’t perform that action at this time.
0 commit comments