Coder Social home page Coder Social logo

Comments (5)

abraithwaite avatar abraithwaite commented on June 10, 2024

Sounds like you need to ensure the IAM role has access to all regions.

I believe you can use a * for the region in the ARN for the permission. [1][2]

You can then either let chamber infer it's own region using the Metadata API or keep AWS_REGION set to the current region instead of the region you created the parameter in.

@ejcx and @dfuentes, please correct me if I'm wrong.

[1] https://aws.amazon.com/blogs/mt/the-right-way-to-store-secrets-using-parameter-store/
[2] http://docs.aws.amazon.com/systems-manager/latest/userguide/sysman-paramstore-access.html

from chamber.

ejcx avatar ejcx commented on June 10, 2024

Yuck! I don't think we considered this too much.

I think the easy fix is to have an extra ENV var like you pointed out, or some other mechanism so you don't clobber your AWS_REGION variable.

I can also think of a kind of hacky way to do this where you export the secrets to an encrypted file (with a key that is generated on the fly). Then there are more ways to run your program than just chamber exec and it can still be secure and you avoid clobbering your region.

@dfuentes is honestly the sane one here though =]. Ill chat with him about it.

from chamber.

opb avatar opb commented on June 10, 2024

Hey, thanks for the responses. I had a think about some kind of wrapper around chamber exec, but thought I'd bring up the env var suggestion, as it's a fair bit less work ;)

Thanks

from chamber.

dfuentes avatar dfuentes commented on June 10, 2024

Totally seems reasonable to add an override environment variable. I will draft up a PR for this

from chamber.

opb avatar opb commented on June 10, 2024

Thanks so much for this!

from chamber.

Related Issues (20)

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.