Provides a SageMaker Device resource.
resource "aws_sagemaker_device" "example" {
device_fleet_name = aws_sagemaker_device_fleet.example.device_fleet_name
device {
device_name = "example"
}
}
This resource supports the following arguments:
device_fleet_name
- (Required) The name of the Device Fleet.device
- (Required) The device to register with SageMaker Edge Manager. See Device details below.description
- (Required) A description for the device.device_name
- (Optional) The name of the device.iot_thing_name
- (Optional) Amazon Web Services Internet of Things (IoT) object name.This resource exports the following attributes in addition to the arguments above:
id
- The id is constructed from device-fleet-name/device-name
.arn
- The Amazon Resource Name (ARN) assigned by AWS to this Device.In Terraform v1.5.0 and later, use an import
block to import SageMaker Devices using the device-fleet-name/device-name
. For example:
import {
to = aws_sagemaker_device.example
id = "my-fleet/my-device"
}
Using terraform import
, import SageMaker Devices using the device-fleet-name/device-name
. For example:
% terraform import aws_sagemaker_device.example my-fleet/my-device