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
Summary: "Can't set variable when applying a saved plan",
340
-
Detail: fmt.Sprintf("The variable %s cannot be set using the -var and -var-file options when applying a saved plan file, because a saved plan includes the variable values that were set when it was created. To declare an ephemeral variable which is not saved in the plan file, use ephemeral = true.", varName),
341
-
Subject: rng,
342
-
})
343
-
}
333
+
diags=diags.Append(&hcl.Diagnostic{
334
+
Severity: hcl.DiagError,
335
+
Summary: "Can't set variable when applying a saved plan",
336
+
Detail: fmt.Sprintf("The variable %s cannot be set using the -var and -var-file options when applying a saved plan file, because it is neither ephemeral nor has it been declared during the plan operation. To declare an ephemeral variable which is not saved in the plan file, use ephemeral = true.", varName),
Summary: "Variable was set with a different type when applying a saved plan",
352
-
Detail: fmt.Sprintf("The variable %s was set to a different type of value during plan than during apply. Please either don't supply the value or supply the same value if the variable.", varName),
346
+
Summary: "Could not decode variable value from plan",
347
+
Detail: fmt.Sprintf("The variable %s could not be decoded from the plan. %s. This is a bug in Terraform, please report it.", varName, err),
353
348
Subject: rng,
354
349
})
355
350
} else {
356
351
ifv.Value.Equals(val) ==cty.False {
357
352
diags=diags.Append(&hcl.Diagnostic{
358
353
Severity: hcl.DiagError,
359
-
Summary: "Can't set variable when applying a saved plan",
354
+
Summary: "Can't change variable when applying a saved plan",
360
355
Detail: fmt.Sprintf("The variable %s cannot be set using the -var and -var-file options when applying a saved plan file, because a saved plan includes the variable values that were set when it was created. The saved plan specifies %s as the value whereas during apply the value %s was %s. To declare an ephemeral variable which is not saved in the plan file, use ephemeral = true.", varName, viewsjson.CompactValueStr(v.Value), viewsjson.CompactValueStr(val), v.SourceType.DiagnosticLabel()),
0 commit comments