Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update parmeter names #13

Merged
merged 2 commits into from
Oct 10, 2023
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
12 changes: 6 additions & 6 deletions template.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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
Expand All @@ -60,7 +60,7 @@ Resources:
Action: lambda:InvokeFunction
FunctionName: !Ref SsmParamFunction
Principal: !Ref 'AWS::AccountId'
SourceArn: !Ref CfnExportLambdaServiceRole
SourceArn: !Ref LambdaServiceRoleArn

Outputs:
SsmParamFunctionName:
Expand Down