From 61d35cc1a0b71d6964cb9135fd697129d700a403 Mon Sep 17 00:00:00 2001 From: Bo Lu Date: Thu, 12 Dec 2024 14:39:19 -0500 Subject: [PATCH] Minor fix to app-geo-ca-v2 harvester --- .../geocore-hnap-harvest-app-geo-ca-v2.yml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/docs/cloudformation/geocore-hnap-harvest-app-geo-ca-v2.yml b/docs/cloudformation/geocore-hnap-harvest-app-geo-ca-v2.yml index e155788..1507ca5 100644 --- a/docs/cloudformation/geocore-hnap-harvest-app-geo-ca-v2.yml +++ b/docs/cloudformation/geocore-hnap-harvest-app-geo-ca-v2.yml @@ -21,7 +21,7 @@ Conditions: IsDev: !Equals [dev, !Ref Environment] Resources: - HnapJsonHarvester2: + HnapJsonHarvesterAppGeoCav2: Type: AWS::Serverless::Function Properties: Runtime: python3.9 @@ -52,7 +52,7 @@ Resources: HnapJsonHarvesterRule: Type: AWS::Events::Rule Properties: - Name: !Sub 'harvester-10mins-${Environment}' + Name: !Sub 'harvester-10mins-app-geo-ca-v2-${Environment}' Description: Harvester on a 10 minute interval State: DISABLED ScheduleExpression: 'rate(10 minutes)' @@ -60,21 +60,21 @@ Resources: - Arn: Fn::GetAtt: - - HnapJsonHarvester2 + - HnapJsonHarvesterAppGeoCav2 - Arn - Id: !Ref HnapJsonHarvester2 + Id: !Ref HnapJsonHarvesterAppGeoCav2 PermissionForEventsToInvokeHarvesterLambda: Type: AWS::Lambda::Permission Properties: - FunctionName: !Ref HnapJsonHarvester2 + FunctionName: !Ref HnapJsonHarvesterAppGeoCav2 Action: 'lambda:InvokeFunction' Principal: 'events.amazonaws.com' SourceArn: !GetAtt - HnapJsonHarvesterRule - Arn - LambdaExecutionRole: + LambdaExecutionRole: Type: AWS::IAM::Role Properties: AssumeRolePolicyDocument: