-
Notifications
You must be signed in to change notification settings - Fork 314
Set default instance type to free tier instance type #2254
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
Set default instance type to free tier instance type #2254
Conversation
Codecov Report
@@ Coverage Diff @@
## develop #2254 +/- ##
===========================================
+ Coverage 61.97% 62.12% +0.14%
===========================================
Files 40 40
Lines 6123 6149 +26
===========================================
+ Hits 3795 3820 +25
- Misses 2328 2329 +1
Continue to review full report at Codecov.
|
7148aa1 to
3a66c3e
Compare
9d90125 to
71ee72d
Compare
ddeidda
left a comment
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.
We are close! Let's talk about the few open points 👍
|
|
||
| def refresh(self): | ||
| """Get default value from a boto3 call for free tier instance type.""" | ||
| if not self.value: |
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.
What about a shorter syntax like this:
self.value = get_default_instance_type() if pcluster_config.get_section("cluster").get_param_value("scheduler") != "awsbatch" else "optimal"
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.
Done
a29b46a to
0bba355
Compare
When running pcluster in a region with free tier, default instance type is set to the free tier instance type. When running pcluster in the China (BJS) region or AWS GovCloud (US) regions, default instance type is t3.micro. Free tier is not available in the China (BJS) region and AWS GovCloud (US) regions. For more information about free tier, please see https://aws.amazon.com/free/free-tier-faqs/ Signed-off-by: Hanwen <hanwenli@amazon.com>
92f1e32 to
672e15a
Compare
…into defaultinstancetype � Conflicts: � CHANGELOG.md � cli/src/pcluster/config/mappings.py � cli/src/pcluster/configure/easyconfig.py � cli/src/pcluster/examples/config � tests/integration-tests/tests/configure/test_pcluster_configure.py Signed-off-by: Hanwen <hanwenli@amazon.com>
672e15a to
73b7b14
Compare
When running
pclusterin a region with free tier, default instance type is set to the free tier instance type. When runningpclusterin the China (BJS) region or AWS GovCloud (US) regions, default instance type is t3.micro.Free tier is not available in the China (BJS) region and AWS GovCloud (US) regions.
For more information about free tier, please see https://aws.amazon.com/free/free-tier-faqs/
Signed-off-by: Hanwen hanwenli@amazon.com
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.