Terraform resource for managing an AWS Rekognition Collection.
resource "aws_rekognition_collection" "example" {
collection_id = "my-collection"
tags = {
example = 1
}
}
The following arguments are required:
collection_id
- (Required) The name of the collectionThe following arguments are optional:
tags
- (Optional) A map of tags assigned to the WorkSpaces Connection Alias. If configured with a provider default_tags
configuration block present, tags with matching keys will overwrite those defined at the provider-level.This resource exports the following attributes in addition to the arguments above:
arn
- ARN of the Collection.tags_all
- A map of tags assigned to the resource, including those inherited from the provider default_tags
configuration block.face_model_version
- The Face Model Version that the collection was initialized withcreate
- (Default 2m
)In Terraform v1.5.0 and later, use an import
block to import Rekognition Collection using the example_id_arg
. For example:
import {
to = aws_rekognition_collection.example
id = "collection-id-12345678"
}
Using terraform import
, import Rekognition Collection using the example_id_arg
. For example:
% terraform import aws_rekognition_collection.example collection-id-12345678