hashicorp / terraform-provider-aws

The AWS Provider enables Terraform to manage AWS resources.
https://registry.terraform.io/providers/hashicorp/aws
Mozilla Public License 2.0
9.74k stars 9.1k forks source link

[New Service]: Resilience Hub #35803

Open FrancisRalph opened 7 months ago

FrancisRalph commented 7 months ago

Description

AWS Resilience Hub has been out since late 2021, and it would be great to have terraform support for its resources to reduce the manual effort required when setting up Resilience Hub apps.

From AWS:

AWS Resilience Hub enables you to define your resilience goals, assess your resilience posture against those goals, and implement recommendations for improvement based on the AWS Well-Architected Framework. Within AWS Resilience Hub, you can also create and run AWS Fault Injection Service (AWS FIS) experiments, which mimic real-life disruptions to your application to help you better understand dependencies and uncover potential weaknesses.

It's already supported in the awscc provider (https://registry.terraform.io/providers/hashicorp/awscc/latest/docs/resources/resiliencehub_app), but I haven't been able to make it work (https://github.com/hashicorp/terraform-provider-awscc/issues/1429) so I thought it would be helpful to have it implemented in the aws provider itself to iron out any issues.

Requested Resource(s) and/or Data Source(s)

Potential Terraform Configuration

resource "aws_resiliencehub_app" "app" {
  name = "App"
  description = "A resilience hub app."

  resource_mapping {
    physical_resource_id = {
      identifier = "s3://bucket/state_file.tfstate"
      type = "Native"
    }
    mapping_type = "Terraform"
    terraform_source_name = "state_file.tfstate"
  }

  resource_mapping {
    # Other resource mappings...
  }

  resilience_policy_arn = aws_resiliencehub_policy.policy.arn
  invoker_role_name = aws_iam_role.resilience_hub_app_invoker_role.arn
  app_assessment_schedule = "Disabled"
  # ...
}

References

https://pkg.go.dev/github.com/aws/aws-sdk-go@v1.50.17/service/resiliencehub/resiliencehubiface

Would you like to implement a fix?

None

github-actions[bot] commented 7 months ago

Community Note

Voting for Prioritization

Volunteering to Work on This Issue

FrancisRalph commented 7 months ago

Oh seems there's an open PR for this: https://github.com/hashicorp/terraform-provider-aws/pull/25123