diff --git a/docs/resources/application.md b/docs/resources/application.md index 8e91204f..07c19244 100644 --- a/docs/resources/application.md +++ b/docs/resources/application.md @@ -1,5 +1,5 @@ --- -# generated by https://github.com/hashicorp/terraform-plugin-docs +# generated using template templates/resources/application.md.tmpl page_title: "juju_application Resource - terraform-provider-juju" subcategory: "" description: |- @@ -11,7 +11,6 @@ description: |- A resource that represents a single Juju application deployment from a charm. Deployment of bundles is not supported. ## Example Usage - ```terraform resource "juju_application" "this" { name = "my-application" @@ -124,6 +123,12 @@ Read-Only: - `pool` (String) Name of the storage pool. - `size` (String) The size of each volume. + +### Notes + +Removing the config map will not reset the charm config to defaults per [GH issue #393](https://github.com/juju/terraform-provider-juju/issues/393) + + ## Import Import is supported using the following syntax: diff --git a/templates/resources/application.md.tmpl b/templates/resources/application.md.tmpl new file mode 100644 index 00000000..c9e6c0e1 --- /dev/null +++ b/templates/resources/application.md.tmpl @@ -0,0 +1,32 @@ +--- +# generated using template templates/resources/application.md.tmpl +page_title: "{{.Name}} {{.Type}} - {{.ProviderName}}" +subcategory: "" +description: |- +{{ .Description | plainmarkdown | trimspace | prefixlines " " }} +--- + +# {{.Name}} ({{.Type}}) + +{{ .Description | trimspace }} + +{{ if .HasExample -}} +## Example Usage +{{tffile "examples/resources/juju_application/resource.tf"}} +{{- end }} + +{{ .SchemaMarkdown | trimspace }} + + +### Notes + +Removing the config map will not reset the charm config to defaults per [GH issue #393](https://github.com/juju/terraform-provider-juju/issues/393) + + +{{ if .HasImport -}} +## Import + +Import is supported using the following syntax: + +{{codefile "shell" "examples/resources/juju_application/import.sh"}} +{{- end }}