Giter VIP home page Giter VIP logo

sts-output-credential's Introduction

sts-output-credential

sts-output-credential is output aws credential tool.

Run aws sts assume-role and create .aws/credentials

Use

Run and confirm example dir.

$ ls -al example

Oneshot

$ docker run \
  -v `pwd`/data:/workspace/.aws \
  -e AWS_ACCESS_KEY_ID=[YOUR ACCESS KEY] \
  -e AWS_SECRET_ACCESS_KEY=[YOUR SECRET ACCESS KEY] \
  iwanomoto/sts-output-credential \
  [YOUR ROLE ARN]

Daemon

$ docker run \
  -v `pwd`/data:/workspace/.aws \
  -e AWS_ACCESS_KEY_ID=[YOUR ACCESS KEY] \
  -e AWS_SECRET_ACCESS_KEY=[YOUR SECRET ACCESS KEY] \
  -e DAEMON=1 \
  iwanomoto/sts-output-credential \
  [YOUR ROLE ARN]

Environment Role ARN

$ docker run \
  -v `pwd`/data:/workspace/.aws \
  -e AWS_ACCESS_KEY_ID=[YOUR ACCESS KEY] \
  -e AWS_SECRET_ACCESS_KEY=[YOUR SECRET ACCESS KEY] \
  -e ROLE_ARN=[YOUR ROLE ARN] \
  iwanomoto/sts-output-credential

Environment

  • ROLE_ARN: Require
    • The first argument or Set Environment variable.
  • CREDENTIAL_FILE: Option
    • Write credential keys file (Default ./.aws/credentials)
  • DAEMON: Option
    • Daemon mode flag. (Default 0)
  • INTERVAL_TIME: Option
    • Daemon mode option. Run sts command Interval. (Default 1800)

Use Case

Share credential data on docker-compose.

docker-compose.yml

version: "3"
volumes:
  aws-credential:
services:
  sts-output-credential:
    build: .
    env_file:
      - ./config/aws.env
    environment:
      - DAEMON=1
      - ROLE_ARN=[YOUR ROLE ARN]
    volumes:
      - aws-credential:/workspace/.aws
  aws-cli:
    image: mesosphere/aws-cli
    volumes:
      - aws-credential:/root/.aws
$ docker-compose up -d sts-output-credential
$ docker-compose aws-cli s3 ls

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.