Skip to content

0.13.0 enhancement for multiple repo creation

Compare
Choose a tag to compare
@maximmi maximmi released this 25 Feb 20:51
2868a6d

what

  • Added variables and outputs to create multiple repositories in AWS ECR.
  1. passing a list of docker images :
    list_image = ["redis", "nginx"]

  2. then get a map of image name to the repository :
    repository_url_map = {
    "redis" = "xxx.dkr.ecr.eu-west-1.amazonaws.com/redis"
    "nginx = "xxx.dkr.ecr.eu-west-1.amazonaws.com/nginx "
    }

why

  • it is convenient that if we could create multiple repositories at once by passing a list of docker images as an argument since AWS ECR assuming one repo per one docker image.