Skip to content

Commit

Permalink
fix aws ami logic
Browse files Browse the repository at this point in the history
  • Loading branch information
dahoward5 committed Aug 28, 2024
1 parent c85e8a1 commit 2d29475
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion settings.tf
Original file line number Diff line number Diff line change
Expand Up @@ -114,9 +114,14 @@ data "aws_route53_zone" "main" {
data "aws_ami" "gold_image" {
count = var.gold_image_date != "" ? 1 : 0

most_recent = false
most_recent = true
name_regex = "^amzn2-eks-${module.eks.cluster_version}-gi-${var.gold_image_date}*"
owners = ["743302140042"]

filter {
name = "name"
values = ["amzn2-eks-${module.eks.cluster_version}-gi-${var.gold_image_date}*"]
}
}

data "aws_s3_bucket" "logs" {
Expand Down

0 comments on commit 2d29475

Please sign in to comment.