Skip to content

Resource: awsDevicefarmUpload

Provides a resource to manage AWS Device Farm Uploads.

\~> NOTE: AWS currently has limited regional support for Device Farm (e.g., usWest2). See AWS Device Farm endpoints and quotas for information on supported regions.

Example Usage

/*Provider bindings are generated by running cdktf get.
See https://cdk.tf/provider-generation for more details.*/
import * as aws from "./.gen/providers/aws";
const awsDevicefarmProjectExample = new aws.devicefarmProject.DevicefarmProject(
  this,
  "example",
  {
    name: "example",
  }
);
const awsDevicefarmUploadExample = new aws.devicefarmUpload.DevicefarmUpload(
  this,
  "example_1",
  {
    name: "example",
    projectArn: awsDevicefarmProjectExample.arn,
    type: "APPIUM_JAVA_TESTNG_TEST_SPEC",
  }
);
/*This allows the Terraform resource name to match the original name. You can remove the call if you don't need them to match.*/
awsDevicefarmUploadExample.overrideLogicalId("example");

Argument Reference

  • contentType - (Optional) The upload's content type (for example, application/octet-stream).
  • name - (Required) The upload's file name. The name should not contain any forward slashes (/). If you are uploading an iOS app, the file name must end with the .ipa extension. If you are uploading an Android app, the file name must end with the .apk extension. For all others, the file name must end with the .zip file extension.
  • projectArn - (Required) The ARN of the project for the upload.
  • type - (Required) The upload's upload type. See AWS Docs for valid list of values.

Attributes Reference

In addition to all arguments above, the following attributes are exported:

  • arn - The Amazon Resource Name of this upload.
  • url - The presigned Amazon S3 URL that was used to store a file using a PUT request.
  • category - The upload's category.
  • metadata - The upload's metadata. For example, for Android, this contains information that is parsed from the manifest and is displayed in the AWS Device Farm console after the associated app is uploaded.

Import

DeviceFarm Uploads can be imported by their arn:

$ terraform import aws_devicefarm_upload.example arn:aws:devicefarm:us-west-2:123456789012:upload:4fa784c7-ccb4-4dbf-ba4f-02198320daa1