serverless-ecr-login
v1.0.2
Published
A small Serverless plugin for ECR authentication
Downloads
186
Maintainers
Readme
Serverless ECR Login
This repository contains a small Serverless plugin to automatically login to ECR for Docker image deployments.
Normally the Serverless framework will handle logins automatically, but there are occasionally bugs (12895 and 13116) which cause this to not work. Using this plugin can act as a workaround for these issues.
Installation
This plugin is available via npm, so it can be installed as usual:
$ npm i --save-dev serverless-ecr-loginThere's no need to include it in your production bundle, so make sure it's saved inside the development dependencies. Once installed, make sure to add it to your Serverless plugins list:
plugins:
- serverless-ecr-loginThe location within the plugin list shouldn't matter, as it monitors the framework lifecycle for activation. Docker login will automatically occur prior to deployment.
Compatibility
This plugin has been tested against the Serverless v4 release, but will likely work with many Serverless versions as it mainly uses the AWS CLI exposed by the framework. If you have any issues, please do file an issue!
