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
Detail: "This feature is currently an opt-in experiment, subject to change in future releases based on feedback.\n\nActivate the feature for this module by adding ephemeral_values to the list of active experiments.",
218
-
Subject: oc.DeclRange.Ptr(),
219
-
})
220
-
}
221
-
}
222
-
for_, vc:=rangem.Variables {
223
-
ifvc.EphemeralSet {
224
-
diags=append(diags, &hcl.Diagnostic{
225
-
Severity: hcl.DiagError,
226
-
Summary: "Ephemeral values are experimental",
227
-
Detail: "This feature is currently an opt-in experiment, subject to change in future releases based on feedback.\n\nActivate the feature for this module by adding ephemeral_values to the list of active experiments.",
Detail: `The terraform.workspace attribute is only available for modules used in Terraform workspaces. Use input variables instead to create variations between different instances of this module.`,
145
117
Subject: rng.ToHCL().Ptr(),
146
118
})
147
-
default:
148
-
// A more generic error for any other attribute name, since no
149
-
// others are valid anyway but it would be confusing to mention
150
-
// terraform.workspace here.
151
-
diags=diags.Append(&hcl.Diagnostic{
152
-
Severity: hcl.DiagError,
153
-
Summary: `Invalid reference`,
154
-
Detail: `The "terraform" object is only available for modules used in Terraform workspaces.`,
155
-
Subject: rng.ToHCL().Ptr(),
156
-
})
119
+
returncty.DynamicVal, diags
157
120
}
158
-
returncty.DynamicVal, diags
159
-
}
160
-
161
-
switchaddr.Name {
162
-
163
-
case"workspace":
164
121
workspaceName:=d.Evaluator.Meta.Env
165
122
returncty.StringVal(workspaceName), diags
166
123
124
+
// terraform.applying is an ephemeral boolean value that's set to true
125
+
// during an apply walk or false in any other situation. This is
126
+
// intended to allow, for example, using a more privileged auth role
127
+
// in a provider configuration during the apply phase but a more
Detail: fmt.Sprintf(`The "terraform" object does not have an attribute named %q. The only supported attribute is terraform.workspace, the name of the currently-selected workspace.`, addr.Name),
148
+
Detail: fmt.Sprintf(`The "terraform" object does not have an attribute named %q. The only supported attributes are terraform.workspace, the name of the currently-selected workspace, and terraform.applying, a boolean which is true only during apply.`, addr.Name),
0 commit comments