Skip to content

Commit d9adfcb

Browse files
committed
Rename lambda
1 parent 754e11d commit d9adfcb

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-
EPSNotifyProcessorScheduleEventRole:
334+
PSUNotifyProcessorScheduleEventRole:
335335
Type: AWS::IAM::Role
336336
Properties:
337337
AssumeRolePolicyDocument:
@@ -344,9 +344,9 @@ Resources:
344344
Action:
345345
- sts:AssumeRole
346346
ManagedPolicyArns:
347-
- !Ref EPSNotifyProcessorScheduleEventRolePolicy
347+
- !Ref PSUNotifyProcessorScheduleEventRolePolicy
348348

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

361-
EPSNotifyProcessor:
361+
PSUNotifyProcessor:
362362
Type: AWS::Serverless::Function
363363
Properties:
364-
FunctionName: !Sub ${StackName}-EPSNotifyProcessor
364+
FunctionName: !Sub ${StackName}-PSUNotifyProcessor
365365
CodeUri: ../../packages/
366366
Handler: nhsNotifyLambda.handler
367-
Role: !GetAtt EPSNotifyProcessorResources.Outputs.LambdaRoleArn
367+
Role: !GetAtt PSUNotifyProcessorResources.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 EPSNotifyProcessorScheduleEventRole.Arn
379+
RoleArn: !GetAtt PSUNotifyProcessorScheduleEventRole.Arn
380380
Metadata:
381381
BuildMethod: esbuild
382382
guard:
@@ -393,14 +393,14 @@ Resources:
393393
EntryPoints:
394394
- nhsNotifyLambda/src/nhsNotifyLambda.ts
395395

396-
EPSNotifyProcessorResources:
396+
PSUNotifyProcessorResources:
397397
Type: AWS::Serverless::Application
398398
Properties:
399399
Location: lambda_resources.yaml
400400
Parameters:
401401
StackName: !Ref StackName
402-
LambdaName: !Sub ${StackName}-EPSNotifyProcessor
403-
LambdaArn: !Sub arn:aws:lambda:${AWS::Region}:${AWS::AccountId}:function:${StackName}-EPSNotifyProcessor
402+
LambdaName: !Sub ${StackName}-PSUNotifyProcessor
403+
LambdaArn: !Sub arn:aws:lambda:${AWS::Region}:${AWS::AccountId}:function:${StackName}-PSUNotifyProcessor
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-
EPSNotifyProcessorFunctionName:
478+
PSUNotifyProcessorFunctionName:
479479
Description: The function name of the NHS Notify lambda
480-
Value: !Ref EPSNotifyProcessor
480+
Value: !Ref PSUNotifyProcessor
481481

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

0 commit comments

Comments
 (0)