AWS error: You must use the subscription API to subscribe your account to the service before using this operation


AWS error:

You must use the subscription API to subscribe your account to the service before using this operation.

Solution to fix:

Step 1: Install aws-cli

curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o "awscliv2.zip"
unzip awscliv2.zip
sudo ./aws/install

Step 2: configure

[root@tutorialspots ~]# aws configure
AWS Access Key ID [None]: AKIAVY****U5D4R5QZ74
AWS Secret Access Key [None]: 2GDf/*********************NVmne
Default region name [None]: us-east-1
Default output format [None]:

Step 3: Get Endpoint

[root@tutorialspots ~]# aws mediaconvert describe-endpoints --region us-east-1
{
    "Endpoints": [
        {
            "Url": "https://q25wbt2lc.mediaconvert.us-east-1.amazonaws.com"
        }
    ]
}

Now you must use API with this endpoint

Leave a Reply