Giter Site home page Giter Site logo

Comments (4)

jasobrown avatar jasobrown commented on September 27, 2024

Currently, there's nothing in the default implementation that allows you to use IAM. It's currently based off the credentials file. However, you can easily create an implementation of ICredential that fetches the accesskeyid/secretaccess key from the instance metadata (which is maintained via the IAM role that the instance launched with). It'd be even more awesome if you can submit a patch with that implementation, too!

from priam.

pcn avatar pcn commented on September 27, 2024

I'm OK with using the credentials file. I do like the idea of using instance metadata, or using instance-based IAMs in the future, but at the moment I'm just looking to create an IAM whose credentials are:

  • Less than access to everything the account has access to
  • able to deal with the necessary S3 functions that Priam will use
  • able to deal with the necessary SimpleDB operations that Priam will use
  • able to deal with any other permissions Priam will use that I may not know of.

Thanks,

-Peter

from priam.

jasobrown avatar jasobrown commented on September 27, 2024

Yeah, the instance metadata is much more flexible implementation than flat
files. Hence, that's what the concrete class for ICredential is pluggable;
we have a custom implementation at Netflix for our needs.

From what I gather about amazon IAMs, is that as long as the instance is
launched in a particular role, you can always get the current/updated keys
from the instance metadata URL, and that instance will have consistent
access to assigned resources as keys change/roll. Thus, I think if you have
an ICredential implementation that always uses the instance metadata
(whether or not you actually use IAM), you should be be good to go.

HTH,

-Jason

On Mon, Jun 25, 2012 at 11:19 AM, Peter N <
[email protected]

wrote:

I'm OK with using the credentials file. I do like the idea of using
instance metadata, or using instance-based IAMs in the future, but at the
moment I'm just looking to create an IAM whose credentials are:

  • Less than access to everything the account has access to
  • able to deal with the necessary S3 functions that Priam will use
  • able to deal with the necessary SimpleDB operations that Priam will use
  • able to deal with any other permissions Priam will use that I may not
    know of.

Thanks,

-Peter


Reply to this email directly or view it on GitHub:
#32 (comment)

from priam.

jasobrown avatar jasobrown commented on September 27, 2024

Add the IAMCredential class a few weeks ago, that should fetch the IAM credentials via the amazon sdk jar. Hope that helps.

from priam.

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.