Skip to content

Commit dce9fab

Browse files
toshkejnonino
andauthored
optionally propagate tags on set value (#19)
* optionally propagate tags on set value * Update main.tf Yeah, i got it reversed, good catch and proof via PR reviews are important. Co-authored-by: Julian Nonino <[email protected]> Co-authored-by: Julian Nonino <[email protected]>
1 parent a652585 commit dce9fab

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

main.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ resource "aws_cloudwatch_event_target" "ecs_scheduled_task" {
6969
platform_version = var.event_target_ecs_target_platform_version
7070
task_count = var.event_target_ecs_target_task_count
7171
task_definition_arn = var.event_target_ecs_target_task_definition_arn
72-
propagate_tags = var.event_target_ecs_target_propagate_tags
72+
propagate_tags = var.event_target_ecs_target_propagate_tags == "" ? null : var.event_target_ecs_target_propagate_tags
7373

7474
network_configuration {
7575
subnets = var.event_target_ecs_target_subnets

variables.tf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,6 @@ variable "event_target_ecs_target_assign_public_ip" {
113113

114114
variable "event_target_ecs_target_propagate_tags" {
115115
description = "(Optional) Specifies whether to propagate the tags from the task definition to the task. If no value is specified, the tags are not propagated."
116-
type = bool
117-
default = false
116+
type = string
117+
default = ""
118118
}

0 commit comments

Comments
 (0)