You can integrate with the Amazon API Gateway using SnapLogic’s built-in capability to generate Open API specs. Here’s the set of steps to perform this task:
Step 1: In the usual manner, once you have a pipeline developed that conforms to the Ultra Pipeline Standards, an Ultra task can be created in SnapLogic
Step 2: Following this, you can generate an Open API spec from within SnapLogic that documents the Ultra task. Ensure that the method type is POST and not GET based on the pipeline’s design
Step 3: Now, on the Amazon API Gateway side, you can create an API from this Swagger spec
Step 4: Next, on the API setup page,
- Select HTTP as value for Integration type
- Check Use HTTP Proxy integration
- Select POST as the HTTP method
- Set SnapLogic Ultra task URL for Endpoint URL
Note: The Snaplex that is being used to run the Ultra pipeline would need to be configured to use an Ultra Load Balancer if you intend to invoke it from outside of SnapLogic
Step 5: On the Method Execution > Method Request page, define URL Query String Parameters (if any) and HTTP Request Header (to pass the SnapLogic Bearer token. key for this header is: Authorization)
Step 6: At this point, the API can be deployed and a Gateway URL will be generated
Step 7: To interact with the SnapLogic Ultra pipeline, the Gateway URL can be used to make POST requests.
Sample invocation using the Gateway URL:
https://my-gateway-URL.amazonaws.com/Stage_Name/SnapLogic_Ultra_Task_From_Swagger?bearer_token=<>