Skip to content

Commit

Permalink
Update resiliencehub_app.tf
Browse files Browse the repository at this point in the history
  • Loading branch information
LearningNewbie authored Nov 18, 2024
1 parent 48b247a commit 3895249
Showing 1 changed file with 15 additions and 12 deletions.
27 changes: 15 additions & 12 deletions examples/resources/awscc_resiliencehub_app/resiliencehub_app.tf
Original file line number Diff line number Diff line change
@@ -1,37 +1,40 @@
resource "awscc_resiliencehub_app" "example" {
resource "awscc_resiliencehub_app" "main" {
name = "test-app"
description = "This is a test app."
app_template_body = jsonencode({
format_version = 2
resources = [{
name = ""
type = ""
name = "test-app"
type = "AWS::EC2::Instance"
parameters = {
tags = {
env = "dev"
}
}
}]
})
resiliency_policy_arn = awscc_resiliencehub_resiliency_policy.example.arn
resiliency_policy_arn = awscc_resiliencehub_resiliency_policy.test.arn
resource_mappings = [{
physical_resource_id = {
identifier = "s3://terraform-state-files/test-app.tfstate"
type = "Native"
aws_region = ""
aws_account_id = ""
aws_region = "us-west-2"
aws_account_id = "112223333444"
}
mapping_type = "Terraform"
resource_name = ""
resource_type = ""
resource_name = "test-app"
resource_type = "AWS::EC2::Instance"
logical_resource = {
logical_resource_name = ""
resource_mapping_name = ""
resource_mapping_arn = awscc_resiliencehub_app.example.arn
logical_resource_name = "test-app"
resource_mapping_arn = awscc_resiliencehub_app.app.arn
}

}]
event_subscriptions = [{
name = "test-app"
sns_topic_arn = awscc_sns_topic.sns_example.arn
}]
app_assessment_schedule = "Daily"
event_subscriptions = []
permission_model = {
type = "RoleBased"
invoker_role_name = "resilience-hub-test-app-role"
Expand Down

0 comments on commit 3895249

Please sign in to comment.