You can’t, unless you transform cobol to cobol and run the emulator on aws. It will still manage to fail you in some way