Connect AWS to Gmail
Ideas
What you can do with AWS and Gmail
Back up attachments from chosen senders to S3
Attachments from the senders you list are saved to your S3 bucket by date and sender, and you get an email summary of what each one contains.
See how it worksSave a PDF receipt to S3 for each payment and email the link
When a payment succeeds, a PDF receipt is created, stored in your S3 bucket, and the customer gets an email from your Gmail with a private download link.
See how it works Your own logicAny other automation you can describe in words
Your own rules, schedule and AI steps with AWS and Gmail, plus any other app. Describe it and your assistant builds it.
See how to build your ownBuild your own
Build any AWS and Gmail automation you can describe
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
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
AWS
Developer / Cloud infrastructure
- In the IAM console, create a user without console access just for ClickRuntime.
- Attach a minimal policy, for example
s3:GetObject,s3:PutObjectands3:ListBucketon one bucket ARN, plusce:GetCostAndUsageor Textract and Transcribe actions only if you use those automations. - Open the user, go to Security credentials, choose Create access key and select Application running outside AWS.
- 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
- At console.cloud.google.com, create a project and enable the Gmail API under APIs & Services → Library.
- 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.
- Under Data Access, add the scopes you need, such as
https://www.googleapis.com/auth/gmail.modify, orgmail.sendif you only want to send. - Under Clients, create an OAuth client of type Web application with the redirect URI
https://clickruntime.com/oauth/callback. - 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?
How long do download links last?
Is my AWS key safe?
Can it organise files into folders?
How long can download links last?
Does it delete emails after backup?
Can it use S3 storage classes?
Related pages
Keep exploring
Tell your assistant what AWS and Gmail should do together
Free plan. No credit card.