OnTask’s Amazon S3 Integration
OnTask’s Amazon S3 integration allows you to export documents to your designated Amazon S3 bucket as part of your workflows. Keep your teams connected, without compromising document security or productivity.
Use this quick overview to get set up.
Before You Begin
- You’ll need a couple of things to get started: An OnTask account – you can go to https://app.ontask.io/signup to create a free account.
- Access to Amazon S3– you’ll connect to your Amazon S3 account through OnTask, so make sure to have your credentials ready. You can find more information about programmatic access to Amazon S3 here.
Creating the Workflow:
First, you’ll need to log into your OnTask account at https://app.ontask.io and create a new workflow. Then, edit the workflow in the workflow builder, give it a name, and add the following tasks:
1- Web Form task
The first task in the workflow is a web form. You’ll need to create two tasks within this web form:
a. File upload
Create a file upload field and give it the property name of Test_Upload. You can leave the rest of the options as their default setting.
b. Single-line text
Create a Single-Line Text field and give it a property name of File_Name. This is where the user will enter the document’s file name that will be used as a key in your Amazon S3 account.
2- Export Document task
For the second task, choose an export document. Select the document from the previous web form, Test_Upload. You’ll set up the destination setting for this task in the next section of this article.
Your workflow should look like this in the workflow builder:
3- Connecting to Amazon S3
In the export document task inside the destination section, click on Amazon S3.
Now that your Amazon S3 account is configured, let’s choose where to send your document. For AWS, you configure an S3 bucket and document key, which you will add to the destination area of the document settings pop-up. Be sure to fill out the rest of the fields. For AWS, the file name can be used as your document key. By default, documents are stored as private within S3. To allow access, you may select a different ACL rule.
When this is done, you are ready to publish your workflow. Click the green “Publish” button in the top right corner of the workflow builder.
Now that your integration is set up, you’re ready to run your workflow, upload a document, and then have it automatically sent to Amazon S3. When you log in to Amazon S3, you should see your document in the storage bucket that you configured in the export document task.
In this example, you used an upload field in a web form to provide a document, however, you can send documents to Amazon S3 from other OnTask actions as well, including: