Skip to content

Commit 754e11d

Browse files
committed
Rename lambda
1 parent 3635fa0 commit 754e11d

1 file changed

Lines changed: 15 additions & 15 deletions

File tree

SAMtemplates/functions/main.yaml

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -331,7 +331,7 @@ Resources:
331331
SplunkSubscriptionFilterRole: !ImportValue lambda-resources:SplunkSubscriptionFilterRole
332332
SplunkDeliveryStreamArn: !ImportValue lambda-resources:SplunkDeliveryStream
333333

334-
NHSNotifyLambdaScheduleEventRole:
334+
EPSNotifyProcessorScheduleEventRole:
335335
Type: AWS::IAM::Role
336336
Properties:
337337
AssumeRolePolicyDocument:
@@ -344,9 +344,9 @@ Resources:
344344
Action:
345345
- sts:AssumeRole
346346
ManagedPolicyArns:
347-
- !Ref NHSNotifyLambdaScheduleEventRolePolicy
347+
- !Ref EPSNotifyProcessorScheduleEventRolePolicy
348348

349-
NHSNotifyLambdaScheduleEventRolePolicy:
349+
EPSNotifyProcessorScheduleEventRolePolicy:
350350
Type: AWS::IAM::ManagedPolicy
351351
Properties:
352352
PolicyDocument:
@@ -356,15 +356,15 @@ Resources:
356356
Action:
357357
- lambda:InvokeFunction
358358
Resource:
359-
- !GetAtt NHSNotifyLambda.Arn
359+
- !GetAtt EPSNotifyProcessor.Arn
360360

361-
NHSNotifyLambda:
361+
EPSNotifyProcessor:
362362
Type: AWS::Serverless::Function
363363
Properties:
364-
FunctionName: !Sub ${StackName}-NHSNotifyLambda
364+
FunctionName: !Sub ${StackName}-EPSNotifyProcessor
365365
CodeUri: ../../packages/
366366
Handler: nhsNotifyLambda.handler
367-
Role: !GetAtt NHSNotifyLambdaResources.Outputs.LambdaRoleArn
367+
Role: !GetAtt EPSNotifyProcessorResources.Outputs.LambdaRoleArn
368368
Environment:
369369
Variables:
370370
LOG_LEVEL: !Ref LogLevel
@@ -376,7 +376,7 @@ Resources:
376376
Properties:
377377
Name: !Sub ${StackName}-NHSNotifySchedule
378378
ScheduleExpression: "rate(1 minute)"
379-
RoleArn: !GetAtt NHSNotifyLambdaScheduleEventRole.Arn
379+
RoleArn: !GetAtt EPSNotifyProcessorScheduleEventRole.Arn
380380
Metadata:
381381
BuildMethod: esbuild
382382
guard:
@@ -393,14 +393,14 @@ Resources:
393393
EntryPoints:
394394
- nhsNotifyLambda/src/nhsNotifyLambda.ts
395395

396-
NHSNotifyLambdaResources:
396+
EPSNotifyProcessorResources:
397397
Type: AWS::Serverless::Application
398398
Properties:
399399
Location: lambda_resources.yaml
400400
Parameters:
401401
StackName: !Ref StackName
402-
LambdaName: !Sub ${StackName}-NHSNotifyLambda
403-
LambdaArn: !Sub arn:aws:lambda:${AWS::Region}:${AWS::AccountId}:function:${StackName}-NHSNotifyLambda
402+
LambdaName: !Sub ${StackName}-EPSNotifyProcessor
403+
LambdaArn: !Sub arn:aws:lambda:${AWS::Region}:${AWS::AccountId}:function:${StackName}-EPSNotifyProcessor
404404
LogRetentionInDays: !Ref LogRetentionInDays
405405
CloudWatchKMSKeyId: !ImportValue account-resources:CloudwatchLogsKmsKeyArn
406406
EnableSplunk: !Ref EnableSplunk
@@ -475,10 +475,10 @@ Outputs:
475475
- !GetAtt CheckPrescriptionStatusUpdates.Arn
476476
- ""
477477

478-
NHSNotifyLambdaFunctionName:
478+
EPSNotifyProcessorFunctionName:
479479
Description: The function name of the NHS Notify lambda
480-
Value: !Ref NHSNotifyLambda
480+
Value: !Ref EPSNotifyProcessor
481481

482-
NHSNotifyLambdaFunctionArn:
482+
EPSNotifyProcessorFunctionArn:
483483
Description: The function ARN of the NHS Notify lambda
484-
Value: !GetAtt NHSNotifyLambda.Arn
484+
Value: !GetAtt EPSNotifyProcessor.Arn

0 commit comments

Comments
 (0)