Write AWS credential file with env vars