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 Resource]: IoT Defender Metric #35185

Open PeterBurner opened 8 months ago

PeterBurner commented 8 months ago

Description

Currently there is no way to create/lookup AWS IoT Defender metrics with the AWS Terraform provider. This functionality is supported both by the AWS CLI and the awscc provider technical preview.

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

Potential Terraform Configuration

resource "aws_iot_custom_metric" "heap_space" {
  metric_name  = "Heap_AvailableSpaceInBytes"
  display_name = "Heap / Available Space in Bytes"
  metric_type  = "number"

  tags = {
    Name    = "Heap_AvailableSpaceInBytes"
    Service = "IoT Core"
  }
}

data "aws_iot_custom_metric" "heap_space" {
  metric_name = "Heap_AvailableSpaceInBytes"
}

data "aws_iot_custom_metrics" "all_metrics" {}

References

Would you like to implement a fix?

No

github-actions[bot] commented 8 months ago

Community Note

Voting for Prioritization

Volunteering to Work on This Issue