Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 2 additions & 11 deletions ProcessesApi/serverless.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,20 +58,11 @@ functions:
private: false
resources:
Conditions:
# Only create the Canaries for staging/prod
IsProdDeployment:
# Only create the Canaries for prod
CreateCanary:
Fn::Equals:
- ${self:provider.stage}
- production
IsStagingDeployment:
Fn::Equals:
- ${self:provider.stage}
- staging
# Check if deployment is staging or prod
CreateCanary:
Fn::Or:
- Condition: IsStagingDeployment
- Condition: IsProdDeployment
Resources:
lambdaExecutionRole:
Type: AWS::IAM::Role
Expand Down