diff --git a/infrastructure/terraform/lambda/engine/README.md b/infrastructure/terraform/lambda/engine/README.md deleted file mode 100644 index 5bb10627..00000000 --- a/infrastructure/terraform/lambda/engine/README.md +++ /dev/null @@ -1,50 +0,0 @@ -## Checklist for adding a new Lambda - -### 1. Create the Lambda scaffold -- Copy the template: - - `cp -r lambda/_template lambda/` - ---- - -### 2. Add infrastructure prerequisites (shared stack) -- Add a new ECR repository in: - - infrastructure/terraform/shared/main.tf - -- Create a PR to deploy this to main then dev in order to deploy the shared stack - -- Verify the ECR repository exists in AWS - ---- - -### 3. Add Docker build configuration -- Create a `Dockerfile` for the Lambda -- Verify the Dockerfile path and build context -- Add a new image build job in `deploy_terraform.yml` using `_build_image.yml` - ---- - -### 4. Wire the Lambda deploy job (CI) -- Add a deploy job using `_deploy_lambda.yml` -- Ensure the deploy job depends on the image build job - ---- - -### 5. Deploy -- Push changes to GitHub -- CI will: - 1. Build and push the Docker image - 2. Deploy the Lambda - 3. Verify everything deployed. Good things to check: - - ECR with image - - SQS - - Trigger SQS - - Cloud watch logs ---- -### 5. Delete - 1. Delete README if you used cp -r - ---- - -## Please feel free to update this document to make it easier for the next person \ No newline at end of file