Writing s3 bucket var to env