Provides a resource to manage a Resource Explorer index in the current AWS Region.
resource "aws_resourceexplorer2_index" "example" {
type = "LOCAL"
}
This resource supports the following arguments:
type
- (Required) The type of the index. Valid values: AGGREGATOR
, LOCAL
. To understand the difference between LOCAL
and AGGREGATOR
, see the _AWS Resource Explorer User Guide_.tags
- (Optional) Key-value map of resource tags. If configured with a provider default_tags
configuration block present, tags with matching keys will overwrite those defined at the provider-level.create
- (Default 2h
)update
- (Default 2h
)delete
- (Default 10m
)This resource exports the following attributes in addition to the arguments above:
arn
- Amazon Resource Name (ARN) of the Resource Explorer index.tags_all
- A map of tags assigned to the resource, including those inherited from the provider default_tags
configuration block.In Terraform v1.5.0 and later, use an import
block to import Resource Explorer indexes using the arn
. For example:
import {
to = aws_resourceexplorer2_index.example
id = "arn:aws:resource-explorer-2:us-east-1:123456789012:index/6047ac4e-207e-4487-9bcf-cb53bb0ff5cc"
}
Using terraform import
, import Resource Explorer indexes using the arn
. For example:
% terraform import aws_resourceexplorer2_index.example arn:aws:resource-explorer-2:us-east-1:123456789012:index/6047ac4e-207e-4487-9bcf-cb53bb0ff5cc