forked from hashicorp/terraform-provider-awscc
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request hashicorp#1736 from quixoticmonk/d-improve-awscc_n…
…eptune_db_cluster docs: added example for awscc_neptune_db_cluster
- Loading branch information
Showing
3 changed files
with
73 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
20 changes: 20 additions & 0 deletions
20
examples/resources/awscc_neptune_db_cluster/neptune_db_cluster.tf
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
resource "awscc_neptune_db_cluster" "default" { | ||
db_cluster_identifier = "example" | ||
backup_retention_period = 5 | ||
preferred_backup_window = "07:00-09:00" | ||
iam_auth_enabled = true | ||
db_port = 8182 | ||
copy_tags_to_snapshot = true | ||
enable_cloudwatch_logs_exports = ["audit"] | ||
engine_version = "1.3.1.0" | ||
preferred_maintenance_window = "sun:10:00-sun:10:30" | ||
storage_encrypted = true | ||
# Use ARN from awscc_kms_key to avoid drift due to short id | ||
# Reference : https://github.com/hashicorp/terraform-provider-awscc/issues/1735 | ||
kms_key_id = awscc_kms_key.example.arn | ||
|
||
tags = [{ | ||
key = "Modified By" | ||
value = "AWSCC" | ||
}] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
--- | ||
page_title: "{{.Name}} {{.Type}} - {{.ProviderName}}" | ||
subcategory: "" | ||
description: |- | ||
{{ .Description | plainmarkdown | trimspace | prefixlines " " }} | ||
--- | ||
|
||
# {{.Name}} ({{.Type}}) | ||
|
||
{{ .Description | trimspace }} | ||
|
||
## Example Usage | ||
|
||
### Create a Neptune DB cluster. If no subnet group is specified, a default subnet group is created. | ||
|
||
{{ tffile (printf "examples/resources/%s/neptune_db_cluster.tf" .Name)}} | ||
|
||
{{ .SchemaMarkdown | trimspace }} | ||
{{- if .HasImport }} | ||
|
||
## Import | ||
|
||
Import is supported using the following syntax: | ||
|
||
{{ codefile "shell" .ImportFile }} | ||
|
||
{{- end }} |