Resource: aws_resourceexplorer2_view

Provides a resource to manage a Resource Explorer view.

Example Usage

resource "aws_resourceexplorer2_index" "example" {
  type = "LOCAL"
}

resource "aws_resourceexplorer2_view" "example" {
  name = "exampleview"

  filters {
    filter_string = "resourcetype:ec2:instance"
  }

  included_property {
    name = "tags"
  }

  depends_on = [aws_resourceexplorer2_index.example]
}

Argument Reference

This resource supports the following arguments:

Filters

The filters block supports the following:

Included Properties

The included_property block supports the following:

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 Resource Explorer views using the arn. For example:

import {
  to = aws_resourceexplorer2_view.example
  id = "arn:aws:resource-explorer-2:us-west-2:123456789012:view/exampleview/e0914f6c-6c27-4b47-b5d4-6b28381a2421"
}

Using terraform import, import Resource Explorer views using the arn. For example:

% terraform import aws_resourceexplorer2_view.example arn:aws:resource-explorer-2:us-west-2:123456789012:view/exampleview/e0914f6c-6c27-4b47-b5d4-6b28381a2421