Skip to content
This repository was archived by the owner on Sep 16, 2025. It is now read-only.

Commit c9e9235

Browse files
feat: model deploy with endpoint config name (#19)
* feat: model deploynwith endpoint config name * chore: update descriptions * chore: remove wiki url * chore: update descriptions
1 parent f3e6b20 commit c9e9235

File tree

5 files changed

+62
-38
lines changed

5 files changed

+62
-38
lines changed

src/@orb.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,5 @@ description: >
55
(OPEN PREVIEW - send feedback at [email protected])
66
77
display:
8-
home_url: "https://github.com/CircleCI-Public/aws-sagemaker-orb/wiki"
8+
home_url: "https://github.com/CircleCI-Public/aws-sagemaker-orb"
99
source_url: "https://github.com/CircleCI-Public/aws-sagemaker-orb"

src/examples/create_endpoint.yml

Lines changed: 0 additions & 36 deletions
This file was deleted.

src/examples/deploy_model.yml

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
description: >
2+
This example defines a CircleCI workflow that uses the aws-sagemaker orb to:
3+
- Create a SageMaker model
4+
- Create an endpoint configuration for the model
5+
- Deploy the model to an endpoint
6+
It shows a typical machine learning workflow using SageMaker with model releases being tracked on CircleCI.
7+
usage:
8+
version: 2.1
9+
orbs:
10+
aws-sagemaker: circleci/[email protected]
11+
workflows:
12+
ai-workflow:
13+
jobs:
14+
- aws-sagemaker/create_model:
15+
name: create-model
16+
model_name: replace_with_model_name
17+
deploy_environment: replace_with_environment
18+
pipeline_id: << pipeline.id >>
19+
bucket: replace_with_s3_bucket_name
20+
region_name: replace_with_region_name
21+
- aws-sagemaker/create_endpoint_configuration:
22+
name: create-endpoint-configuration
23+
model_name: replace_with_model_name
24+
deploy_environment: replace_with_environment
25+
pipeline_id: << pipeline.id >>
26+
bucket: replace_with_s3_bucket_name
27+
region_name: replace_with_region_name
28+
requires:
29+
- create-model
30+
- aws-sagemaker/deploy_endpoint:
31+
name: deploy-endpoint
32+
model_name: replace_with_model_name
33+
model_desc: replace_with_description
34+
deploy_environment: replace_with_environment
35+
pipeline_id: <<pipeline.id>>
36+
project_id: replace_with_project_id
37+
bucket: replace_with_s3_bucket_name
38+
region_name: replace_with_region_name
39+
requires:
40+
- create-endpoint-configuration
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
description: >
2+
Deploys a model to SageMaker with an existing endpoint configuration.
3+
usage:
4+
version: 2.1
5+
orbs:
6+
aws-sagemaker: circleci/[email protected]
7+
workflows:
8+
ai-workflow:
9+
jobs:
10+
- aws-sagemaker/deploy_endpoint:
11+
name: deploy-endpoint
12+
model_name: replace_with_model_name
13+
model_desc: replace_with_description
14+
deploy_environment: replace_with_environment
15+
pipeline_id: <<pipeline.id>>
16+
project_id: replace_with_project_id
17+
bucket: replace_with_s3_bucket_name
18+
region_name: replace_with_region_name
19+
endpoint_config_name: replace_with_existing_endpoint_config_name
20+
endpoint_name: replace_with_endpoint_name

src/scripts/main.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ repo_name="cci-sagemaker"
114114
# binary="${orb_bin_dir}/${repo_name}"
115115
# TODO: Make the version configurable via parameter
116116
# Don't forget the v!
117-
binary_version="v0.0.12"
117+
binary_version="v0.0.13"
118118
basic_name="cci-sagemaker"
119119
binary_name="${basic_name}-${binary_version}-${PLATFORM}-${ARCH}"
120120
binary_zip="${orb_bin_dir}/${binary_name}.zip"

0 commit comments

Comments
 (0)