Terraform resource for managing an AWS Rekognition Project.
resource "aws_rekognition_project" "example" {
name = "example-project"
auto_update = "ENABLED"
feature = "CONTENT_MODERATION"
}
The following arguments are required:
name
- (Required) Desired name of the projectThe following arguments are optional:
auto_update
- (Optional) Specify if automatic retraining should occur. Valid values are ENABLED
or DISABLED
. Defaults to DISABLED
feature
- (Optional) Specify the feature being customized. Valid values are CONTENT_MODERATION
or CUSTOM_LABELS
. Defaults to CUSTOM_LABELS
This resource exports the following attributes in addition to the arguments above:
arn
- ARN of the Project.create
- (Default 10m
)delete
- (Default 10m
)In Terraform v1.5.0 and later, use an import
block to import Rekognition Project using the example_id_arg
. For example:
import {
to = aws_rekognition_project.example
id = "project-id-12345678"
}
Using terraform import
, import Rekognition Project using the name
. For example:
% terraform import aws_rekognition_project.example project-id-12345678