Skip to content

Commit

Permalink
updated aws_eks.amazonlinux2.x86_64.pkr.hcl
Browse files Browse the repository at this point in the history
  • Loading branch information
HariSekhon committed Feb 3, 2025
1 parent 72889b0 commit a313d73
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion aws_eks.amazonlinux2.x86_64.pkr.hcl
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ locals {
timestamp = regex_replace(timestamp(), "[ :]", "") # strips spaces and colons from timestamp, the latter are not valid in AMI Names:
# * AMIName should only contain alphanumeric characters, parentheses (()), square brackets ([]), spaces ( ), periods (.), slashes (/), dashes (-), single quotes ('), at-signs (@), or underscores(_). You can use the `clean_resource_name` template filter to automatically clean your ami name.
#ami_target_name = "amazon-eks-node-${var.eks_version}-custom-{{timestamp}}" # epoch
ami_target_name = "amazon-eks-node-${var.eks_version}-custom-${local.timestamp}"
ami_target_name = "amazon-eks-node-${var.eks_version}-al2-custom-${local.timestamp}"
ami_description = "EKS ${var.eks_version} Custom AMI (AmazonLinux2)"

# locals can access data sources but data sources cannot access locals, to prevent circular dependencies
Expand Down

0 comments on commit a313d73

Please sign in to comment.