import com.adeptia.indigo.services.transport.amazons3.AmazonS3FileExchanger; // Get the values from context String key = context.get("amazons3Key"); String secretKey = context.get("secretKey"); String endPoint = context.get("endPoint"); String bucketName = context.get("bucketName"); AmazonS3FileExchanger amazonFileExchanger = new AmazonS3FileExchanger(key, secretKey, endPoint, bucketName); // To write file on Amazons3 amazonFileExchanger.putFileFromStream("fileName", inputStream);