Skip to content

MediaConvert Role ARN rejection

0

Starting about 1 day ago (first error at Dec 11, 2024 1:03:35 AM UTC), I began to receive a 400 Bad Request error response to all my requests to create MediaConvert jobs in us-west-2.

This is strange because it was working perfectly before (last successful job at Dec 10, 2024 11:43:34 PM UTC), and nothing has changed in my application or AWS account during that time.

The error message says (where ACCOUNT_ID is my actual account ID, redacted for posting here):

The role 'arn:aws:iam::ACCOUNT_ID:role/services/mediaconvert/MediaConvertRole-assets-prod' is not a valid ARN.

I have double checked and this is a valid ARN of a role which exists in the account and has the following Trust Relationship policy required for MediaConvert:

{
    "Version": "2012-10-17",
    "Statement": [
        {
            "Effect": "Allow",
            "Principal": {
                "Service": "mediaconvert.amazonaws.com"
            },
            "Action": "sts:AssumeRole"
        }
    ]
}

Could I be doing something wrong, or is this a fault with AWS?

3 Answers
1

After further testing I have determined that the problem relates to using an IAM role with a path. Only roles in the default path are accepted.

I created two otherwise identical roles:

❌ arn:aws:iam::ACCOUNT_ID:role/test/mediaconvert-test (doesn't work)

✅ arn:aws:iam::ACCOUNT_ID:role/mediaconvert-test-pathless (works)

This appears to be a bug in the role ARN validation on AWS side.

answered 2 years ago

0

Based on the information you've provided, it appears that you're encountering an unexpected issue with AWS Elemental MediaConvert. Since you've confirmed that the role ARN is valid and the trust relationship policy is correctly set up, this seems to be an unusual error that may be related to a service-side problem rather than an issue with your configuration.

Given that the error started occurring suddenly without any changes on your end, and considering that the role was working correctly before, this could potentially be a temporary service issue or glitch on AWS's side.

To troubleshoot this issue, you can try the following steps:

  1. Double-check that the IAM role still exists and has the correct permissions. Even though you've confirmed the trust relationship, it's worth verifying that no unexpected changes have occurred to the role itself.

  2. Attempt to create a job using a different IAM role (if possible) to see if the issue is specific to that particular role.

  3. Try creating a job in a different AWS region to determine if the problem is isolated to us-west-2.

  4. Review any recent AWS service health announcements or your AWS Personal Health Dashboard for any reported issues with MediaConvert in your region.

  5. If the problem persists, it would be advisable to contact AWS Support. When reaching out to them, provide the following information:

    • The AWS Region you're using (us-west-2)
    • Your job ID (if available)
    • Your AWS account ID
    • The exact error message you're receiving
    • The timeframe of when the issue started and when it was last working correctly

Given the nature of the error and the fact that it started occurring suddenly without changes on your end, this could indeed be a fault with AWS. However, only AWS support can confirm this definitively and provide a resolution if it is a service-side issue.
Sources
Troubleshooting - MediaConvert
Troubleshooting AWS Elemental MediaConvert identity and access - MediaConvert

answered 2 years ago

  • I have also tested creating a job in ap-southeast-2, in another account with an equivalent role, and I receive the same error.

0

Yes you are correct -- the issue with a Path parameter in the Role was real, and it has been remedied. Please let us know if you see the issue persisting via a support case.

AWS

answered 2 years ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.