This is an AWS Lambda that downloads the NORAD daily amateur radio satellite TLE data from the Celestrak Amateur Satellite Data File and stores it in S3 for use by the ADIF Processor.
Use sbt assembly
to create the jar with dependencies. You will need to set the
permission environment variables AWS_ACCESS_KEY_ID
and AWS_SECRET_ACCESS_KEY
within the shell that you run the command so the test to upload to the S3 bucket works.
The script create-lambda.sh will create the lambda. You will need
to define the role lambda-executor
in AWS with permission policy AWSLambdaRole
and permission to access
the S3 repository such as AmazonS3FullAccess
then use aws configure
setup AWS cli with an account with permissions to create a lambda.
The lambda needs to be triggered once a day to download the latest TLE data. This can be done using AWS Event Bridge. Create a new rule with the following information:
- Name:
norad-tle-lambda-daily-trigger
- Description: Triggers the download of NORAD Amateur Satellite TLE data for the ADIF Processor every day.
- Select
Schedule
option. - Select
A schedule that runs at a regular rate, such as every 10 minutes.
- Enter rate of
1 days
- Select Target 1 of
AWS Service
- Choose
Lambda Function
- Select the
norad-tle-lambda
That's it, other than to check that the lambda is invoked correctly and puts the TLE data with the right date
in the S3 adif-processor/norad
bucket.