Namespace src/Aws

src/Aws

Overview

Directory src/Aws

file source src/Aws/imageExists.sh

Aws::imageExists

Checks if image exists with tags provided on AWS ecr best practice: provide tags ’tagPrefix_shortSha’ ’tagPrefix_branchName' so image will be tagged with

  • tagPrefix_shortSha
  • tagPrefix_branchName
Arguments
  • $1 (repositoryName:String): eg:889859566884.dkr.ecr.eu-west-1.amazonaws.com/bast-tools-dev-env
  • (tags:String[]): list of tags used to check if image exists on AWS ECR
Exit codes
  • 1: if no tag provided
  • 2: if at least one tag does not exist
Output on stderr
  • diagnostics information is displayed
Requires
  • Aws::requireAwsCommand

src/Aws/requireAwsCommand.sh

file source src/Aws/requireAwsCommand.sh

Aws::requireAwsCommand

ensure command aws is available

Exit codes
  • 1: if aws command not available
Output on stderr
  • diagnostics information is displayed
Or, if you want, you can alternatively use the GitHub discussion Q&A for feedback and questions.