mirror of
https://github.com/nmasur/dotfiles
synced 2024-11-22 06:25:38 +00:00
make sure to replace ami if s3 object changes
This commit is contained in:
parent
3d90674522
commit
b7e81e009c
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user