mirror of
https://github.com/hashicorp/terraform.git
synced 2026-03-24 03:13:32 -04:00
Based on feedback during earlier alpha releases, we've decided to move forward with the current design for the first phase of config-driven refactoring. Therefore here we've marked the experiment as concluded with no changes to the most recent incarnation of the functionality. The other changes here are all just updating test fixtures to no longer declare that they are using experimental features.
18 lines
569 B
HCL
18 lines
569 B
HCL
# In state with `ami = "foo"`, so this should be a regular update. The provider
|
|
# should not detect changes on refresh.
|
|
resource "test_instance" "no_refresh" {
|
|
ami = "bar"
|
|
}
|
|
|
|
# In state with `ami = "refresh-me"`, but the provider will return
|
|
# `"refreshed"` after the refresh phase. The plan should show the drift
|
|
# (`"refresh-me"` to `"refreshed"`) and plan the update (`"refreshed"` to
|
|
# `"baz"`).
|
|
resource "test_instance" "should_refresh_with_move" {
|
|
ami = "baz"
|
|
}
|
|
|
|
moved {
|
|
from = test_instance.should_refresh
|
|
to = test_instance.should_refresh_with_move
|
|
}
|