How do I unsubscribe from a Device Farm unmetered (unlimited) plan?

Last updated: 2019-10-11

I'm being charged for an AWS Device Farm unmetered plan, but I don't use these device slots. How do I unsubscribe?

Short Description

Device Farm unmetered pricing plans allow you to purchase device slots and pay a flat monthly rate for unlimited testing or remote access using those slots. If you need to do a lot of testing, an unmetered plan can help you save on costs compared to default pay-as-you-go pricing.

However, if you aren't using device slots that you purchased, you can unsubscribe and return to paying only for the device minutes that you use.

Resolution

If you haven't already, create and attach an AWS Identity and Access Management (AWS IAM) policy that allows you (or another IAM identity in your AWS account) to perform the required operations. This JSON policy document provides the required permissions:

{
    "Version": "2012-10-17",
    "Statement": [
        {
            "Effect": "Allow",
            "Action": [
                "devicefarm:GetOfferingStatus",
                "devicefarm:GetAccountSettings",
                "devicefarm:ListOfferings",
                "devicefarm:ListProjects",
                "devicefarm:RenewOffering"
            ],
            "Resource": "*"
        }
    ]
}

Then, change the number of device slots that you need to 0 using the AWS Management Console or the AWS Command Line Interface (AWS CLI).

Note: Purchased device slots have already been applied to your current bill, so a decrease in slots takes effect one month after you make the change. You can continue to use your device slots until that time.

Use the Device Farm console

1.    In the Device Farm console, choose Device Farm settings. The Account settings page opens to the Device slots tab.

2.    Under Purchase and manage device slots, for the Automated testing and Remote access device slots that you will have for next month (From…you will have), change the amount to 0.

3.    Choose Save.

For more information, see Purchase Device Slots (Console).

Use the AWS CLI

1.    List the plan details for your purchased device slots by running the get-offering-status command:

aws devicefarm get-offering-status --region us-west-2

In the output, note the offering id for each device slot that you want to unsubscribe. For example output, see Purchase a Device Slot (AWS CLI).

2.    "Renew" your unmetered plan to have 0 device slots by running the renew-offering command:

aws devicefarm renew-offering --offering-id 1234A56B-78C9-012D-3EF4-ABC56789D0E1 --quantity 0 --region us-west-2

Note: Replace 1234A56B-78C9-012D-3EF4-ABC56789D0E1 with an offering id that you noted in the previous step.

3.    (Optional) To see the full history of your Device Farm unmetered plan transactions, run the list-offering-transactions command:

aws devicefarm list-offering-transactions --region us-west-2

Did this article help you?

Anything we could improve?


Need more help?