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

Added region name to the sagemaker deploy cli. #24

Merged
merged 1 commit into from Jun 16, 2018

Conversation

d18s
Copy link
Contributor

@d18s d18s commented Jun 8, 2018

No description provided.

@codecov-io
Copy link

Codecov Report

Merging #24 into master will decrease coverage by 0.02%.
The diff coverage is 0%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master      #24      +/-   ##
==========================================
- Coverage    69.6%   69.58%   -0.03%     
==========================================
  Files          44       44              
  Lines        2527     2528       +1     
==========================================
  Hits         1759     1759              
- Misses        768      769       +1
Impacted Files Coverage Δ
mlflow/sagemaker/cli.py 0% <0%> (ø) ⬆️
mlflow/sagemaker/deploy.py 0% <0%> (ø) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 13bbd76...2065b0f. Read the comment docs.

@@ -57,7 +57,7 @@ def _deploy(role, container_name, app_name, model_s3_path, run_id):
:param run_id:
:return:
"""
sage_client = boto3.client('sagemaker', region_name="us-west-2")
sage_client = boto3.client('sagemaker', region_name)
Copy link
Contributor

@aarondav aarondav Jun 11, 2018

Choose a reason for hiding this comment

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

Are you sure the second argument is region_name? This documentation would seem to indicate that everything but the name is a **kwargs, so it would need to be named -- i.e., region_name= region_name.

Copy link
Contributor

@aarondav aarondav Jun 11, 2018

Choose a reason for hiding this comment

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

Ah -- I see it now, it is actually the second argument from here. Since it has a default value of None, would you mind adding the explicit region_name= region_name anyway, just to be 100% obvious?

@aarondav
Copy link
Contributor

This LGTM. Were you able to manually QA it in a particular non-us-west-2 region?

@aarondav
Copy link
Contributor

Also could you confirm the reason for this change? I assume sagemaker will deploy to the region you specify in boto (as opposed to something like S3 which is largely global, and so regional endpoints are of less use)?

@d18s
Copy link
Contributor Author

d18s commented Jun 13, 2018

Were you able to manually QA it in a particular non-us-west-2 region?

yep tested it on eu-west-1

Also could you confirm the reason for this change?

to run it outside of us-west-2, the data I wanted to use is in eu-west-1

I assume sagemaker will deploy to the region you specify in boto

I hadn't thought of removing the region altogether but unless there's a good reason for it I prefer explicit config, especially when boto is involved as debugging permissions can be a faff

@aarondav
Copy link
Contributor

OK - sounds good. Thanks for contribution, and the QA! Merging.

@aarondav aarondav merged commit b218deb into mlflow:master Jun 16, 2018
juntai-zheng pushed a commit that referenced this pull request Dec 19, 2019
jdlesage pushed a commit to jdlesage/mlflow that referenced this pull request Dec 23, 2019
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.

None yet

3 participants