Provides a resource to manage AWS Device Farm Instance Profiles. ∂
resource "aws_devicefarm_instance_profile" "example" {
name = "example"
}
description
- (Optional) The description of the instance profile.exclude_app_packages_from_cleanup
- (Optional) An array of strings that specifies the list of app packages that should not be cleaned up from the device after a test run.name
- (Required) The name for the instance profile.package_cleanup
- (Optional) When set to true
, Device Farm removes app packages after a test run. The default value is false
for private devices.reboot_after_use
- (Optional) When set to true
, Device Farm reboots the instance after a test run. The default value is true
.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.This resource exports the following attributes in addition to the arguments above:
arn
- The Amazon Resource Name of this instance profile.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 DeviceFarm Instance Profiles using their ARN. For example:
import {
to = aws_devicefarm_instance_profile.example
id = "arn:aws:devicefarm:us-west-2:123456789012:instanceprofile:4fa784c7-ccb4-4dbf-ba4f-02198320daa1"
}
Using terraform import
, import DeviceFarm Instance Profiles using their ARN. For example:
% terraform import aws_devicefarm_instance_profile.example arn:aws:devicefarm:us-west-2:123456789012:instanceprofile:4fa784c7-ccb4-4dbf-ba4f-02198320daa1