Samin Siddiqui
Samin Siddiqui

Reputation: 51

providing vpc end point in aws api gateway cloudformation

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

Answers (1)

Marcin
Marcin

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

Related Questions