1.0.5 • Published 10 months ago

@thangkieu/tools v1.0.5

Weekly downloads
-
License
ISC
Repository
-
Last release
10 months ago

Useful Tools for my projects

Deploy an Image to ECR

  1. 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=
  1. Run deploy command

    There are 2 ways of adding environment variables when running the command:

    1. ENV_NAME=ENV_VALUE npx @thangkieu/tools deploy

    2. npx @thangkieu/tools deploy --env-file [path-to-env-file]

1.0.5

10 months ago

1.0.4

10 months ago

0.0.1

2 years ago