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.09k forks source link

[New]: Support for Well Architected Tool resources #29755

Open rudolphjacksonm opened 1 year ago

rudolphjacksonm commented 1 year ago

Description

Hi all,

It would be great if the AWS provider could support the creation of Well Architected Tool resources like workloads, lenses, and potentially milestones. I've checked the collaboration guidelines and can see the service is supported and listed under names/names_data.csv, which is a good start.

To keep this feature request simple, for now I would like to request managing workloads via Terraform, since these are the first things you create whenever performing a Well-Architected Review using the tool. Custom lenses would be a nice follow-up.

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

Potential Terraform Configuration

resource "aws_wellarchitected_workload" "this" {
  account_ids = [
    "123456789012",
    "123456789011",
  ]
  architectural_design = var.architectural_design
  aws_regions = [
    "eu-west-1",
    "eu-west-2",
  ]
  description  = var.description
  environment  = var.environment
  industry     = var.industry
  industryType = var.industry_type
  lenses = [
    "wellarchitected",
    "serverless"
  ]
  pillar_priorities = [
    "operationalExcellence",
    "performance",
    "security",
    "reliability",
    "costOptimization",
    "sustainability",
  ]
  review_owner  = var.review_owner
  workload_name = var.workload_name
}

data "aws_wellarchitected_workload" "this" {
  workload_id = aws_wellarchitected_workload.this.id
}

References

AWS CLI documentation for create-workload: https://docs.aws.amazon.com/cli/latest/reference/wellarchitected/create-workload.html

AWS CLI documentation for get-workload, which I presume would be the same API used for the Terraform data source: https://docs.aws.amazon.com/cli/latest/reference/wellarchitected/get-workload.html

Would you like to implement a fix?

None

github-actions[bot] commented 1 year ago

Community Note

Voting for Prioritization

Volunteering to Work on This Issue