Skip to content

Launches a subprocess with AWS IAM assumed role credentials

Notifications You must be signed in to change notification settings

willchertoff/aws-assume-run

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Motivation

aws sts assume-role is a pain because it requires parsing the output and passing the parsed credentials to the subsequent command.

aws-assume-run launches a subprocess with AWS IAM assumed role credentials. Think envconsul for AWS IAM Roles.

Install

go get -u github.com/fundingcircle/aws-assume-run

Usage

aws-assume-run [role-arn-to-assume] [cmd] [params...]

Examples

Access s3 bucket via role

aws-assume-run arn:aws:iam::121634321:role/bucket-reader aws s3 ls bucket-role-has-access-to

Update a kubeconfig for a cluster in another account.

aws-assume-run arn:aws:iam::121634321:role/eks-service-role aws eks update-kubeconfig --name dev-eks

Building

Build for release.

make VERSION=v1.0.1 release -j2

About

Launches a subprocess with AWS IAM assumed role credentials

Resources

Stars

Watchers

Forks

Packages

No packages published