Introducing AWS authentication for connections in Deluge

Introducing AWS authentication for connections in Deluge

Hello everyone,

We're incredibly excited to announce the all-new AWS authentication for connections in Deluge! This highly anticipated feature simplifies connecting to Amazon Web Services, opening up a world of possibilities and allowing you to seamlessly integrate your Zoho apps with the power and scalability of the AWS cloud.

What does this mean for you? 

This new integration empowers you to connect and access AWS services like S3 directly from within Deluge. This eliminates the need for third-party tools to achieve a connection between Zoho and AWS. It also allows you to harness AWS's scalability for handling massive datasets while utilizing Deluge's power for complex transformations.

How does it work? 

AWS is now offered as a custom connector in Deluge. This AWS connection utilizes Signature Version 4 authentication, the most up-to-date and secure method for authenticating requests to AWS services. It offers several key advantages that help protect your AWS credentials and prevent unauthorized access.

Availability 

The new AWS authentication for connections is available across all Zoho services that support Deluge connections. This means you can use it within your existing Zoho applications, be it CRM, Books, Mail, or others, to unlock new possibilities.

Creating an AWS connection 


  1. Navigate to the Connections section of the desired Zoho service. For this example, we'll use Zoho CRM. For Zoho CRM, you can access it under Settings -> Developer Hub -> Connections.

  2. In the Connections section, go to Custom Services and click the Create Service button.

  3. On the Create Service page, enter the following details:
    Service Name: awss3 //Custom connector name
    Service Link Name: awss3
    Authentication Type: AWS Signature
    Service Name: s3 //Amazon service name
    AWS Region: Enter your AWS region. To find your AWS region, log in to your AWS account and navigate to Console -> S3 -> General Purpose Buckets. Locate your storage buckets and copy the AWS region (e.g., us-east-1) displayed next to the required bucket.

  4. Click Create Service. The AWS S3 custom service will now be created.
  5. Now, navigate to My Connections and click Create Connection.
  6. On the Create Connection page, go to Custom Services under Pick Your Service and select awss3.

  7. Enter the Connection Name and Connection Link Name. Then click Create and Connect.
  8. You'll be redirected to the AWS authorization page, where you'll need to enter your Access Key and Secret Key.

    To get the Access Key and Secret Key:
    1. Log in to your AWS account and navigate to IAM.
    2. In the left pane, under Access Management, click Users.
    3. Select the required user from the list.
    4. On the User Details page, go to the Security Credentials section.
    5. Under Access Keys, click Create Access Key.
    6. On the next page, choose Command Line Interface (CLI) as the use case and click Next.
    7. Click Create Access Key.
    8. Copy the Access Key and Secret Key, then paste them into the respective fields on the AWS authorization page.
    9. Finally, click Connect.
  9. Your AWS connection has now been successfully created!

Working with AWS connections

Now you can utilize this AWS connection to integrate with AWS services and perform various actions, such as storing and retrieving data from Amazon S3. This connection can be leveraged across Zoho services (such as functions) to automate your data workflows.

For example, let's create a function to upload a file to AWS S3:
  1. Create a new function. Name the function and choose the appropriate type.

  2. Write the required scripts in the Deluge editor.
    Here's a sample script which fetches a file from a given URL and uploads it to an AWS S3 bucket using the configured AWS connection:
    Quote
    fileResponse = invokeUrl
    [
    url:"https://filesamples.com/samples/document/txt/sample1.txt"
    type: GET
    ];
    file = tofile(fileResponse,"sample1.txt");

    // Upload the file to AWS S3
    awsResponse = invokeUrl
    [
    "https://<your-bucket-name>.s3.amazonaws.com/<file-name>" // Replace with your bucket name and file name
    type: PUT
    parameters:file
    content-Type : "application/octet-stream"
    connection: "awss3" // Use the AWS connection created earlier
    detailed:true
    ];

    // Log the response
    info awsResponse;
  3. Execute the function by clicking the Save and Execute button.
  4. Switch to your AWS account, go to Console -> S3 -> General Purpose Buckets, and select the required bucket.
  5. You’ll see the sample file from the script listed under the Objects section. Every successful execution results in the file being uploaded to the bucket

Use cases 

  • Zoho CRM: You can automatically back up important customer documents from Zoho CRM to AWS S3. For instance, when a new file (e.g., contracts, proposals) is uploaded to a CRM record, a Deluge function can be triggered to fetch and store the file in S3 storage.
  • Zoho Books: You can store and retrieve invoices from Zoho Books to AWS S3. When an invoice is generated, a Deluge function fetches the PDF and uploads it to an S3 bucket. This can act as centralized space for all your invoices.
 
We have comprehensive documentation covering everything you need to know about Deluge connections. For more information, visit our Deluge Connections help doc.

Note: Please be aware that Zoho Creator has its own Connections feature, and we are working to bring AWS connections to Creator soon.

That’s all from us on the AWS connector! We hope you find it valuable and make the most of it across Zoho services. Give it a try, explore its possibilities, and let us know your thoughts.

And if you need any assistance, don’t hesitate to reach out to us. We’re always happy to help.

Regards,
The Deluge Team

      • Sticky Posts

      • Function #41: Sync Associated Subforms!

        Welcome back everyone! The last custom function showed how to update a Contact with Product details from it's Related list in Deals. This week, let's look at a function that lets you update subform records in two modules simultaneously when one of them is updated. Business scenario Let's look at how subform helps in an education institution that has deployed Zoho CRM. National Public School, Austin (made up, of course!) has set up Zoho CRM and it follows the same relationship pattern of "Students",