Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New pattern: aws-apigateway-sagemakerendpoint #75

Closed
1 of 2 tasks
dscpinheiro opened this issue Sep 23, 2020 · 1 comment
Closed
1 of 2 tasks

New pattern: aws-apigateway-sagemakerendpoint #75

dscpinheiro opened this issue Sep 23, 2020 · 1 comment
Assignees
Labels
feature-request A feature should be added or improved

Comments

@dscpinheiro
Copy link
Contributor

This new pattern is similar to the existing aws-apigateway-sqs pattern, but the service integration is with a SageMaker endpoint. The experience will be similar to the one described on this blog post: https://aws.amazon.com/blogs/machine-learning/creating-a-machine-learning-powered-rest-api-with-amazon-api-gateway-mapping-templates-and-amazon-sagemaker/

The main difference with this pattern is that only a GET method is made available (which will call the invoke-endpoint API). Also, since each ML use case is unique, the construct will require certain properties (such as resource path and request mapping template) to be provided.

Use Case

API Gateway provides a layer of abstraction from the endpoint. This layer of abstraction enables custom authentication approaches and control quotas for specific consumers.

Proposed Solution

Name Type
apiGatewayProps? api.RestApiProps
resourcePath string
endpointName string
requestMappingTemplate string
responseMappingTemplate? string

Example usage:

new ApiGatewayToSagemakerEndpoint(this, 'ApiGwSagemaker', {
    apiGatewayProps: {},
    resourcePath: '/predicted-ratings/{user_id}',
    endpointName: 'some-name',
    requestMappingTemplate: 'some-template',
    responseMappingTemplate: 'some-template'
});
  • 👋 I may be able to implement this feature request
  • ⚠️ This feature might incur a breaking change

This is a 🚀 Feature Request

@dscpinheiro dscpinheiro added feature-request A feature should be added or improved needs-triage The issue or PR still needs to be triaged labels Sep 23, 2020
@hnishar hnishar removed the needs-triage The issue or PR still needs to be triaged label Sep 23, 2020
@hnishar
Copy link
Contributor

hnishar commented Oct 17, 2020

Published the pattern in the latest release v1.68.0

@hnishar hnishar closed this as completed Oct 17, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature-request A feature should be added or improved
Projects
None yet
Development

No branches or pull requests

2 participants