github.com/hashicorp/terraform-plugin-sdk@v1.17.2/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 ami = "ami-1234" 29 security_groups = [ 30 "foo", 31 "bar", 32 ] 33 34 network_interface { 35 device_index = 0 36 description = "Main network interface" 37 } 38 39 depends_on = [ 40 aws_security_group.firewall, 41 ] 42 }