Coder Social home page Coder Social logo

kaholo-plugin-ecr's Introduction

kaholo-plugin-ecr

AWS ECR plugin for Kaholo This plugin is based on aws-sdk API and you can view all resources on github

Method: Describe Repositories

This method calls ECR describeRepositories

Parameters

  1. Access Key - This is a parameter taken from the vault to access AWS
  2. Secret Key - This is a paramer taken from the vault to access AWS
  3. Region - Select a region from the appeard list.
  4. Registry ID - The AWS account ID associated with the registry that contains the repositories to be described. If you do not specify a registry, the default registry is assumed.

Method: Get Authorization Token

This method calls ECR getAuthorizationToken. Additionally in order to allow easier working with it, an additional parsing is being done to the reponse which adds the following fields to each authorizationData object:

  • decodedToken - Object containing the parsed host, user, password
  • baseDockerLoginCommand - A base docker login command which can be used later for connecting your docker daemon. In the format: docker login --username ${user} --password "${password}" ${host}

Parameters

  1. Access Key - This is a parameter taken from the vault to access AWS
  2. Secret Key - This is a paramer taken from the vault to access AWS
  3. Region - Select a region from the appeard list.
  4. Registry IDs (String | Array) - The registry IDs you wish to generate authorization token for.

Method: Push Image To Repo

This method is a wrapper for docker-cli. And therefore the docker-cli must be preinstalled on the agent.

The method is doing the following:

  • docker login to ECR repository
  • docker push - Push the namespaced tag to the ECR repository
  • docker logout - To remove the ECR credentials

Parameters

  1. Access Key - This is a parameter taken from the vault to access AWS
  2. Secret Key - This is a paramer taken from the vault to access AWS
  3. Region - Select a region from the appeard list.
  4. Registry ID - The AWS account ID associated with the registry that contains the repositories.
  5. Repository Name - The name of the repository inside the registry
  6. Image - The host, name and tag of the image you wish to push. For example <account_id>.dkr.ecr..amazonaws.com/<repo_name>:

Method: Pull Image From Repo

This method is a wrapper for docker-cli. And therefore the docker-cli must be preinstalled on the agent.

The method is doing the following:

  • docker login to ECR repository
  • docker pull - Pull the namespaced tag from the ECR repository
  • docker logout - To remove the ECR credentials

Parameters

  1. Access Key - This is a parameter taken from the vault to access AWS
  2. Secret Key - This is a paramer taken from the vault to access AWS
  3. Region - Select a region from the appeard list.
  4. Registry ID - The AWS account ID associated with the registry that contains the repositories.
  5. Repository Name - The name of the repository inside the registry
  6. Image - The host, name and tag of the image you wish to push. For example <account_id>.dkr.ecr..amazonaws.com/<repo_name>:

kaholo-plugin-ecr's People

Contributors

kdebowski-kaholo avatar amiton11 avatar ilanyaniv avatar kadosh1000 avatar kszemi avatar

Watchers

James Cloos avatar Mateusz avatar  avatar Dawid Zegar avatar  avatar  avatar

Forkers

trykaholo

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.