Amazon CloudFront

Amazon CloudFront Help & Support

What Amazon CloudFront Triggers and Actions are Supported?

Supported Triggers#

  • New Invalidation - Triggers when a new invalidation is created.
  • New Distribution - Triggers when a new distribution is created.

Supported Actions#

  • Invalidate Item - Invalidates a single item.
Was this content helpful?

How to Get Started With Amazon CloudFront

You'll need to create an IAM user which has limited permissions, for Zapier to use.

Create Security Credentials by Adding a New Zapier User to IAM#

To add a CloudFront account to Zapier, you should follow these instructions. They will walk you through setting up a user in IAM and adding that account to Zapier. Remember that you want to select CloudFront instead of SES where applicable.

Was this content helpful?

Automatically Invalidating S3-Backed CloudFront Objects

To automatically invalidate objects in a CloudFront distribution that's backed by an S3 bucket, you need to do the following:

Setup SNS notifications#

You'll need an SNS topic which will be notified when objects are created in your S3 bucket. Then, configure S3 events like so:

Setup the Zap#

Then in Zapier, use the SNS New JSON Message trigger, and select your topic:

For your action, use CloudFront Invalidate Item. Choose your distribution, and insert the message subject as a placeholder field - we'll come back to this later:

Then, test the Zap:

You'll now need to add an item to the S3 bucket, so that Zapier is notified via your SNS topic. Once that's done you'll see "OK, found your changes!". Return to the Zap, and replace the subject placeholder field with a leading forward-slash (/) followed by the S3 object key field:

You'll see your field has this value:

And you're all done! Remember that Amazon charges for CloudFront invalidations, and this Zap will invalidate each object individually so it may be expensive.

Was this content helpful?

Common Problems with Amazon CloudFront

We don't have any common problems documented yet, but feel free to contact us so we can help you personally!

Was this content helpful?

Need More Help? - Our support team is happy to help -- send us a message

Amazon CloudFront is a content delivery web service. It integrates with other Amazon Web Services products to give developers and businesses an easy way to distribute content to end users with low latency, high data transfer speeds, and no minimum usage commitments.

Getting Started with Zapier

Need more help? Try the Zapier Help Center