Coder Social home page Coder Social logo

Comments (2)

stephswo avatar stephswo commented on August 21, 2024

Unfortunately, IAM has no way of knowing if a service supports any of the AWS global condition keys today. The IAM team is aware of this problem, but right now, the only way to know is to check the service documentation sets and hope that they documented them. You can find the landing page for each service doc set on the following docs website: https://docs.aws.amazon.com

The WorkDocs link that you provided is the page in the IAM documentation. This is different than the service documentation that you can find using the link above. If a global (aws:) key is not in these pages, then the service team hasn't told IAM. Links on these IAM pages direct you to the global condition keys because that service DOES support using the keys for all services listed at the top of the page.

Specific to aws:RequestedRegion, I did a Google search:
aws:RequestedRegion site:docs.aws.amazon.com
And the only service that came up was EC2:
https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ExamplePolicies_EC2.html#iam-example-region

So the answer is, there is no list. Anywhere. Limited availability means that the only way you can learn whether a service supports these keys is to search the service's documentation. IAM makes these keys available to other services and recommends that they implement them. Those services can choose to support them, but they don't tell IAM. There is no centralized list, and no guarantee that the service even documents the keys if they do support them. Every service in AWS (140+) acts independently.

I can tell you that we know it's a problem. We've improved a similar situation with helping customers learn which actions, resource types, and service-specific condition keys that services support for IAM policies. The page you mentioned is a result of that fix. We now require services to programmatically provide all of the information that you see on the Actions, Resources, and Condition Keys pages: https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies_actions-resources-contextkeys.html

These pages all come from the service data and are automatically generated.

from iam-user-guide.

ExSport avatar ExSport commented on August 21, 2024

@stephswo Thanks for your answer.
Sure, WorkDocs example was taken from service docs but I posted one of the mentioned guides which referenced condition or aws: string.
From your points I understand there is no way how to find out supported services, no official list of them. By reading this post it seems this global key is not service dependent as it restricts API calls to specific regions only.
Comparing all existing documentations it is not clear what is the right answer now.
Thanks for clarifying it a little bit 👍

from iam-user-guide.

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.