Skip to content

Commit

Permalink
Bug fix so Rule is added to CollectorFunction in PermissionForEventsT…
Browse files Browse the repository at this point in the history
…oInvokeCollectorLambda section
  • Loading branch information
bo-lu committed Oct 15, 2024
1 parent 90678b1 commit b428d43
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
10 changes: 5 additions & 5 deletions docs/cloudformation/geocore-eo-rcm-harvester.yml
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ Resources:
Properties:
Name: !Sub 'eo-sg-rcm-collector-every-60mins-${Environment}'
Description: rcm API links collector on every 60mins interval
State: ENABLED
State: DISABLED
ScheduleExpression: 'rate(60 minutes)'
Targets:
- Arn: !GetAtt [CollectorFunction, Arn]
Expand All @@ -135,7 +135,7 @@ Resources:
FunctionName: !Ref CollectorFunction
Action: 'lambda:InvokeFunction'
Principal: 'events.amazonaws.com'
SourceArn: !GetAtt CollectorFunction.Arn
SourceArn: !GetAtt CollectorFunctionRule.Arn



Expand Down Expand Up @@ -267,9 +267,9 @@ Resources:
ScatterFunctionRule:
Type: AWS::Events::Rule
Properties:
Name: !Sub 'eo-sg-scatter-every-monday-${Environment}'
Name: !Sub 'eo-rcm-sg-scatter-every-monday-${Environment}'
Description: scatter on once per week on Monday interval
State: ENABLED
State: DISABLED
ScheduleExpression: 'cron(0 8 ? * MON *)'
Targets:
- Arn: !GetAtt [ScatterFunction, Arn]
Expand Down Expand Up @@ -448,7 +448,7 @@ Resources:
Properties:
Name: !Sub 'eo-sg-rcm-parquet-every-tuesday-${Environment}'
Description: geocore to parquet on once per week on every Tuesday interval
State: ENABLED
State: DISABLED
ScheduleExpression: 'cron(0 8 ? * TUE *)'
Targets:
- Arn: !GetAtt [GeocoretoParquetFunction, Arn]
Expand Down
2 changes: 1 addition & 1 deletion docs/cloudformation/geocore-eo-sentinel1-harvester.yml
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ Resources:
FunctionName: !Ref CollectorFunction
Action: 'lambda:InvokeFunction'
Principal: 'events.amazonaws.com'
SourceArn: !GetAtt CollectorFunction.Arn
SourceArn: !GetAtt CollectorFunctionRule.Arn



Expand Down

0 comments on commit b428d43

Please sign in to comment.