github.com/graywolf-at-work-2/terraform-vendor@v1.4.5/internal/command/testdata/show-json/moved-drift/main.tf (about) 1 # In state with `ami = "foo"`, so this should be a regular update. The provider 2 # should not detect changes on refresh. 3 resource "test_instance" "no_refresh" { 4 ami = "bar" 5 } 6 7 # In state with `ami = "refresh-me"`, but the provider will return 8 # `"refreshed"` after the refresh phase. The plan should show the drift 9 # (`"refresh-me"` to `"refreshed"`) and plan the update (`"refreshed"` to 10 # `"baz"`). 11 resource "test_instance" "should_refresh_with_move" { 12 ami = "baz" 13 } 14 15 moved { 16 from = test_instance.should_refresh 17 to = test_instance.should_refresh_with_move 18 }