Resource: aws_applicationinsights_application

Provides a ApplicationInsights Application resource.

Example Usage

resource "aws_applicationinsights_application" "example" {
  resource_group_name = aws_resourcegroups_group.example.name
}

resource "aws_resourcegroups_group" "example" {
  name = "example"

  resource_query {
    query = jsonencode({
      ResourceTypeFilters = [
        "AWS::EC2::Instance"
      ]

      TagFilters = [
        {
          Key = "Stage"
          Values = [
            "Test"
          ]
        }
      ]
    })
  }
}

Argument Reference

The following arguments are required:

The following arguments are optional:

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 ApplicationInsights Applications using the resource_group_name. For example:

import {
  to = aws_applicationinsights_application.some
  id = "some-application"
}

Using terraform import, import ApplicationInsights Applications using the resource_group_name. For example:

% terraform import aws_applicationinsights_application.some some-application