Skip to content

Commit

Permalink
not ready with aws
Browse files Browse the repository at this point in the history
  • Loading branch information
sanderegg committed Nov 17, 2022
1 parent 60112b9 commit 9d651fe
Showing 1 changed file with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import logging
from datetime import datetime

from fastapi import FastAPI

Expand Down Expand Up @@ -42,8 +41,9 @@ async def check_dynamic_resources(app: FastAPI) -> None:
ec2_instance_needed = utils_aws.find_needed_ec2_instance(4, 4)
logger.debug("%s", f"{ec2_instance_needed=}")

await utils_aws.start_instance_aws(
app_settings.AUTOSCALING_AWS,
instance_type=ec2_instance_needed.name,
tags=["autoscaling created node", f"created at {datetime.utcnow()}"],
)
assert app_settings.AUTOSCALING_AWS # nosec
# await utils_aws.start_instance_aws(
# app_settings.AUTOSCALING_AWS,
# instance_type=ec2_instance_needed.name,
# tags=["autoscaling created node", f"created at {datetime.utcnow()}"],
# )

0 comments on commit 9d651fe

Please sign in to comment.