Using Amazon S3 in a Process Flow

Adeptia Connect enables you to use Amazon S3 as an Application Source or Target in a Process Flow. You can also create an Event that uses Amazon S3, and bind that Event with the Process Flow. Refer to the following sections that guide you on how to use Amazon S3 in a Process Flow.


 Amazon S3 as an application source

This section helps you creating Amazon S3 as an Application Source that can be used in a Process Flow as an activity.

Follow the steps given below to create Amazon S3 type of application source.

  1. Click Configure > SOURCES > Application Source.

  2. Click Create Application Source.



  3. In the Name field, enter a name for the Amazon S3 application source.

  4. In the Description field, enter a description for the Amazon S3 application source.

  5. In the Application field, select Amazon S3 as the type of application source.

  6. In the Account field, select the Amazon S3 account that you want to use to connect to the Amazon S3 source.
    You can also create an Amazon S3 account and use it by clicking the  icon, and then providing the following information on the Create New Account screen.

    Field Name

    Description

    A short, descriptive name that helps you re-use this account in future.

    Provide your Amazon S3 account Access Key Id. Click here to know how to get AWS Access Key.

    AWS Secret Key

    Provide your Amazon S3 account Secret Key. Click here to know how to get AWS Secret Key.

    Select Project

    Select a project in which you want to create a process flow.

    Once you have provided the information, click  to use the Amazon S3 account to connect to the Amazon S3 source.

  7. In the Trigger field, select the following trigger.

    Sl. no.

    Trigger

    Description

    1

    Get File

    The Get File trigger triggers for the specified file in the bucket.
  8. In the Bucket field, select the bucket.

  9. In the Folder field, specify the path of the folder where the source file is located.

  10. In the File Name field, enter the source file name.

  11. Expand Advanced Properties.

    In case, after the execution of the process flow, you want the source file that has been saved locally to be deleted, you can select Delete On Success checkbox.
  12. In the Select Project field, select the project.
  13. Click Save.

 Event for Amazon S3 type of application source

The Application Event enables you to specify when and how frequently a Process Flow bound with it would be executed based on the polling frequency. It also overrides the parameters you have provided in the application source used in the Process Flow as an activity.

This section discusses the event for Amazon S3 type of application source. Follow the steps given below to create the application event.

  1. Click Configure > EVENTS > Application.

  2. Click Create Application Event.



  3. In the Name field, enter a name for the event.

  4. In the Description field, enter a description for the event.

  5. In the Application field, select Amazon S3 as the type of application event.

  6. In the Account field, select the Amazon S3 account that you want to use as a source.
    You can also create an Amazon S3 account by clicking the  icon, and then providing the following information on the Create New Account screen.

    Field Name

    Description

    A short, descriptive name that helps you re-use this account in future.

    Provide your Amazon S3 account Access Key Id. Click here to know how to get AWS Access Key.

    AWS Secret Key

    Provide your Amazon S3 account Secret Key. Click here to know how to get AWS Secret Key.

    Select Project

    Select a project in which you want to create a process flow.

    Once you have provided the information, click  to save the account.

  7. In the Trigger field, select either of the following triggers based on your requirement.

    Sl. no.

    Trigger

    Description

    1

    New Or Updated File

    Downloads the newly created or updated file.

    2

    All Files

    Retrieves all the existing files.

  8. In the Bucket field, select the bucket.

  9. In the Folder field, specify the path of the folder where the source file is located.

  10. In the Search Criteria field, specify a file extension, in case you want to retrieve only the files matching this search criteria. For example, *.txt.

  11. Select Run Initial Load check box, if you want to process all the files when the event gets triggered for the first time.

  12. In the Polling Frequency field, provide the time interval at which the Process Flow bounded with it will get executed. 

  13. Expand Advanced properties.
  14. In the Select Project field, select the project.
  15. Click Save.

 Amazon S3 as an application target

This section helps you creating Amazon S3 as an Application Target that can be used in a Process Flow as an activity.

Follow the steps given below to create an Azure Blob type of application target.

  1. Click Configure > TARGETS > Application Target.

  2. Click Create Application Target.



  3. In the Name field, enter a name for the Amazon S3 application target.

  4. In the Description field, enter a description for the Amazon S3 application target.

  5. In the Application field, select Amazon S3 as the type of application target.

  6. In the Account field, select the Amazon S3 account that you want to use as the target.
    You can also create an Amazon S3 account and use it as the target by clicking the  icon, and then providing the following information on the Create New Account screen.

    Field Name

    Description

    A short, descriptive name that helps you re-use this account in future.

    Provide your Amazon S3 account Access Key Id. Click here to know how to get AWS Access Key.

    AWS Secret Key

    Provide your Amazon S3 account Secret Key. Click here to know how to get AWS Secret Key.

    Select Project

    Select a project in which you want to create a process flow.

    Once you have provided the information, click  to use the account as the target.

  7. In the Action field, select either of the following actions based on your requirement.

    Sl. no.

    Action

    Description

    1

    Upload File to Bucket

    Uploads files to the bucket.

    2

    Delete File From Bucket

    Deletes files from the bucket.

  8. In the Bucket field, select the bucket.

  9. In the Folder field, specify the path of the target folder.

  10. In the File Name field, enter the name of the target file as per your requirement.

  11. In the Time Stamp field, select the format of date and time. The date and time gets appended to the target file name in the same format as selected by you in this field.

  12. Expand Advanced Properties.

  13. In the Select Project field, select the project.

  14. Click Save.