diff --git a/docs/resources/appconfig_environment.md b/docs/resources/appconfig_environment.md index 061ab988d..c500ecd1a 100644 --- a/docs/resources/appconfig_environment.md +++ b/docs/resources/appconfig_environment.md @@ -1,5 +1,4 @@ --- -# generated by https://github.com/hashicorp/terraform-plugin-docs page_title: "awscc_appconfig_environment Resource - terraform-provider-awscc" subcategory: "" description: |- @@ -10,7 +9,21 @@ description: |- Resource Type definition for AWS::AppConfig::Environment +## Example Usage +```terraform +resource "awscc_appconfig_environment" "example" { + application_id = awscc_appconfig_application.example.application_id + name = "example" + description = "Example environment" + + + tags = [{ + key = "ModifiedBy" + value = "AWSCC" + }] +} +``` ## Schema @@ -57,4 +70,4 @@ Import is supported using the following syntax: ```shell $ terraform import awscc_appconfig_environment.example -``` +``` \ No newline at end of file diff --git a/examples/resources/awscc_appconfig_environment/appconfig_environment.tf b/examples/resources/awscc_appconfig_environment/appconfig_environment.tf new file mode 100644 index 000000000..3d8ef958b --- /dev/null +++ b/examples/resources/awscc_appconfig_environment/appconfig_environment.tf @@ -0,0 +1,11 @@ +resource "awscc_appconfig_environment" "example" { + application_id = awscc_appconfig_application.example.application_id + name = "example" + description = "Example environment" + + + tags = [{ + key = "ModifiedBy" + value = "AWSCC" + }] +} \ No newline at end of file diff --git a/templates/resources/appconfig_environment.md.tmpl b/templates/resources/appconfig_environment.md.tmpl new file mode 100644 index 000000000..838941923 --- /dev/null +++ b/templates/resources/appconfig_environment.md.tmpl @@ -0,0 +1,25 @@ +--- +page_title: "{{.Name}} {{.Type}} - {{.ProviderName}}" +subcategory: "" +description: |- +{{ .Description | plainmarkdown | trimspace | prefixlines " " }} +--- + +# {{.Name}} ({{.Type}}) + +{{ .Description | trimspace }} + +## Example Usage + +{{ tffile (printf "examples/resources/%s/appconfig_environment.tf" .Name)}} + +{{ .SchemaMarkdown | trimspace }} +{{- if .HasImport }} + +## Import + +Import is supported using the following syntax: + +{{ codefile "shell" .ImportFile }} + +{{- end }} \ No newline at end of file