Provides a SageMaker Device Fleet resource.
resource "aws_sagemaker_device_fleet" "example" {
device_fleet_name = "example"
role_arn = aws_iam_role.test.arn
output_config {
s3_output_location = "s3://${aws_s3_bucket.example.bucket}/prefix/"
}
}
This resource supports the following arguments:
device_fleet_name
- (Required) The name of the Device Fleet (must be unique).role_arn
- (Required) The Amazon Resource Name (ARN) that has access to AWS Internet of Things (IoT).output_config
- (Required) Specifies details about the repository. see Output Config details below.description
- (Optional) A description of the fleet.enable_iot_role_alias
- (Optional) Whether to create an AWS IoT Role Alias during device fleet creation. The name of the role alias generated will match this pattern: "SageMakerEdge-{DeviceFleetName}".tags
- (Optional) A map of tags to assign to the resource. If configured with a provider default_tags
configuration block present, tags with matching keys will overwrite those defined at the provider-level.s3_output_location
- (Required) The Amazon Simple Storage (S3) bucker URI.kms_key_id
- (Optional) The AWS Key Management Service (AWS KMS) key that Amazon SageMaker uses to encrypt data on the storage volume after compilation job. If you don't provide a KMS key ID, Amazon SageMaker uses the default KMS key for Amazon S3 for your role's account.This resource exports the following attributes in addition to the arguments above:
id
- The name of the Device Fleet.arn
- The Amazon Resource Name (ARN) assigned by AWS to this Device Fleet.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 SageMaker Device Fleets using the name
. For example:
import {
to = aws_sagemaker_device_fleet.example
id = "my-fleet"
}
Using terraform import
, import SageMaker Device Fleets using the name
. For example:
% terraform import aws_sagemaker_device_fleet.example my-fleet