mirror of
https://github.com/ysoftdevs/terraform-aws-eks.git
synced 2026-01-11 22:41:43 +01:00
fix: AMI lookup should only happen when launch template is created (#2386)
Fixes https://github.com/terraform-aws-modules/terraform-aws-eks/issues/2385
This commit is contained in:
@@ -2,7 +2,7 @@ data "aws_partition" "current" {}
|
||||
data "aws_caller_identity" "current" {}
|
||||
|
||||
data "aws_ami" "eks_default" {
|
||||
count = var.create ? 1 : 0
|
||||
count = var.create && var.create_launch_template ? 1 : 0
|
||||
|
||||
filter {
|
||||
name = "name"
|
||||
|
||||
Reference in New Issue
Block a user