Skip to content

Commit b762058

Browse files
authored
Remove custom Serverless variable syntax (#350)
1 parent ecbc41e commit b762058

File tree

2 files changed

+8
-6
lines changed

2 files changed

+8
-6
lines changed

.changeset/popular-drinks-remember.md

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
---
2+
'skuba': patch
3+
---
4+
5+
**template/lambda-sqs-worker:** Remove custom Serverless variable syntax
6+
7+
`[email protected]` bundled native support for CloudFormation pseudo parameters. This even works with arbitrary logical IDs like `!Sub ${WorkerLambdaFunctionDeploymentGroup}`.

template/lambda-sqs-worker/serverless.yml

+1-6
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@ provider:
2626
runtime: nodejs14.x
2727
stackName: ${self:service}
2828
stage: ${env:ENVIRONMENT}
29-
variableSyntax: "\\${((?!AWS)[ ~:a-zA-Z0-9._@'\",\\-\\/\\(\\)]+?)}"
3029
versionFunctions: true
3130
deploymentBucket:
3231
# Use a shared account-level bucket for Lambda bundles and other artefacts.
@@ -35,11 +34,7 @@ provider:
3534
iamRoleStatements:
3635
- Action: codedeploy:PutLifecycleEventHookExecutionStatus
3736
Effect: Allow
38-
Resource: !Join
39-
- ''
40-
- - !Sub arn:aws:codedeploy:${AWS::Region}:${AWS::AccountId}:deploymentgroup
41-
- ':*/'
42-
- !Ref WorkerLambdaFunctionDeploymentGroup
37+
Resource: !Sub arn:aws:codedeploy:${AWS::Region}:${AWS::AccountId}:deploymentgroup:*/${WorkerLambdaFunctionDeploymentGroup}
4338
- Action:
4439
- kms:Decrypt
4540
- kms:GenerateDataKey*

0 commit comments

Comments
 (0)