Skip to content

Commit deda673

Browse files
authored
Merge branch 'master' into wip/v6
2 parents 3b09b3a + 3b70e1e commit deda673

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,13 @@
22

33
All notable changes to this project will be documented in this file.
44

5+
## [5.11.4](https://github.com/terraform-aws-modules/terraform-aws-ecs/compare/v5.11.3...v5.11.4) (2024-08-07)
6+
7+
8+
### Bug Fixes
9+
10+
* Local `cluster_name` error when `var.cluster_arn` is empty ([#218](https://github.com/terraform-aws-modules/terraform-aws-ecs/issues/218)) ([42f11fe](https://github.com/terraform-aws-modules/terraform-aws-ecs/commit/42f11fe46b1f2a00125af0ee98813bff25d0bc46))
11+
512
## [5.11.3](https://github.com/terraform-aws-modules/terraform-aws-ecs/compare/v5.11.2...v5.11.3) (2024-07-05)
613

714

modules/service/main.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1308,7 +1308,7 @@ resource "aws_ecs_task_set" "ignore_task_definition" {
13081308
locals {
13091309
enable_autoscaling = local.create_service && var.enable_autoscaling && !local.is_daemon
13101310

1311-
cluster_name = element(split("/", var.cluster_arn), 1)
1311+
cluster_name = try(element(split("/", var.cluster_arn), 1), "")
13121312
}
13131313

13141314
resource "aws_appautoscaling_target" "this" {

0 commit comments

Comments
 (0)