Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
tomkralidis authored Oct 18, 2023
1 parent 7f9fd63 commit c81825c
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions aws-lambda/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,18 +4,19 @@

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

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

## lambda container
## AWS Lambda container

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

# build and deploy
```bash
docker build -t synop2bufr-lambda .
```

Once built, you need to deploy to ECR.
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.

```bash
Expand All @@ -24,6 +25,6 @@ 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 lambda function to be triggered by the S3 bucket where your synop files are stored.
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 lambda-function will run the synop2bufr-transformation on the file stored in S3 and write the output to the 'wis2box-public' bucket.
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.

0 comments on commit c81825c

Please sign in to comment.