github.com/nathanielks/terraform@v0.6.1-0.20170509030759-13e1a62319dc/terraform/test-fixtures/apply-ignore-changes-dep/main.tf (about)

     1  resource "aws_instance" "foo" {
     2    count         = 2
     3    ami           = "ami-bcd456"
     4    lifecycle {
     5      ignore_changes = ["ami"]
     6    }
     7  }
     8  
     9  resource "aws_eip" "foo" {
    10    count    = 2
    11    instance = "${element(aws_instance.foo.*.id, count.index)}"
    12  }