Skip to content

Commit db9494e

Browse files
committed
Fix stack deletion
1 parent c3639a3 commit db9494e

2 files changed

Lines changed: 6 additions & 1 deletion

File tree

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@
77
### Changed
88
- If the `EnvironmentSystemsManagerParametersPath` parameter is not set, use `/${AWS::StackName}` as the default value.
99

10+
### Fixed
11+
- Fix stack deletion.
12+
1013
### Removed
1114
- Removed the `EnvironmentSecretARN` and `EnvironmentSecretVersionID` parameters.
1215

template.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -570,6 +570,8 @@ def __init__(self, value_one: object, value_two: object) -> None:
570570
# NETWORK
571571
# ==============================================================================
572572

573+
gateway_attachement = None
574+
573575
if not args.no_network:
574576
vpc = template.add_resource(ec2.VPC(
575577
"VPC",
@@ -1170,7 +1172,7 @@ def __init__(self, value_one: object, value_two: object) -> None:
11701172
"ECSService",
11711173
DependsOn=list(filter(
11721174
lambda x: x is not None,
1173-
[load_balancer_listener_rule, ecs_capacity_provider_associations],
1175+
[load_balancer_listener_rule, ecs_capacity_provider_associations, gateway_attachement],
11741176
)),
11751177
ServiceName=StackName,
11761178
Cluster=Ref(ecs_cluster),

0 commit comments

Comments
 (0)