generated from Sage-Bionetworks-IT/lambda-template
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update the parameter names to more accurately represent the input data
- Loading branch information
Showing
1 changed file
with
6 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -24,11 +24,11 @@ Parameters: | |
AllowedPattern: '^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$' | ||
ConstraintDescription: 'Must be an acceptable email address syntax(i.e. [email protected])' | ||
Default: '[email protected]' | ||
CfnExportLambdaExecutionRole: | ||
Description: 'The cloudformation export value of the lambda execution role' | ||
LambdaExecutionRoleArn: | ||
Description: 'The ARN of the role used to execute this lambda' | ||
Type: String | ||
CfnExportLambdaServiceRole: | ||
Description: 'The cloudformation export value of the lambda service role' | ||
LambdaServiceRoleArn: | ||
Description: 'The ARN of the role used to invoke this lambda' | ||
Type: String | ||
|
||
Globals: | ||
|
@@ -42,7 +42,7 @@ Resources: | |
CodeUri: ssm_param/ | ||
Handler: app.handler | ||
Runtime: python3.9 | ||
Role: !Ref CfnExportLambdaExecutionRole | ||
Role: !Ref LambdaExecutionRoleArn | ||
Tags: | ||
Department: !Ref Department | ||
Project: !Ref Project | ||
|
@@ -60,7 +60,7 @@ Resources: | |
Action: lambda:InvokeFunction | ||
FunctionName: !Ref SsmParamFunction | ||
Principal: !Ref 'AWS::AccountId' | ||
SourceArn: !Ref CfnExportLambdaServiceRole | ||
SourceArn: !Ref LambdaServiceRoleArn | ||
|
||
Outputs: | ||
SsmParamFunctionName: | ||
|