Skip to content

Commit 4de3f6b

Browse files
committed
fix: style
1 parent 2c92449 commit 4de3f6b

File tree

1 file changed

+8
-9
lines changed

1 file changed

+8
-9
lines changed

easyecs/cloudformation/template/__init__.py

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -357,14 +357,9 @@ def create_ecs_service(
357357

358358
def create_autodestroy(stack, deployment_timeout: int):
359359
from pathlib import Path
360-
from aws_cdk.aws_events import (
361-
Rule,
362-
Schedule
363-
)
360+
from aws_cdk.aws_events import Rule, Schedule
364361
from aws_cdk.aws_events_targets import LambdaFunction
365-
from aws_cdk.aws_iam import (
366-
PolicyStatement
367-
)
362+
from aws_cdk.aws_iam import PolicyStatement
368363
from aws_cdk import aws_lambda, Duration
369364
from aws_cdk.aws_logs import RetentionDays
370365

@@ -373,7 +368,9 @@ def create_autodestroy(stack, deployment_timeout: int):
373368
resources=["*"],
374369
)
375370

376-
lambda_function_file = str(Path(__file__).parent.parent / "auto_destruction/harakiri.py")
371+
lambda_function_file = str(
372+
Path(__file__).parent.parent / "auto_destruction/harakiri.py"
373+
)
377374
harakiri = aws_lambda.Function(
378375
stack,
379376
"AutoDestroy",
@@ -387,6 +384,8 @@ def create_autodestroy(stack, deployment_timeout: int):
387384
harakiri.add_to_role_policy(lambdaDeleteStackPolicy)
388385

389386
lambda_rule = Rule(
390-
stack, "TimeToDestroy", schedule=Schedule.rate(Duration.minutes(deployment_timeout))
387+
stack,
388+
"TimeToDestroy",
389+
schedule=Schedule.rate(Duration.minutes(deployment_timeout)),
391390
)
392391
lambda_rule.add_target(LambdaFunction(handler=harakiri))

0 commit comments

Comments
 (0)