diff --git a/template.yaml b/template.yaml index 27a94d8e..3a3fb143 100644 --- a/template.yaml +++ b/template.yaml @@ -25,6 +25,7 @@ Metadata: - IgnoreUsers - IgnoreGroups - IncludeGroups + - Timeout AWS::ServerlessRepo::Application: Name: ssosync @@ -116,7 +117,12 @@ Parameters: AllowedValues: - groups - users_groups - + Timeout: + Type: Number + Description: Timeout for the Lambda function + Default: 300 + MinValue: 0 + MaxValue: 900 @@ -126,7 +132,7 @@ Resources: Properties: Runtime: go1.x Handler: dist/ssosync_linux_amd64_v1/ssosync - Timeout: 300 + Timeout: !Ref Timeout Environment: Variables: SSOSYNC_LOG_LEVEL: !Ref LogLevel