Reputation: 51
I am not finding any details on how I can add vpc end points in my cloud formation for api gateway. This is my cfn template, I can provide endpointconfiguration as Private but I can't seem to add vpce details. I can update api through console but I want it to be updated through cloud formation.
"TestApi": {
"Type": "AWS::Serverless::Api",
"Properties": {
"StageName": {"Ref": "ApiStageName"},
"EndpointConfiguration": "PRIVATE"
}
}
Upvotes: 0
Views: 506
Reputation: 238985
The EndpointConfiguration has the form of:
Type: String
VPCEndpointIds: List
So using VPCEndpointIds
you can provide the VPC interface endpoints IDs for your private API.
Upvotes: 1