RebeccaCode
7 years agoNew Contributor
Amazon API Gateway Lambda Sync: Invalid REST API identifier specified
I am unable to sync my SwaggerHub API with Amazon API Gateway Lambda Sync. I have created an extremely simple API in order to learn the process. SwaggerHub says my definition is valid but the Amazon API Gateway Lambda Sync Integration fails with this message:
Integration Issues
Error publishing API to Amazon API Gateway: Not Found {"logref":"aaf062d9-c5a0-11e8-a731-937528ad08c4","message":"Invalid REST API identifier specified 550433900038:lambdasync"}
Here is my API definition:
swagger: '2.0' info: description: This is a simple API version: 1.0.0 title: Simple Inventory API paths: /inventory: get: produces: - application/json responses: 200: description: search results matching criteria schema: type: array items: $ref: '#/definitions/InventoryItem' 400: description: bad input parameter definitions: InventoryItem: type: object properties: id: type: string name: type: string host: virtserver.swaggerhub.com basePath: /ea/lambdasync/1.0.0 schemes: - https
Here is my integration configuration:
Thanks for any assistance!
Rebecca
P.S. -- My company pays for SwaggerHub and there is a Chat button at the top of my SwaggerHub page. Unfortunately Chat isn't working -- it never connects, just says Connecting ...
The answer was in front of me all along -- leave the name of the API blank. If the name of the API is not blank the tool looks for that API in AWS and will fail if the API is not found. If the name is blank the tool will create or update the API based on the name in the Swagger definition.