make sure to replace ami if s3 object changes

This commit is contained in:
Noah Masur 2024-05-07 20:04:04 -04:00
parent 3d90674522
commit b7e81e009c
No known key found for this signature in database

View File

@ -70,6 +70,9 @@ resource "aws_ebs_snapshot_import" "image" {
}
role_name = aws_iam_role.vmimport.name
lifecycle {
replace_triggered_by = [data.aws_s3_object.image.checksum_sha256]
}
}
# Convert to AMI