Deployment Guide
This project has no CI/CD pipeline. The API is deployed manually.
Make sure to create an ECR repository before terraforming the API.
You can find more information on creating an ECR repository here.
Note down the ECR repository URI as you will need it for the Terraform code and pushing the Docker image.
Your URI should be in the format: <aws_account_id>.dkr.ecr.<aws_region>.amazonaws.com/<repository_name>
.
For example: 999999999999.dkr.ecr.eu-west-2.amazonaws.com/tech-audit-tool-api
.
Containerising the API
Change directory into the aws_lambda_script
directory:
Make sure to version your container images, using this format: v<major>.<minor>.<patch>
.
More information about Versioning Semantics can be found here.
Build the Docker image with ECR repository URI as the name.
Push the Docker image to the ECR repository:
You can now find that image with that version tag in the ECR repository.
Edit this URL with your ECR repository URI and region details to visit the repository (make sure you're logged in):