How do I apply a resource policy to a Private API Gateway deploy

If I try to deploy with config.api.endpoint_type = 'PRIVATE' then it appears that the CloudFormation stack deploy fails because Private REST API doesn't have a resource policy attached to it (Service: AmazonApiGateway; Status Code: 400; Error Code: BadRequestException; Request ID: **********). I can’t find anything in the documentation suggesting how I’d apply the required ResourcePolicy.

Any assistance / guidance would be greatly appreciated.

Interesting, actually haven’t tried config.api.endpoint_type = 'PRIVATE' yet.

Will have to add the ability to add a ResourcePolicy and associate it with the API Gateway. Unsure when will dig into this. Will consider PRs. Wanted to answer your question though.

2 Likes

Done in

2 Likes