Skip to content

Commit 6410042

Browse files
committed
Fix ClusterUseSpot condition name
1 parent b6d3c0d commit 6410042

2 files changed

Lines changed: 8 additions & 1 deletion

File tree

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# Changelog
22

3+
## [Unreleased]
4+
### Fixed
5+
- Added `should-wait = true` to the EC2 instance configuration so it doesn't register itself in the ECS cluster while in warm pool.
6+
37
## [0.2.1] - 2024-02-28
48
### Fixed
59
- Fixed CloudFront Origin Shield region selection.

template.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -447,7 +447,7 @@ def __init__(self, value_one: object, value_two: object) -> None:
447447

448448
if args.launch_type == "ec2" and not args.no_cluster:
449449
cluster_use_spot = template.add_condition(
450-
"ClusterOnDemandOnly",
450+
"ClusterUseSpot",
451451
Not(Equals(Ref(cluster_on_demand_percentage), 100)),
452452
)
453453

@@ -767,6 +767,9 @@ def __init__(self, value_one: object, value_two: object) -> None:
767767
[settings.ecs]
768768
cluster = "${{{cluster}}}"
769769
770+
[settings.autoscaling]
771+
should-wait = true
772+
770773
[settings.cloudformation]
771774
should-signal = true
772775
stack-name = "${{AWS::StackName}}"

0 commit comments

Comments
 (0)