This is an example AWS Batch cloudformation stack. Batch is a way to run containerised jobs in a managed way. This stack uses Spotfleet.
npm install
- Create a stack with
npx cfn-config create staging cloudformation/template.json -c bucket -t bucket
- Needs an ECR and image pushed to the ECR. You can point to the image using the
ImageUrl
parameter in the cloudformation. - The task is in the task/ directory. You can build and push into ECR. Uses a basic osmlint example.
- Parameters to the task are passed through the lambda, in case you want to override the defaults.
- A lambda function with a schedule. This function should be archived and put on S3 using util/upload.sh. Example:
./util/upload.sh lambda bucket/key