AWS S3 Actions¶
Actions are the operations (or API operations) that you can perform on AWS S3 by simple drag-drop and data mapping of elements and values from input trigger, derived values using formulas or a desired constant that you may wish to map.
The action that you see below automate what you can do manually on AWS S3.
As shown in Figure 1, you can create a file in your AWS S3 bucket based on response to a trigger event.
Upload Object or File¶
This action uploads object or file into the specified bucket. You can map fields data using trigger data or you can use Excel-style functions to transform values from the trigger event.
You can configure your action parameters to define what data you want to store in the file. You can construct the file's content by typing the input or using values for the input trigger event. You can also transform the values from trigger event or your typed text using Excel-style function.
If the trigger in your flow provides a file as the value, you can directly save that file in your S3 bucket. A couple of examples of such scenarios are:
- Gmail Trigger or Outlook Trigger - Store the email attachment in S3 bucket.
- Bulk Scheduled Polling on Dynamics 365 CRM or Salesforce - Storing the CSV file to an AWS S3 bucket.
Set up an AWS S3 action¶
Fill up the following values to set up your AWS S3 action:
-
Bucket Name - Bucket in which you want to create the object. For more information about AWS S3 buckets refer to the official document here.
-
Object data or value - Contents to be added as part of an object or file.
- Object Name or Key - This is an optional field. If this field is not specified, then Connect iPaaS will use an auto-generated name. While specifying the Object Name, specify the extension. If the extension is not provided the object might not be readable.
- Folder Name - This is an optional field and can be added form
Add Optional Field
dropdown. If the folder name is not specified, the object is added at the bucket's root. If you mention the folder name, Connect iPaaS will check if the folder exists. If the object exists, the object is added to it, else a new folder is created and object is stored in it.
As shown below in Figure 2, We have selected weiztestbucket
and Object data built using string, trigger data of service now and excel function like NOW()
. If the Test
folder is not present in the weiztestbucket
, then Connect iPaaS will first create Test
folder in the bucket. And in this example we have not mentioned the Object name
Connect iPaaS will give an auto-generated name to the object starting with RoboMQ
.