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

feat: add SageMaker Endpoint module #2

Merged
merged 15 commits into from
Feb 6, 2024
Merged

Conversation

kukushking
Copy link
Contributor

Description of changes:

  • add SageMaker endpoint module to provision model endpoints

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

@kukushking kukushking self-assigned this Feb 5, 2024
Signed-off-by: Anton Kukushkin <[email protected]>
Signed-off-by: Anton Kukushkin <[email protected]>
Signed-off-by: Anton Kukushkin <[email protected]>
Signed-off-by: Anton Kukushkin <[email protected]>
Signed-off-by: Anton Kukushkin <[email protected]>
Signed-off-by: Anton Kukushkin <[email protected]>
@dgraeber dgraeber self-requested a review February 5, 2024 21:07
Copy link

@dgraeber dgraeber left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Minor nitpics...but LGTM

examples/manifests/sagemaker-endpoints-modules.yaml Outdated Show resolved Hide resolved
srinivasreddych
srinivasreddych previously approved these changes Feb 6, 2024
modules/sagemaker/sagemaker-endpoint/README.md Outdated Show resolved Hide resolved
modules/sagemaker/sagemaker-endpoint/stack.py Outdated Show resolved Hide resolved
Signed-off-by: Anton Kukushkin <[email protected]>
Signed-off-by: Anton Kukushkin <[email protected]>
Signed-off-by: Anton Kukushkin <[email protected]>
Signed-off-by: Anton Kukushkin <[email protected]>
Signed-off-by: Anton Kukushkin <[email protected]>
endpoint.add_dependency(endpoint_config)
self.endpoint = endpoint
self.endpoint_url = (
f"https://runtime.sagemaker.{self.region}.amazonaws.com/endpoints/{endpoint.attr_endpoint_name}/invocations"
Copy link
Contributor Author

@kukushking kukushking Feb 6, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is a bit clunky but I do not see a way to get endpoint attr from the L1 CfnEdnpoint construct, nor the API to get it. DescribeEndpoint, DescribeEndpointConfig do not return the Url.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you check what does endpoint.ref return?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just checked - returns endpoint ARN

@dgraeber dgraeber self-requested a review February 6, 2024 15:20
endpoint.add_dependency(endpoint_config)
self.endpoint = endpoint
self.endpoint_url = (
f"https://runtime.sagemaker.{self.region}.amazonaws.com/endpoints/{endpoint.attr_endpoint_name}/invocations"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you check what does endpoint.ref return?

@kukushking kukushking merged commit 78f0510 into main Feb 6, 2024
2 checks passed
@kukushking kukushking deleted the modules/sagemaker-endpoint branch February 6, 2024 16:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants