Upload File

This activity is used to upload a file into a bucket available in Amazon S3.

Technical Reference

 

 

 

 

 

INPUT

BucketName: Specify the name of the bucket into which the file has to be uploaded.

FilePath: Specify the path of the file which has to be uploaded into the bucket.

KeyName: Specify any key name for the file that is uploaded.

ReplaceFile: Specify true if the file has to replace an existing file and false if it need not be replaced.

 

 

 

 

 

MISC

Display Name: Displays the name of the activity. You can also customize the activity name to help troubleshoot issues faster. This name will be used for logging purposes.

SkipOnError: It specifies whether to continue executing the workflow even if it throws an error. This supports only Boolean value “True or False”. By default, it is set to “False.”

True: Continues the workflow to the next step

False: Stops the workflow and throws an error.

Version: It specifies the version of the Amazon S3 feature in use

 

 

OUTPUT

Output: Declare a variable here to see the result in an output box. This is not a mandatory field. However, to confirm if the file has been uploaded, a variable must be created here, to view the result in an output box.

Result: Declare a variable here to validate the activity. It accepts only Boolean value.

*Mandatory fields to execute the workflow

Use Case

The following example illustrates on how we can use the upload file activity to
upload a file into a bucket available in AmazonS3.

Steps to execute the bot

1.      Drag and drop an Amazon S3 scope into the workflow

2.     Click on the Amazon scope activity and enter the Access Key ID, Region End
Point and Secret Access Key which was given at the time of registration.

3.      Drag and drop an upload file activity into the amazon scope.

4.      Click on the activity

5.      Enter the name of the bucket into which the file has to be uploaded.

6.      Enter the path of the file which has to be uploaded into the bucket

7.      Enter any key name for the file that is to be uploaded. Here it is GATR.

8.      Enter the declared variable in the output box of the output segment. Here it
 is Cb

9.      Drag and drop a writelog activity below the create bucket activity.

10.   Enter the same variable declared above to the input string of the write log
 activity.

11.   Enter the log level as “info.”

12.   Execute the activity.

The bot executes the activity and uploads the given file into the bucket “testind1.”