我看到 AWS ApiGateway 现在提供了将阶段变量传递给控制台中的自定义授权 lambda 的能力,方法是选择“请求”类型的有效负载并列出应该传递的变量。
但是,我们仅通过 Terraform 创建我们的 AWS 资源(不允许手动干预),Terraform 文档目前说:
type - (Optional) The type of the authorizer. TOKEN is currently the only allowed value. Defaults to TOKEN.
有没有办法以编程方式强制有效负载类型为“请求”,并传入阶段变量?