Skip to content

Commit

Permalink
Restrict Maximum Concurrency for the ssosync lambda to 1 #207
Browse files Browse the repository at this point in the history
Issue #, if available:
#206

Description of changes:
Updated the CloudFormation template to hardcode the maximum allowed concurrency for the lambda function to 1. There is no situation under which it would be safe to run more than one instance.

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.
  • Loading branch information
ChrisPates authored Jun 28, 2024
1 parent 00d3bb3 commit 3266d73
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions template.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -534,12 +534,14 @@ Resources:
Condition: CreateFunction
Properties:
FunctionName: !If [SetFunctionName, !Ref FunctionName, !Ref AWS::NoValue]
Description: "An instance of ssosync deplyed from the Serverless Application Repository, for details see http://https://github.com/awslabs/ssosync"
Role: !If [RemoteSecrets, !GetAtt SSOSyncRoleRemote.Arn, !GetAtt SSOSyncRoleLocal.Arn]
Runtime: provided.al2
Handler: bootstrap
Architectures:
- arm64
Timeout: !Ref TimeOut
ReservedConcurrentExecutions: 1
Environment:
Variables:
LOG_LEVEL: !Ref LogLevel
Expand Down

0 comments on commit 3266d73

Please sign in to comment.