-
-
Notifications
You must be signed in to change notification settings - Fork 630
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
[ray launcher] fix key pair name - add user #1309
Conversation
@@ -58,7 +58,9 @@ class RayProviderConf: | |||
region: str = "us-west-2" | |||
availability_zone: str = "us-west-2a,us-west-2b" | |||
cache_stopped_nodes: bool = False | |||
key_pair: Dict[str, str] = field(default_factory=lambda: {"key_name": "hydra"}) | |||
key_pair: Dict[str, str] = field( | |||
default_factory=lambda: {"key_name": "hydra-${env:USER,me}"} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why is "me" a good default value for a key name?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
probably not a good name :) how about just user
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why not hydra?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
right now the key name is hydra-{$USER}, are you saying is $USER does not exist we do hydra-hydra?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm going to name it hydra-${env:USER, user}
then :)
Motivation
Right now the default key-pair name is
hydra
. However this won't work well if multiple users share one aws account - they won't be able to share the key pair with same names in the same account (easily.)Have you read the Contributing Guidelines on pull requests?
Yes/No
Test Plan
Verified locally the variable was interpreted correctly and example applications run.
Related Issues and PRs
(Is this PR part of a group of changes? Link the other relevant PRs and Issues here. Use https://help.github.com/en/articles/closing-issues-using-keywords for help on GitHub syntax)