diff --git a/aws-lambda/README.md b/aws-lambda/README.md index 2e50924..7d48640 100644 --- a/aws-lambda/README.md +++ b/aws-lambda/README.md @@ -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 @@ -24,6 +25,6 @@ docker tag synop2bufr-lambda:latest :latest docker push :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. \ No newline at end of file +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.