Coder Social home page Coder Social logo

nordcloud / assume-role-arn Goto Github PK

View Code? Open in Web Editor NEW
55.0 55.0 8.0 83 KB

🤖🎩assume-role-arn allows you to easily assume an AWS IAM role in your CI/CD pipelines, without worrying about external dependencies.

Go 95.57% Makefile 4.43%
aws aws-iam golang pipeline

assume-role-arn's People

Contributors

dependabot[bot] avatar dominik-filip avatar gzbd avatar jkrajniak avatar kevwargo avatar mescam avatar tdi avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

assume-role-arn's Issues

CLIv2 SSO profiles fail to authenticate

FATA[0005] failed to assume role error=“NoCredentialProviders: no valid providers in chain. Deprecated.\n\tFor verbose messaging see aws.Config.CredentialsChainVerboseErrors”

Newer AWS SDK versions address this issue, PR #129 would fix it

Errors when using binary from Macbook with M1 chip

When downloading the binary from releases and using it according to the guide I'm getting the following error:

xxx@xxx ~> eval $(assume-role-arn -profile xxx -verbose)                  
/usr/local/bin/assume-role-arn: line 1: syntax error near unexpected token `<'
/usr/local/bin/assume-role-arn: line 1: `<html><body>You are being <a href="https://github-releases.githubusercontent.com/xxx/uuid?X-Amz-Algorithm=xxx&amp;X-Amz-Credential=xxx&amp;X-Amz-Date=xxx&amp;X-Amz-Expires=xxx&amp;X-Amz-Signature=xxx&amp;X-Amz-SignedHeaders=xxx&amp;actor_id=xxx&amp;key_id=xxx&amp;repo_id=xxx&amp;response-content-disposition=attachment%3B%20filename%3Dassume-role-arn-osx&amp;response-content-type=application%2Foctet-stream">redirected</a>.</body></html>'

When following the redirect url I'm getting

<Error>
<Code>AccessDenied</Code>
<Message>Request has expired</Message>
<X-Amz-Expires>300</X-Amz-Expires>
<Expires>2021-08-09T06:07:12Z</Expires>
<ServerTime>2021-08-09T06:40:19Z</ServerTime>
<RequestId>xxx</RequestId>
<HostId>xxx/xxx</HostId>
</Error>

I've solved the problem after cloning the repository and building it locally. It could be related with the fact that I'm using Macbook with M1 chip (runtime.GOOS = darwin, runtime.GOARCH = arm64), while the binary is prepared for Intel chipset (GOOS = darwin, but no GOARCH in Makefile).

Maybe it would be nice to cross-compile and release the binaries for more OS/architectures?

Switch to GitHub Actions

Travis is making some unclear moves regarding open-source projects, let's switch to GitHub Actions.

Remember about TRAVIS_TAG in Makefile that needs to be replaced.

ignoreCache should ignore caching entirely

Even if you set ignoreCache, assume-role-arn is trying to cache the credentials. this should not happen. Now when you run the tool in e.g. alpine docker image you keep seeing these:

time="2019-12-01T22:58:57Z" level=error msg="failed to cache credentials" error="open /root/.cache/assume-role-be62a54dd201c68e3a76a37b682f78dd21bf46b31f781423d80606e252c53b96: no such file or directory"

Even though the -ignoreCache flag was passed.

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.