Skip to content

Commit

Permalink
Minor fix to app-geo-ca-v2 harvester
Browse files Browse the repository at this point in the history
  • Loading branch information
bo-lu committed Dec 12, 2024
1 parent c9dae6c commit 61d35cc
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions docs/cloudformation/geocore-hnap-harvest-app-geo-ca-v2.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ Conditions:
IsDev: !Equals [dev, !Ref Environment]

Resources:
HnapJsonHarvester2:
HnapJsonHarvesterAppGeoCav2:
Type: AWS::Serverless::Function
Properties:
Runtime: python3.9
Expand Down Expand Up @@ -52,29 +52,29 @@ 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)'
Targets:
-
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:
Expand Down

0 comments on commit 61d35cc

Please sign in to comment.