fixed the template to separate the environments and add some uniqueness to the uploaded file to s3