Skip to content

Commit

Permalink
Remove custom Serverless variable syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
72636c committed Feb 8, 2021
1 parent ecbc41e commit 7e8824d
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
7 changes: 7 additions & 0 deletions .changeset/popular-drinks-remember.md
@@ -0,0 +1,7 @@
---
'skuba': patch
---

**template/lambda-sqs-worker:** Remove custom Serverless variable syntax

`serverless@2.3.0` bundled native support for CloudFormation pseudo parameters. This even works with arbitrary logical IDs like `!Sub ${WorkerLambdaFunctionDeploymentGroup}`.
7 changes: 1 addition & 6 deletions template/lambda-sqs-worker/serverless.yml
Expand Up @@ -26,7 +26,6 @@ provider:
runtime: nodejs14.x
stackName: ${self:service}
stage: ${env:ENVIRONMENT}
variableSyntax: "\\${((?!AWS)[ ~:a-zA-Z0-9._@'\",\\-\\/\\(\\)]+?)}"
versionFunctions: true
deploymentBucket:
# Use a shared account-level bucket for Lambda bundles and other artefacts.
Expand All @@ -35,11 +34,7 @@ provider:
iamRoleStatements:
- Action: codedeploy:PutLifecycleEventHookExecutionStatus
Effect: Allow
Resource: !Join
- ''
- - !Sub arn:aws:codedeploy:${AWS::Region}:${AWS::AccountId}:deploymentgroup
- ':*/'
- !Ref WorkerLambdaFunctionDeploymentGroup
Resource: !Sub arn:aws:codedeploy:${AWS::Region}:${AWS::AccountId}:deploymentgroup:*/${WorkerLambdaFunctionDeploymentGroup}
- Action:
- kms:Decrypt
- kms:GenerateDataKey*
Expand Down

0 comments on commit 7e8824d

Please sign in to comment.