Want to know how RemoteBatch code should be written?

I have data that requires intensive computing and want to use RemoteBatch to calculate it on AWS.

AWS is already set up. Also tried simple examples (RemoteBatchSubmit[[env,2+2] or RemoteBatchMapSubmit[env,#^2&,Range[1, 100]]). This works!

However, in practice, it fails.

Can anyone help me check the code?

I can’t find a suitable case in the community and documentation center.

Not sure how to fix the code.