You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For instances already managed by terraform (terraform 0.3.7 pre #877) that have block devices defined in .tf (i.e. type set to g2, set size etc), with current upstream master the block devices are being re-computed and force new resource on plan.
example configuration:
resource "aws_instance" "pph_vpn" {
ami = "${var.vpn_ami}"
instance_type = "${var.vpn_class}"
availability_zone = "${lookup(var.zones, concat("zone", count.index))}"
subnet_id = "${element(aws_subnet.pph.*.id, count.index)}"
associate_public_ip_address = true
key_name = "vpn-dec-14" #key to be used to firstly log ing to device with username openvpnas. key is in s3
user_data = "${file("../cloud-init/vpn.yml")}"
tags {
Name = "vpn0${count.index}"
}
block_device {
device_name = "/dev/sda1"
volume_type = "standard"
volume_size = 8
delete_on_termination = 1
}
security_groups = [ "${aws_security_group.pph_admins.id}",
"${aws_security_group.pph_vpn.id}",
]
count = 1
}
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues.
If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.
ghost
locked and limited conversation to collaborators
May 4, 2020
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Relates: #877
Links: #859 (comment)
For instances already managed by terraform (terraform 0.3.7 pre #877) that have block devices defined in .tf (i.e. type set to g2, set size etc), with current upstream master the block devices are being re-computed and force new resource on plan.
example configuration:
What is in state currently:
plan with
Terraform v0.3.7-dev (3339593292d2d16922cbf6270fbbb2bfea7d6440)
If i comment out the
block_device
part in the .tf the plan does not mark said instance for change.The text was updated successfully, but these errors were encountered: