Skip to content

Elastic Transcoder migration to MediaConvert

0

Hi,

I just kicked off the migration process. I've installed the latest CLI and node from AWS CloudShell. I've also uploaded all the necessary ***.js files from GitHub to CloudShell. In my first attempt to convert one of the jobs, I've got the below error. I looked for the job module in GitHub but couldn't find anything other than a few *.js files. Am I missing anything? Please help. Thank you

I run the below from AWS Console CloudShell.

~ $ node convert-job.js \ --region ap-southeast-1 \ --job-id 123456054364-bsiq7w \ --role-arn arn:aws:iam::NNNNNNNNNNNN:user/MyUserName node:internal/modules/cjs/loader:1215 throw err; ^ Error: Cannot find module 'job' Require stack:

  • /home/cloudshell-user/convert-job.js at Module._resolveFilename (node:internal/modules/cjs/loader:1212:15) at Module._load (node:internal/modules/cjs/loader:1043:27) at Module.require (node:internal/modules/cjs/loader:1298:19) at require (node:internal/modules/helpers:182:18) at Object.<anonymous> (/home/cloudshell-user/convert-job.js:8:13) at Module._compile (node:internal/modules/cjs/loader:1529:14) at Module._extensions..js (node:internal/modules/cjs/loader:1613:10) at Module.load (node:internal/modules/cjs/loader:1275:32) at Module._load (node:internal/modules/cjs/loader:1096:12) at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:164:12) { code: 'MODULE_NOT_FOUND', requireStack: [ '/home/cloudshell-user/convert-job.js' ] }

Node.js v20.19.4

asked a year ago276 views

1 Answer
0

It looks like you're encountering an error while trying to migrate from Amazon Elastic Transcoder to AWS Elemental MediaConvert. The error message indicates that your script is trying to import a module called 'job' that cannot be found.

This is likely because you need to download all the necessary JavaScript files for the migration tool. The error "Cannot find module 'job'" suggests that your convert-job.js script is trying to require a file named job.js that should be in the same directory.

When migrating from Elastic Transcoder to MediaConvert, you need to ensure you have all the required script files in your CloudShell environment. The migration tools typically include multiple JavaScript files that work together.

Please ensure that all js and other dependencies files are present in the directory while running the command.

Additionally, you might be experiencing a permissions issue with CloudShell itself. The error could be related to missing permissions like cloudshell:PutCredentials or cloudshell:ApproveCommand. Adding the cloudshell:* permission to your IAM role might help resolve this issue.

Remember that Amazon Elastic Transcoder will be discontinued on November 13, 2025, so it's important to complete your migration to AWS Elemental MediaConvert before that date. MediaConvert offers more advanced features and better pricing compared to Elastic Transcoder.
Sources
Support for Amazon Elastic Transcoder ending soon | AWS for M&E Blog
Migrating workflows from Amazon Elastic Transcoder to AWS Elemental MediaConvert | AWS for M&E Blog
Migrating workflows from Elastic Transcoder to Amazon Elemental MediaConvert | AWS for M&E Blog
AWS CLI permissions error? when running "aws ec2 describe-instances --output text > ec2s.txt" | AWS re:Post

For further troubleshooting. Please open a support case with AWS using the following https://support.console.aws.amazon.com/support/home#/case/create

answered a year ago

AWS
SUPPORT ENGINEER

revised a year 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.