Add main function; move credentials into s3 URI.