Skip to content

Commit

Permalink
docs: added example for resilience hub resiliency policy (#2106)
Browse files Browse the repository at this point in the history
* docs: added example for resilience hub resiliency policy

* Create resiliency_policy.md.tmpl

* Update resiliencehub_resiliency_policy.md

* Update resiliency_policy.tf

* Update resiliencehub_resiliency_policy.md

* Update resiliencehub_resiliency_policy.md

* Update resiliency_policy.tf

* Update resiliencehub_resiliency_policy.md

* Update resiliency_policy.tf

* r/awscc_resiliencehub_resiliency_policy(doc): tidy example

---------

Co-authored-by: Jared Baker <[email protected]>
  • Loading branch information
LearningNewbie and jar-b authored Feb 4, 2025
1 parent 94a03e2 commit 0087dd6
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 13 deletions.
6 changes: 0 additions & 6 deletions docs/resources/resiliencehub_resiliency_policy.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,6 @@ Creates a mission-critical resiliency policy with defined Recovery Time Objectiv
~> This example is generated by LLM using Amazon Bedrock and validated using terraform validate, apply and destroy. While we strive for accuracy and quality, please note that the information provided may not be entirely error-free or up-to-date. We recommend independently verifying the content.

```terraform
# Get current AWS region
data "aws_region" "current" {}
# Get current AWS account ID
data "aws_caller_identity" "current" {}
resource "awscc_resiliencehub_resiliency_policy" "example" {
policy_name = "example-policy"
policy_description = "Example Resiliency Policy"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,3 @@
# Get current AWS region
data "aws_region" "current" {}

# Get current AWS account ID
data "aws_caller_identity" "current" {}

resource "awscc_resiliencehub_resiliency_policy" "example" {
policy_name = "example-policy"
policy_description = "Example Resiliency Policy"
Expand Down Expand Up @@ -37,4 +31,4 @@ resource "awscc_resiliencehub_resiliency_policy" "example" {
key = "Environment"
value = "example"
}]
}
}

0 comments on commit 0087dd6

Please sign in to comment.