Resource: aws_xray_group

Creates and manages an AWS XRay Group.

Example Usage

resource "aws_xray_group" "example" {
  group_name        = "example"
  filter_expression = "responsetime > 5"

  insights_configuration {
    insights_enabled      = true
    notifications_enabled = true
  }
}

Argument Reference

Nested fields

insights_configuration

Attribute Reference

This resource exports the following attributes in addition to the arguments above:

Import

In Terraform v1.5.0 and later, use an import block to import XRay Groups using the ARN. For example:

import {
  to = aws_xray_group.example
  id = "arn:aws:xray:us-west-2:1234567890:group/example-group/TNGX7SW5U6QY36T4ZMOUA3HVLBYCZTWDIOOXY3CJAXTHSS3YCWUA"
}

Using terraform import, import XRay Groups using the ARN. For example:

% terraform import aws_xray_group.example arn:aws:xray:us-west-2:1234567890:group/example-group/TNGX7SW5U6QY36T4ZMOUA3HVLBYCZTWDIOOXY3CJAXTHSS3YCWUA