File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -176,10 +176,10 @@ resource "aws_launch_template" "this" {
176176 key_name = var. key_name
177177
178178 dynamic "license_specification" {
179- for_each = length (var. license_specifications ) > 0 ? var. license_specifications : {}
179+ for_each = length (var. license_specifications ) > 0 ? var. license_specifications : []
180180
181181 content {
182- license_configuration_arn = license_specifications . value . license_configuration_arn
182+ license_configuration_arn = license_specification . value . license_configuration_arn
183183 }
184184 }
185185
Original file line number Diff line number Diff line change @@ -282,10 +282,10 @@ resource "aws_launch_template" "this" {
282282 key_name = var. key_name
283283
284284 dynamic "license_specification" {
285- for_each = length (var. license_specifications ) > 0 ? var. license_specifications : {}
285+ for_each = length (var. license_specifications ) > 0 ? var. license_specifications : []
286286
287287 content {
288- license_configuration_arn = license_specifications . value . license_configuration_arn
288+ license_configuration_arn = license_specification . value . license_configuration_arn
289289 }
290290 }
291291
You can’t perform that action at this time.
0 commit comments