Search code examples
amazon-web-servicesaws-api-gatewayaws-cdkaws-event-bridge

Attach resource policy to HttpApi in CDK (alpha)


I'm targeting an API Gateway endpoint from AWS EventBridge. Documentation says I should add a resource policy to the API endpoint. But as I'm using the new ApiGatewayV2, there doesn't seem to be anything that would allow adding a resource policy to a HttpApi.


Solution

  • Api Gateway v2 does not support resource policy authorization.

    It is a general constraint, not one imposed by the CDK.