AWS S3

    The configuration of the Amazon Web Services Simple Cloud Storage can be done through a variety of ways. Most require you to have an Access Key and a Secret Key.

    Best practice is to create a specific IAM user for Apache Hop so that if needed you can fine-tune the permissions (set it to read-only for example) or indeed delete the user if it’s no longer needed.

    For a complete list see Working with credentials in the AWS documentation.

    You can create a file in your home folder in the .aws/credentials file which then contains content like this:

    Variables

    You can set the following system environment variables:

    • : set it to your AWS access key

    • AWS_SECRET_ACCESS_KEY : set it to your secret access key

    HOP_S3_VFS_PART_SIZE

    This needs to be set as a global Hop configuration variable (in hop-config.json). You can use the Tools/Edit config variables menu in Hop GUI or you can use the hop-conf command line tool to do so.

    Acceptable are 5MB as a minimum and as a maximum value.

    If this variable is not set, 5MB will be taken as value and a message will be printed on the console while creating files on S3:

    To test if the configuration works you can simply upload a small CSV file in an S3 bucket and then use File/Open in Hop GUI. Then you type in s3:// as a file location and hit enter (or click the refresh button). Browse to the CSV file you uploaded and open it. If all is configured correctly you should be able to see the content in the Hop GUI.