Skip to content

Commit

Permalink
Merge pull request #1763 from quixoticmonk/d-improve-awscc_appconfig_…
Browse files Browse the repository at this point in the history
…environment

docs: added example for awscc_appconfig_environment
  • Loading branch information
marcosentino authored Jun 10, 2024
2 parents 7b987af + b84864c commit 5314a23
Show file tree
Hide file tree
Showing 3 changed files with 51 additions and 2 deletions.
17 changes: 15 additions & 2 deletions docs/resources/appconfig_environment.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
---
# generated by https://github.com/hashicorp/terraform-plugin-docs
page_title: "awscc_appconfig_environment Resource - terraform-provider-awscc"
subcategory: ""
description: |-
Expand All @@ -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 generated by tfplugindocs -->
## Schema
Expand Down Expand Up @@ -57,4 +70,4 @@ Import is supported using the following syntax:

```shell
$ terraform import awscc_appconfig_environment.example <resource ID>
```
```
Original file line number Diff line number Diff line change
@@ -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"
}]
}
25 changes: 25 additions & 0 deletions templates/resources/appconfig_environment.md.tmpl
Original file line number Diff line number Diff line change
@@ -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 }}

0 comments on commit 5314a23

Please sign in to comment.