Compare commits

..

No commits in common. "7ce9ed564ec31bc89960f4f2df3eb7b43cb466cc" and "6edc828ece53187ac8aa74ef138ae78d707b5edc" have entirely different histories.

2 changed files with 4 additions and 12 deletions

View File

@ -13,11 +13,6 @@ resource "aws_instance" "instance" {
}
}
resource "aws_ec2_instance_state" "instance" {
instance_id = aws_instance.instance.id
state = "running"
}
data "aws_vpc" "vpc" {
default = true
}

View File

@ -12,12 +12,9 @@
# Use existing image in S3
data "aws_s3_object" "image" {
bucket = var.images_bucket
key = "arrow.vhd"
}
resource "terraform_data" "image_replacement" {
input = data.aws_s3_object.image.checksum_sha256
bucket = var.images_bucket
key = "arrow.vhd"
checksum_mode = "ENABLED"
}
# Setup IAM access for the VM Importer
@ -75,7 +72,7 @@ resource "aws_ebs_snapshot_import" "image" {
role_name = aws_iam_role.vmimport.name
lifecycle {
replace_triggered_by = [terraform_data.image_replacement]
replace_triggered_by = [data.aws_s3_object.image.checksum_sha256]
}
}