How to create a private AWS Api Gateway using cloudformation?


I am trying to create an AWS API Gateway of PRIVATE type,
This requires a resource policy, which I have as I’m able to create the gateway from the AWS Console,
I wanted to know how I could add the resource policy via the CF template –

Following is the swagger definition of the resource policy –

How can I configure it in the CF template –

Reference –


You need to supply the policy under a key (called Policy at the same level as Name.

This needs to be supplied in the JSON format.

Something like…

Leave a Reply