Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion docs/resources/asymmetric_key.md
Original file line number Diff line number Diff line change
Expand Up @@ -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="
Expand Down
2 changes: 1 addition & 1 deletion docs/resources/preshared_key.md
Original file line number Diff line number Diff line change
Expand Up @@ -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="
Expand Down
31 changes: 31 additions & 0 deletions templates/resources/asymmetric_key.md.tmpl
Original file line number Diff line number Diff line change
@@ -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 }}
31 changes: 31 additions & 0 deletions templates/resources/preshared_key.md.tmpl
Original file line number Diff line number Diff line change
@@ -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 }}
Loading