Skip to main content

CI / CD Automation

We provide an example script for you to trigger the following action on your behalf

  1. Use CodeBuild to trigger the initial pull of the target IAMbic container image
  2. Update CloudFormation template to the desired version of the container image
  3. In turns, CloudFormation will update the image used by the AWS Lambda.

Sample Python Script

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

  1. Identify the version you want to upgrade to at IAMbic repo. (You may need to click on "Image Tags")
  2. Log into your AWS Account with the deployed IAMbic GitHub integration
  3. Visit AWS CodeBuild
  4. Click on the project named iambic_code_build
  5. Click on "Start build with overrides"
  6. Expand "Environment variables overrides" and modify "IMAGE_TAG" to the version you want, and then hit the "Start build" button.
  7. Wait for the build to be successful
  8. Visit Amazon Elastic Container Registry
  9. Click on the repo named "iambic-ecr-public/iambic/iambic"
  10. Verify the version now exist in your repository
  11. Visit AWS Lambda to examine the deployed function version.
  12. Scroll down and select "Deploy new image"
  13. Select "Browse Images" button
  14. Select ECR Repo named "iambic-ecr-public/iambic/iambic"
  15. Select the ECR Image version you wish to deploy and then hit "Select Image" button
  16. Hit the "Save" button