Skip to content

Connect AWS to Gmail

Gmail receives documents and sends customers links; S3 is where you want files kept safely. Connecting them backs up important attachments automatically and lets you email customers private download links to files you store.

Build your own

Build any AWS and Gmail automation you can describe

The ideas above are ready-made starting points, not a fixed list. Describe what should happen between AWS and Gmail in your own words, with your conditions, other apps or an AI step, and your assistant writes it, tests it and runs it on ClickRuntime.
  • Your own rules

    Conditions, thresholds, filters and exceptions, written the way you'd explain them to a colleague.

  • Any number of apps

    One automation can read from one app and update several others. Over 248 apps are ready, and anything with an API works too.

  • AI where it helps

    Summaries, classification, extraction and drafts use ClickRuntime's built-in AI, with no extra key.

  • On a schedule or on each event

    Runs as often as every 5 minutes, or the moment an app sends an event, and keeps track of what it already handled.

For example, ask your assistant

Only back up PDFs and images over 50 KB from senders in my vendor list, and store them under vendor/year/month.

Each Monday, email me AWS costs for last week and the change from the week before.

Use cases

Why people connect AWS and Gmail

How the two apps work together

  • A check every few minutes reads Gmail for emails with attachments or labels.
  • The script saves files to S3 with a path you choose.
  • It can email links, confirmations or reports from your Gmail address.
  • Freelancers backing up attachments

    Invoices and contracts received in Gmail are saved to S3. There is a durable copy.

  • Teams sharing large files

    Files saved to S3 get a time-limited link emailed to the recipient. No large attachments.

  • Founders getting AWS cost emails

    A weekly email shows AWS spend by service. Costs stay visible.

  • Ops teams archiving reports

    Reports emailed by vendors are saved to S3 by date. Records are kept.

More apps

AWS, Gmail and other apps in one automation

An automation isn't limited to two apps. Add the next step in another app and it runs as part of the same automation.

Attachment index

Save Gmail attachments labelled "archive" to S3 and add the file name, sender and S3 path to my Google Sheet.

Backup report

Each night, post the number of Gmail attachments backed up to S3 to #ops.

Extract invoice data

For invoices saved from Gmail to S3, extract vendor and total with OpenAI and email me a weekly list.

Setup

Connect AWS and Gmail once

Every idea on this page uses the same two connections, so you set them up once. If one is missing, your assistant tells you and links to the right place.

AWS

Developer / Cloud infrastructure

  1. In the IAM console, create a user without console access just for ClickRuntime.
  2. Attach a minimal policy, for example s3:GetObject, s3:PutObject and s3:ListBucket on one bucket ARN, plus ce:GetCostAndUsage or Textract and Transcribe actions only if you use those automations.
  3. Open the user, go to Security credentials, choose Create access key and select Application running outside AWS.
  4. Copy the Access key ID and Secret access key, then save them with your region as secrets on Connections & secrets in the ClickRuntime dashboard.

Gmail

Email

  1. At console.cloud.google.com, create a project and enable the Gmail API under APIs & Services → Library.
  2. Set up the OAuth consent screen. On Google Workspace choose Internal. On a personal Gmail account choose External, then under Audience click Publish app so it is In production, not Testing.
  3. Under Data Access, add the scopes you need, such as https://www.googleapis.com/auth/gmail.modify, or gmail.send if you only want to send.
  4. Under Clients, create an OAuth client of type Web application with the redirect URI https://clickruntime.com/oauth/callback.
  5. In the ClickRuntime dashboard, open Connections, choose Gmail and enter the client ID and secret. On a personal account Google shows an unverified-app screen: click Advanced, then go to your app.

FAQ

Questions about connecting AWS and Gmail

Which emails are backed up?
Only ones matching your Gmail search, such as messages from listed senders or with a certain label.
How long do download links last?
You choose, up to seven days. After that the link stops working and the file stays private in S3.
Is my AWS key safe?
It's saved as an encrypted secret in your ClickRuntime dashboard, only read during a run, and masked in logs.
Can it organise files into folders?
Yes. S3 keys can include the date, sender or customer, which show as folders in the console.
How long can download links last?
S3 presigned links can last up to 7 days when signed with an access key.
Does it delete emails after backup?
No. It can add a label so you know it was saved.
Can it use S3 storage classes?
Yes. Files can be saved as Standard, Infrequent Access or another class.

Tell your assistant what AWS and Gmail should do together

Free plan. No credit card.