@thangkieu/tools
v0.0.1
Published
### Deploy an Image to ECR
Downloads
1
Readme
Useful Tools for my projects
Deploy an Image to ECR
- Prepare your envs
In order to run this command, these environment variables should be available
SOURCE_AUTH_KEY= # To login to source image registry, leave it blank if it's a local image
SOURCE_REGISTRY= # To login to source image registry, leave it blank if it's a local image
SOURCE_IMAGE=
# ECR to deploy to
ACCOUNT_ID=
AWS_REGION=
IMAGE_TAG=
IMAGE_NAME=
# credentials to login to ECR
AWS_ACCESS_KEY_ID=
AWS_SECRET_ACCESS_KEY=
AWS_SESSION_TOKEN=
Run deploy command
There are 2 ways of adding environment variables when running the command:
ENV_NAME=ENV_VALUE npx @thangkieu/tools deploy
npx @thangkieu/tools deploy --env-file [path-to-env-file]