create-ream-entrypoint
v1.3.0
Published
This is a simple CLI aiming to help creating a **entrypoint** for your dockerfiles that injects environment variables from **AWS Secrets Manager**
Downloads
22
Readme
create-ream-entrypoint
This is a simple CLI aiming to help creating a entrypoint for your dockerfiles that injects environment variables from AWS Secrets Manager
Dependencies
You must have installed the aws-cli
and configured your aws-credentials
in order to run it from your local environment, also, you must have the npx
tool instaled (it comes for default when you install npm
with nodejs
and so on)
Your project must have a Dockerfile (or dockerfile) containing at least a FROM, COPY, RUN, CMD commands (all of the four) to be considered a project that can be migrated to the entrypoint pattern
NOTE: It can change in the future, as this pattern is being defined as we talk here (02/28/2023)
Usage
First, execute the command npx --yes create-ream-entrypoint@latest
on the folder you want to create the entrypoint, after that, it is done!
Simple as that
NOTE: Is considered that your project does have a JSON entry at
AWS Secrets Manager
service, and the name of the secret bundle is the name of your project, example:
Currently Supported Project Shapes
NodeJS/Javascript/Typescript/ECMAScript Environment
Supported by infeering the project by checking the existence of the package.json
file
Python
Supported by infeering the project by checking the existence of the requirements.txt
file
PYTHON: Currently, as python projects do not have explicit files containing the project name, you must inform the name on the prompt (by default, the current folder name)