Deploy to AWS S3 / Purge CDN with CloudFront

With Buddy, you can deploy data to the AWS Simple Storage Service using a dedicated AWS S3 Transfer action. You can also add the CloudFront action to clear the cache upon the deployment.

Example pipeline with deployment to AWS S3Example pipeline with deployment to AWS S3

Tip
If you are new to Buddy, check out our quickstart guides that will tell you how to build, test and deploy your type of application.
Hint

📚 Learn more about Amazon S3 action features, integrations and alternatives.

Configure Amazon S3 deployment

Warning
Before you add the action, make sure that your AWS user has proper S3 permissions assigned and full programmatic access to AWS.
  1. Look up AWS on the action list and click AWS S3 Transfer to add it to the pipeline:

Amazon Web Services actionsAmazon Web Services actions

  1. The action has five configuration tabs:
  • Transfer – here you define the source path, deployment flags and content encoding, tag objects, and files to ignore
  • Target – here you select the AWS integration and the bucket to which you want to deploy
  • Variables – here you can view your AWS integration variables, and create your own if required
  • Conditions – here you configure the trigger conditions for which the action will run
  • Options – here you define the action's name and behavior on failure and timeout

Amazon S3 action configurationAmazon S3 action configuration

  1. When ready, click Add this action to finish configuration.

  2. (Optional) You can also add the CloudFront action at the end of the pipeline to automatically purge your CloudFront's cache on every deployment:

CloudFront configurationCloudFront configuration

Success
Congratulations – you have just automated your deployment to AWS S3! 🥳
Last update:
Sep 17, 2024