github.com/eliastor/durgaform@v0.0.0-20220816172711-d0ab2d17673e/internal/configs/testdata/valid-files/resources.tf (about) 1 resource "aws_security_group" "firewall" { 2 lifecycle { 3 create_before_destroy = true 4 prevent_destroy = true 5 ignore_changes = [ 6 description, 7 ] 8 } 9 10 connection { 11 host = "127.0.0.1" 12 } 13 14 provisioner "local-exec" { 15 command = "echo hello" 16 17 connection { 18 host = "10.1.2.1" 19 } 20 } 21 22 provisioner "local-exec" { 23 command = "echo hello" 24 } 25 } 26 27 resource "aws_instance" "web" { 28 count = 2 29 ami = "ami-1234" 30 security_groups = [ 31 "foo", 32 "bar", 33 ] 34 35 network_interface { 36 device_index = 0 37 description = "Main network interface" 38 } 39 40 depends_on = [ 41 aws_security_group.firewall, 42 ] 43 } 44 45 resource "aws_instance" "depends" { 46 lifecycle { 47 replace_triggered_by = [ aws_instance.web[1], aws_security_group.firewall.id ] 48 } 49 }