From ddfaf0064cb1090f0d6981d57e9afa99d5ff763e Mon Sep 17 00:00:00 2001 From: Noah Masur <7386960+nmasur@users.noreply.github.com> Date: Tue, 7 May 2024 15:29:08 -0400 Subject: [PATCH] fix: reference to removed var in tf --- hosts/arrow/aws/image.tf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hosts/arrow/aws/image.tf b/hosts/arrow/aws/image.tf index 3560dd1..53cc979 100644 --- a/hosts/arrow/aws/image.tf +++ b/hosts/arrow/aws/image.tf @@ -75,7 +75,7 @@ resource "aws_ebs_snapshot_import" "image" { # Convert to AMI resource "aws_ami" "image" { description = "Created with NixOS." - name = replace(basename(local.image_file), "/\\.vhd$/", "") + name = replace(basename(data.aws_s3_object.image.key), "/\\.vhd$/", "") virtualization_type = "hvm" root_device_name = "/dev/xvda" ena_support = true