Amazon API Gateway用户密钥 [英] Amazon API Gateway User keys

查看:125
本文介绍了Amazon API Gateway用户密钥的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在AWS API Gateway上部署了API.我将有多个使用我的API的订阅者,每个客户都是唯一的.每个客户都有可能拥有一个唯一的独特的API密钥吗?还是我必须创建那么多IAM用户才能使其唯一?如果对于IAM用户为是,那么用户数量的上限是多少?我将以编程方式进行所有操作.

I have an API deployed on AWS API Gateway. I will have multiple subscribers using my API and each customer would be unique. Is it possible that each customer will have a separate API key unique to him? Or will I have to create those many IAM users in order for them to be unique? If yes for the IAM users, then what is the upper limit of the number of users? I will be doing all this programmatically.

推荐答案

通过独特的方式,如果您的意思是您应该能够确定哪个请求来自谁,则可以为每个订阅者生成一个API密钥.每个AWS账户最多可以生成10000个API密钥.有关API密钥的更多详细信息,请此处.

By unique, if you mean that you should be able to identify which request came from who, then you can generate one API Key per subscriber. You can generate up to 10000 API keys per AWS account. More details about API keys here.

通过唯一,如果您是说每个订阅者都应有权访问一组独特的API资源/方法/阶段,则可以创建具有不同权限级别的不同IAM角色,并让订阅者承担这些角色.每个帐户最多可以创建250个角色. 此处.

By unique, if you mean that each subscriber should have access to a unique set of API resources/methods/stages, then you can create different IAM roles with different levels of permissions and let the subscribers assume the roles. You can create up to 250 roles per account. More details about access permissions here.

这篇关于Amazon API Gateway用户密钥的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆