diff --git a/docs/resources/asymmetric_key.md b/docs/resources/asymmetric_key.md index ede0062..d9c4fd0 100644 --- a/docs/resources/asymmetric_key.md +++ b/docs/resources/asymmetric_key.md @@ -43,7 +43,7 @@ output "wg_private_key" { ## Import -Import is supported using the following syntax: +The [`terraform import` command](https://developer.hashicorp.com/terraform/cli/commands/import) can be used, for example: ```shell terraform import wireguard_asymmetric_key.example "EFr5/97eoK32SeMingmUqJpE4TL21nckcl2jQ9ZT82g=" diff --git a/docs/resources/preshared_key.md b/docs/resources/preshared_key.md index afb73e4..4ff67c8 100644 --- a/docs/resources/preshared_key.md +++ b/docs/resources/preshared_key.md @@ -33,7 +33,7 @@ output "wg_preshared_key" { ## Import -Import is supported using the following syntax: +The [`terraform import` command](https://developer.hashicorp.com/terraform/cli/commands/import) can be used, for example: ```shell terraform import wireguard_preshared_key.example "sreVpk9zmgdSV1zYk6pJ+SqolQwVuRKGYoEFmb4/h1k=" diff --git a/templates/resources/asymmetric_key.md.tmpl b/templates/resources/asymmetric_key.md.tmpl new file mode 100644 index 0000000..1cd242e --- /dev/null +++ b/templates/resources/asymmetric_key.md.tmpl @@ -0,0 +1,31 @@ +--- +# generated by https://github.com/hashicorp/terraform-plugin-docs +page_title: "{{.Name}} {{.Type}} - {{.RenderedProviderName}}" +subcategory: "" +description: |- +{{ .Description | plainmarkdown | trimspace | prefixlines " " }} +--- + +# {{.Name}} ({{.Type}}) + +{{ .Description | trimspace }} + +{{- if .HasExample }} + +## Example Usage + +{{ tffile (printf "examples/resources/%s/resource.tf" .Name)}} + +{{- end }} + +{{ .SchemaMarkdown | trimspace }} + +{{- if .HasImport }} + +## Import + +The [`terraform import` command](https://developer.hashicorp.com/terraform/cli/commands/import) can be used, for example: + +{{ codefile "shell" .ImportFile }} + +{{- end }} diff --git a/templates/resources/preshared_key.md.tmpl b/templates/resources/preshared_key.md.tmpl new file mode 100644 index 0000000..1cd242e --- /dev/null +++ b/templates/resources/preshared_key.md.tmpl @@ -0,0 +1,31 @@ +--- +# generated by https://github.com/hashicorp/terraform-plugin-docs +page_title: "{{.Name}} {{.Type}} - {{.RenderedProviderName}}" +subcategory: "" +description: |- +{{ .Description | plainmarkdown | trimspace | prefixlines " " }} +--- + +# {{.Name}} ({{.Type}}) + +{{ .Description | trimspace }} + +{{- if .HasExample }} + +## Example Usage + +{{ tffile (printf "examples/resources/%s/resource.tf" .Name)}} + +{{- end }} + +{{ .SchemaMarkdown | trimspace }} + +{{- if .HasImport }} + +## Import + +The [`terraform import` command](https://developer.hashicorp.com/terraform/cli/commands/import) can be used, for example: + +{{ codefile "shell" .ImportFile }} + +{{- end }}