diff --git a/hosts/arrow/aws/image.tf b/hosts/arrow/aws/image.tf index 6b12ec9..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("arrow.vhd"), "/\\.vhd$/", "") + name = replace(basename(data.aws_s3_object.image.key), "/\\.vhd$/", "") virtualization_type = "hvm" root_device_name = "/dev/xvda" ena_support = true