CI / CD Automation
We provide an example script for you to trigger the following action on your behalf
- Use CodeBuild to trigger the initial pull of the target IAMbic container image
- Update CloudFormation template to the desired version of the container image
- In turns, CloudFormation will update the image used by the AWS Lambda.
You have to set the IAMBIC_TARGET_VERSION environment variable to use updater because
we want to ensure you can reproduce the specific deployment despite changes in IAMbic upstream.
ClickOps way
- Identify the version you want to upgrade to at IAMbic repo. (You may need to click on "Image Tags")

- Log into your AWS Account with the deployed IAMbic GitHub integration
- Visit AWS CodeBuild
- Click on the project named
iambic_code_build - Click on "Start build with overrides"

- Expand "Environment variables overrides" and modify "IMAGE_TAG" to the version you want, and then hit the "Start build" button.

- Wait for the build to be successful

- Visit Amazon Elastic Container Registry
- Click on the repo named "iambic-ecr-public/iambic/iambic"
- Verify the version now exist in your repository

- Visit AWS Lambda to examine the deployed function version.
- Scroll down and select "Deploy new image"

- Select "Browse Images" button

- Select ECR Repo named "iambic-ecr-public/iambic/iambic"

- Select the ECR Image version you wish to deploy and then hit "Select Image" button

- Hit the "Save" button
