Skip to content

Commit

Permalink
Fix CostWatcher lambda
Browse files Browse the repository at this point in the history
  • Loading branch information
hcho3 committed Feb 3, 2024
1 parent 73d94cb commit 9e789e5
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion cost_watcher/lambda_function.py
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ def get_ec2_pricing() -> Dict[Tuple[str, str], float]:
assert product_attrs["capacitystatus"] == "Used"
assert product_attrs["preInstalledSw"] == "NA"
assert re.match(
r"^RunInstances(?::[0-9g]{4}){0,1}$", product_attrs["operation"]
r"^RunInstances(?::[0-9A-Za-z]{1,4}){0,1}$", product_attrs["operation"]
)
price_record = obj["terms"]["OnDemand"]
id1 = list(price_record)[0]
Expand Down
2 changes: 1 addition & 1 deletion metadata.ini
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
[DEFAULT]
daily_budget = 50
daily_budget = 30
3 changes: 1 addition & 2 deletions xgboost_devops.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
name: xgboost_devops
channels:
- conda-forge
- defaults
dependencies:
- python=3.7
- python=3.10
- pip
- requests
- boto3
Expand Down

0 comments on commit 9e789e5

Please sign in to comment.