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
Copy file name to clipboardExpand all lines: mmv1/templates/terraform/resource.html.markdown.tmpl
+12Lines changed: 12 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -191,6 +191,18 @@ This resource does not support import.
191
191
* `{{replaceAll $idFormat "%" "" }}`
192
192
{{- end }}
193
193
194
+
In Terraform v1.12.0 and later, use an [`identity` block](https://developer.hashicorp.com/terraform/language/resources/identities) to import {{$.Name}} using identity values. For example:
195
+
196
+
```tf
197
+
import {
198
+
identity = {
199
+
{{- range $identity := $.IdentityProperties }}
200
+
{{ $identity.Name }} = "<-{{ if $identity.Required }}required{{ else }}optional{{ end }} value->"
201
+
{{- end }}
202
+
}
203
+
to = {{$.TerraformName}}.default
204
+
}
205
+
```
194
206
195
207
In Terraform v1.5.0 and later, use an [`import` block](https://developer.hashicorp.com/terraform/language/import) to import {{$.Name}} using one of the formats above. For example:
0 commit comments