Skip to content

Commit

Permalink
env file, python 3.12, boto upgrade, only one schedule
Browse files Browse the repository at this point in the history
  • Loading branch information
asjohnston-asf committed Apr 17, 2024
1 parent ad4c0e8 commit f3bb089
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 19 deletions.
24 changes: 6 additions & 18 deletions cloudformation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ Resources:
Handler: fetcher.lambda_handler
MemorySize: 128
Role: !GetAtt Role.Arn
Runtime: python3.11
Runtime: python3.12
Timeout: 600

EventInvokeConfig:
Expand All @@ -97,31 +97,19 @@ Resources:
Qualifier: $LATEST
MaximumRetryAttempts: 0

PoeorbSchedule:
Schedule:
Type: AWS::Events::Rule
Properties:
ScheduleExpression: "rate(11 minutes)"
Targets:
- Arn: !GetAtt Lambda.Arn
Id: lambda
Id: AUX_POEORB
Input: '{"orbit_type": "AUX_POEORB"}'

ResorbSchedule:
Type: AWS::Events::Rule
Properties:
ScheduleExpression: "rate(11 minutes)"
Targets:
- Arn: !GetAtt Lambda.Arn
Id: lambda
Id: AUX_RESORB
Input: '{"orbit_type": "AUX_RESORB"}'

PreorbSchedule:
Type: AWS::Events::Rule
Properties:
ScheduleExpression: "rate(11 minutes)"
Targets:
- Arn: !GetAtt Lambda.Arn
Id: lambda
Id: AUX_PREORB
Input: '{"orbit_type": "AUX_PREORB"}'

EventPermission:
Expand All @@ -130,4 +118,4 @@ Resources:
FunctionName: !GetAtt Lambda.Arn
Action: lambda:InvokeFunction
Principal: events.amazonaws.com
SourceArn: !Sub "arn:aws:events:${AWS::Region}:${AWS::AccountId}:rule/*"
SourceArn: !GetAtt Schedule.Arn
9 changes: 9 additions & 0 deletions environment.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
name: sentinel1-orbits
channels:
- conda-forge
- nodefaults
dependencies:
- python=3.12
- pip
- pip:
- -r requirements.txt
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
boto3==1.28.75
boto3==1.34.86
requests==2.31.0

0 comments on commit f3bb089

Please sign in to comment.