GithubHelp home page GithubHelp logo

tb0hdan / ssm-env-all Goto Github PK

View Code? Open in Web Editor NEW
3.0 4.0 0.0 7 KB

Get ALL environment variables from Amazon Parameter Store

License: BSD 2-Clause "Simplified" License

Makefile 2.59% Go 91.11% Shell 6.30%
amazon ecs ssm security parameter-store production

ssm-env-all's Introduction

ssm-env-all

Get ALL environment variables from Amazon Parameter Store Used in production (mic drop)

SSM Doc

https://aws.amazon.com/blogs/compute/managing-secrets-for-amazon-ecs-applications-using-parameter-store-and-iam-roles-for-tasks/

Usage:

AWS Go SDK will load credentials that were previously set using awscli, the only thing that has to be specified is AWS_REGION.

AWS_REGION=us-east-1 ./ssm-env-all ./test.sh

Multiple paths and script arguments

AWS_REGION=us-east-1 ./ssm-env-all -path /common,/develop ./test.sh arg1 arg2 arg3

Ignoring authentication errors (not recommended)

AWS_REGION=us-east-1 SSM_IGNORE_ERRORS=1 ./ssm-env-all env

or

AWS_REGION=us-east-1 ./ssm-env-all -ignore-errors env

Dockerfile (sample)

FROM alpine:latest

# Prepare entrypoint to populate env variables from AWS Parameter store
# ssm-env-all should get comma separated list of paths via the 'SSM_PATH' variable,
# e.g. SSM_PATH="/develop/generic,/develop/be"
RUN apk update && apk upgrade && apk add --update curl
RUN curl -L https://<>/ssm-env-all.linux.amd64 > /usr/local/bin/ssm-env-all && chmod +x /usr/local/bin/ssm-env-all
ENTRYPOINT ["/usr/local/bin/ssm-env-all"]

# # Execute service
CMD [ "yourapp", "start" ]

Building

make

Thanks

https://github.com/remind101/ssm-env

ssm-env-all's People

Contributors

tb0hdan avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.