Provides a resource to manage AWS Device Farm Device Pools.
resource "aws_devicefarm_device_pool" "example" {
name = "example"
project_arn = aws_devicefarm_project.example.arn
rule {
attribute = "OS_VERSION"
operator = "EQUALS"
value = "\"AVAILABLE\""
}
}
name
- (Required) The name of the Device Poolproject_arn
- (Required) The ARN of the project for the device pool.rule
- (Required) The device pool's rules. See Rule.description
- (Optional) The device pool's description.max_devices
- (Optional) The number of devices that Device Farm can add to your device pool.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.attribute
- (Optional) The rule's stringified attribute. Valid values are: APPIUM_VERSION
, ARN
, AVAILABILITY
, FLEET_TYPE
, FORM_FACTOR
, INSTANCE_ARN
, INSTANCE_LABELS
, MANUFACTURER
, MODEL
, OS_VERSION
, PLATFORM
, REMOTE_ACCESS_ENABLED
, REMOTE_DEBUG_ENABLED
.operator
- (Optional) Specifies how Device Farm compares the rule's attribute to the value. For the operators that are supported by each attribute. Valid values are: EQUALS
, NOT_IN
, IN
, GREATER_THAN
, GREATER_THAN_OR_EQUALS
, LESS_THAN
, LESS_THAN_OR_EQUALS
, CONTAINS
.value
- (Optional) The rule's value.This resource exports the following attributes in addition to the arguments above:
arn
- The Amazon Resource Name of this Device Pooltags_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 DeviceFarm Device Pools using their ARN. For example:
import {
to = aws_devicefarm_device_pool.example
id = "arn:aws:devicefarm:us-west-2:123456789012:devicepool:4fa784c7-ccb4-4dbf-ba4f-02198320daa1/4fa784c7-ccb4-4dbf-ba4f-02198320daa1"
}
Using terraform import
, import DeviceFarm Device Pools using their ARN. For example:
% terraform import aws_devicefarm_device_pool.example arn:aws:devicefarm:us-west-2:123456789012:devicepool:4fa784c7-ccb4-4dbf-ba4f-02198320daa1/4fa784c7-ccb4-4dbf-ba4f-02198320daa1