You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Terraform will perform the following actions:# restapi_object.test must be replaced# (imported from "/objects/7")# Warning: this will destroy the imported resource-/+resource"restapi_object""test" {
~ api_data={
-"data" = "map[CPU model:Intel Core i9 Hard disk size:1 TB price:1849.99 year:2019]"-"id" = "7"-"name" = "Apple MacBook Pro 16"
} -> (known after apply)
~ api_response=jsonencode(
{
- data = {
-"CPU model" = "Intel Core i9"-"Hard disk size" = "1 TB"- price =1849.99- year =2019
}
- id ="7"- name ="Apple MacBook Pro 16"
}
) -> (known after apply)
+create_response=(known after apply)
~ data=jsonencode(
~ {
- id ="7"+ name ="test"
}
)
-debug=true->null+force_new=[ # forces replacement+"test",
]
~ id="7"-> (known after apply)
path="/objects"
}
Plan:1 to import, 1 to add, 0 to change, 1 to destroy.
The text was updated successfully, but these errors were encountered:
Hi,
Can import be used with
force_new
in any way, without instantly destroying ? 🤔Example:
Results in:
The text was updated successfully, but these errors were encountered: