Skip to content

Latest commit

 

History

History
30 lines (19 loc) · 1.23 KB

README.md

File metadata and controls

30 lines (19 loc) · 1.23 KB

Using synop2bufr on AWS Lambda

Overview

AWS Lambda is a service from Amazon that enables publishing code which is executed as on demand functions.

This directory contains a Dockerfile and example AWS Lambda function code that will run the synop2bufr transformation on files received in S3.

AWS Lambda container

The Dockerfile in this directory will build the container image that can be used to run synop2bufr on AWS Lambda.

build and deploy

docker build -t synop2bufr-lambda .

Once built, you then need to deploy to ECR.

Depending on environment permissions, you may need to create a ECR repo with appropriate policies first.

aws ecr get-login-password --region <region> | docker login --username AWS --password-stdin <aws-account-id>.dkr.ecr.us-east-1.amazonaws.com
docker tag synop2bufr-lambda:latest <ECR repo url>:latest
docker push <ECR repo url>:latest

In the AWS console, you can then create an AWS Lambda function using the URI for this container image. Setup your AWS Lambda function to be triggered by the S3 bucket where your synop files are stored.

The example AWS Lambda function will run the synop2bufr transformation on the file stored in S3 and write the output to the wis2box-public bucket.