Skip to content
This repository was archived by the owner on Mar 27, 2023. It is now read-only.

Commit 43931d5

Browse files
committed
fixed class names for nested stack, generated sample stack.yml
1 parent 6d62904 commit 43931d5

File tree

3 files changed

+376
-1360
lines changed

3 files changed

+376
-1360
lines changed

awscdk/awscdk/backend.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
)
99

1010

11-
class BackendStack(cloudformation.NestedStack):
11+
class BackendServiceStack(cloudformation.NestedStack):
1212
def __init__(self, scope: core.Construct, id: str, **kwargs,) -> None:
1313
super().__init__(
1414
scope, id, **kwargs,
@@ -45,7 +45,7 @@ def __init__(self, scope: core.Construct, id: str, **kwargs,) -> None:
4545
"BackendService",
4646
task_definition=self.backend_task,
4747
assign_public_ip=True,
48-
cluster=scope.cluster,
48+
cluster=scope.ecs.cluster,
4949
security_group=ec2.SecurityGroup.from_security_group_id(
5050
self,
5151
"BackendServiceSecurityGroup",

awscdk/awscdk/celery_default.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
)
99

1010

11-
class CeleryDefaultStack(cloudformation.NestedStack):
11+
class CeleryDefaultServiceStack(cloudformation.NestedStack):
1212
def __init__(self, scope: core.Construct, id: str, **kwargs) -> None:
1313
super().__init__(
1414
scope, id, **kwargs,
@@ -23,7 +23,7 @@ def __init__(self, scope: core.Construct, id: str, **kwargs) -> None:
2323
image=scope.image,
2424
logging=ecs.LogDrivers.aws_logs(
2525
stream_prefix="CeleryDefaultWorkerContainer",
26-
logs=logs.RetentionDays.ONE_WEEK,
26+
log_retention=logs.RetentionDays.ONE_WEEK,
2727
),
2828
environment=scope.variables.regular_variables,
2929
secrets=scope.variables.secret_variables,

0 commit comments

Comments
 (0)