【问题标题】:Enable IAM authorization on HTTP API Gateway from CDK从 CDK 对 HTTP API 网关启用 IAM 授权
【发布时间】:2022-01-18 23:19:10
【问题描述】:

在 HTTP(不是 REST)API 网关 API 中创建路由时,我是来自控制台或 CLI 的 able to require IAM authorization

我无法从 CDK 中弄清楚如何做到这一点。 authorizer 参数需要一个IHttpRouteAuthorizer,而我看到的唯一实现是HttpJwtAuthorizerHttpLambdaAuthorizerHttpUserPoolAuthorizerHttpNoneAuthorizer,似乎都没有对应于简单的 IAM 授权。

我需要做什么来配置路由以使用来自 CDK 的 IAM 授权?

【问题讨论】:

    标签: aws-api-gateway amazon-iam aws-cdk


    【解决方案1】:

    HTTP API 在 CDK 中仍处于试验阶段。并非所有功能都具备。

    也就是说,HttpIamAuthorizer 目前是 under development 并且非常接近合并。

    【讨论】:

      猜你喜欢
      • 2021-03-19
      • 2022-10-13
      • 2015-12-26
      • 1970-01-01
      • 2017-08-19
      • 2019-03-16
      • 2018-11-19
      • 1970-01-01
      • 2019-07-04
      相关资源
      最近更新 更多