1.3.1 • Published 8 months ago

aws-secret-to-env v1.3.1

Weekly downloads
-
License
MIT
Repository
github
Last release
8 months ago

CD Build

aws-secret-to-env

This JavaScript library aims to fetch access credentials stored in AWS service called AWS Secrets Manager and generate a .env file that contains the necessary environment variables for the development of your application.

Using

    $ npx aws-secret-to-env

When the library is called using the command above, it reads by default the .env.example file in the current directory, which must contain the following lines:

# service name exactly as defined in AWS Secrets Manager
SVC_NAME=

# Tokens found under "Command line or programmatic access"
AWS_ACCESS_KEY_ID=
AWS_SECRET_ACCESS_KEY_ID=
AWS_SESSION_TOKEN=

These lines are read to obtain the necessary information to access the AWS Secrets Manager.

If the developer wants the library to read another file, they can pass it as a parameter in the command call, for example:

    $ npx aws-secret-to-env --envFile .env.test

In this case, the library will read the .env.test file instead of the .env.example file.

1.2.8

10 months ago

1.3.1

8 months ago

1.3.0

8 months ago

1.2.7

11 months ago

1.2.6

11 months ago

1.2.5

1 year ago

1.2.4

1 year ago

1.2.3

1 year ago

1.2.2

1 year ago

1.2.1

1 year ago

1.2.0

1 year ago

1.1.1

1 year ago

1.1.0

1 year ago

1.0.0

1 year ago