The region from the initial session (likely eu-west-1) is used when running all `aws-cli` commands. This can be fixed by outputting `--region [region]` in the generated command.