Custom Integrations

WordPress & Amazon S3 Contractor

Fractional contractor support for businesses working with WordPress and Amazon S3 together.

MIT Technology Review Puck.news Cred.ai MIT TripAdvisor NetBrain

Amazon S3 is AWS's object storage service, and on a WordPress site it is most often used to hold the media library (uploads served through CloudFront or another CDN), site backups, and exported data files, so the web server no longer stores or serves those files itself.

Real Amazon S3 Work

I've been building custom WordPress integrations since 2008 — 18+ years connecting WordPress to CRMs, analytics platforms, billing systems, and APIs like Amazon S3 for publishers, SaaS companies, and enterprise teams.

Custom WordPress design and development work by Kevin Leary Custom WordPress design and development work by Kevin Leary Custom WordPress design and development work by Kevin Leary Custom WordPress design and development work by Kevin Leary
Full Portfolio

Support

This is for teams that want WordPress files or data to live in Amazon S3. I set up S3 storage for the site and keep WordPress running and maintained on it.

  • Media offload setup: Move the media library to S3 with WP Offload Media Lite so uploaded images are served from the bucket.

  • CloudFront delivery: Put CloudFront in front of the bucket and serve media from a custom domain.

  • Bucket and credential configuration: Keep AWS keys in wp-config.php or an IAM role, and match the bucket's Block Public Access and ACL settings to the plugin.

  • Data file access: Use the AWS SDK for PHP to read or write data files in a bucket.

  • Backups to S3: Send site backups to S3 with a backup plugin or the AWS CLI.

  • S3-compatible stores: Point S3 plugins at providers such as DigitalOcean Spaces, Wasabi or Cloudflare R2.

Experience

Honeyfund (the cash wedding registry; the product runs on Laravel on AWS, and the marketing blog is WordPress hosted on Kinsta and served inside the main domain). In September 2024 I set up S3 offloading for the WordPress media library, so uploaded images are stored in S3 instead of on the WordPress host's disk. For context, Honeyfund's public case study describes the blog's image delivery as CDN-optimized and the blog living inside an AWS-hosted domain, which is the environment this offload sat in.

Cred.ai (the credit-optimization card and bank; I have run its WordPress sites and tracking infrastructure for years). This is S3 use that did not go through WordPress. Starting in 2023, Cred.ai's engineering team delivered scheduled CSV data exports into an S3 bucket they own, and I wrote PHP code using the AWS SDK for PHP to read those files from the bucket. Access was limited to read-only on that one bucket, which is the right way to scope it. In November 2025 the client's team asked whether the dedicated access user was still needed, and we agreed it could be retired. This was a data-pipeline integration alongside WordPress, not a WordPress feature.

AdDaptive Intelligence (B2B advertising and account-intelligence company). This is context rather than S3 work I have built for them. When we planned their website and a new reporting product in spring 2026, it came up that their own customers often ask for data to be delivered into an S3 bucket or as CSV files instead of through a prebuilt integration. Bucket-based data delivery is something I have set up for various clients, and it informs how I would approach their site and data pages.

The common thread: S3 has been the shared hand-off point between a client's AWS-side product and the work I do around it, whether that is images from a WordPress blog or exported data from an app.

Approach

WordPress core does not talk to S3 on its own. It writes uploads to wp-content/uploads on the local filesystem. Every S3 integration is therefore a plugin, a stream wrapper, or custom code that sits between WordPress and the bucket. The main paths:

  • Media offload plugin. The most common route is WP Offload Media Lite for Amazon S3, DigitalOcean Spaces, and Google Cloud Storage (formerly WP Offload S3 Lite), published on WordPress.org by WP Engine (the Delicious Brains team contributes). It copies new media-library uploads, including generated thumbnails, to a bucket, rewrites the URLs to the remote location, and can optionally delete the local copy. The free version only handles files uploaded after it is activated. The paid WP Offload Media adds offloading of the existing library, bulk actions in the media library, an Assets Pull add-on for CSS, JS and fonts, and integrations with WooCommerce, Easy Digital Downloads and others. As of November 2026 the free plugin lists 30,000+ active installs, requires PHP 8.1 or higher, and was last updated in late October 2026, so it is actively maintained.

  • CloudFront in front of the bucket. Raw S3 URLs are slow to cache and sit on an Amazon domain. The standard setup puts Amazon CloudFront (or another CDN) in front of the bucket and serves media from a custom domain. This is also the only supported way to keep some offloaded files private when the bucket's ownership enforcement is turned on.

  • Credentials. The plugin reads AWS keys from a constant in wp-config.php (recommended over saving keys in the database) or, on EC2, from an IAM role.

  • Bucket settings. Since April 2023 new S3 buckets are created with Block Public Access on and ACLs disabled. Offload plugins that set per-object access need the bucket configured to match, or need CloudFront with a bucket policy. This catches people out regularly.

  • Backup plugins and tools. Plugins such as UpdraftPlus, Duplicator Pro and BlogVault can send site backups to S3, and server-level jobs can do the same with the AWS CLI.

  • Custom code. The AWS SDK for PHP (v3, installed with Composer as aws/aws-sdk-php) exposes the full S3 API to any PHP application, including WordPress plugins and themes, Laravel apps, and scripts. This is how a site reads or writes data files, generates pre-signed URLs for private downloads, or processes an inbound export.

  • S3-compatible stores. Plugins that speak the S3 API usually work against non-AWS providers by changing the endpoint.

Paths I have used (client work below): media offload to S3 for a WordPress site, and the AWS SDK for PHP to read exported data files from a client's bucket. The backup and S3-compatible paths are listed because they exist as options.

Benefits

  • A smaller, simpler WordPress server. The media library is usually the largest and fastest-growing part of a WordPress install. Offloading it means smaller backups, quicker deployments and migrations, and no surprise "disk full" outage on the host.

  • Faster image delivery. With CloudFront or another CDN in front of the bucket, images come from an edge location near the visitor instead of a single origin server. That helps Core Web Vitals, especially on image-heavy blogs and listings.

  • Works with more than one web server. Load-balanced, containerized or ephemeral WordPress hosting has no shared disk. Storing uploads in S3 means every instance sees the same files, and an instance can be replaced without losing media.

  • Durable, cheap storage you control. S3 is designed for very high durability, and storage is billed by usage with no minimum, so a media library of any size has a predictable home. Lifecycle rules can move old files to cheaper storage classes.

  • Fits companies already on AWS. If the main product runs on AWS, keeping WordPress assets in the same account puts billing, access policies and logging in one place instead of adding another vendor.

  • Controlled access to private files. With signed URLs or CloudFront signed access, S3 can serve members-only or paid downloads without exposing them on a public path, which WordPress does poorly on its own.

Fit

Good fit

  • A large or growing media library, or a site that regularly publishes image-heavy posts.

  • Multi-server, auto-scaled or containerized WordPress where uploads must be shared.

  • A company already on AWS that wants assets and policies in one account.

  • Sites that need private downloads, or that exchange data files with another system (as with the Cred.ai exports).

Better alternatives

  • A small brochure site on managed WordPress hosting. The host's built-in CDN (Kinsta, WP Engine, Cloudflare) already serves images fast, and adding S3 adds moving parts for little gain.

  • If you only want faster images, a CDN with image optimization (Cloudflare, Bunny, or an image-optimization plugin) may be enough without moving storage.

  • If you are not on AWS and cost or simplicity matters, S3-compatible stores such as Cloudflare R2 (no egress fees), Backblaze B2, DigitalOcean Spaces or Wasabi work with the same plugins.

  • WordPress VIP and some other platforms already offload uploads for you. Check before adding your own.

Pitfalls I would warn about

  • Bucket settings versus plugin settings. Block Public Access and ACL defaults on new buckets stop an offload plugin from making files readable. Decide up front whether you are going through CloudFront.

  • Existing media. The free offload plugin only handles new uploads. Moving an existing library needs the paid version or a scripted migration, and URLs inside old post content must be checked afterward.

  • Raw S3 URLs in production. They work but are slow and look unprofessional in image search. Put a CDN and a custom domain in front.

  • Local development and staging. If staging shares the production bucket, a delete on staging can remove a live file. Use separate buckets or disable offloading outside production.

  • Leaving the plugin. Uninstalling an offload plugin without copying files back leaves broken image URLs. Plan the exit before you start.

  • Credentials. Keep keys out of the database, give them the narrowest policy that works, and remove access users that are no longer used.

Overview

Working with WordPress and Amazon S3 provides a lighter web server and durable media storage when set up correctly. Amazon S3 (Simple Storage Service) is Amazon Web Services' object storage service, launched in 2006. Files are stored as objects in buckets and addressed by key over an HTTP API. Teams use it for static assets, uploads, backups, data exports and as the origin behind a CDN. Many storage products copy its API, hence "S3-compatible."

FAQ

Answers to the most common questions I see asked by business owners,
CMOs and CTOs about Amazon S3 integrations with WordPress.

Does WordPress work with Amazon S3 out of the box?

No. WordPress stores uploads on the web server's local disk. To use S3 you need a plugin such as WP Offload Media, a backup plugin that supports S3, or custom code using the AWS SDK for PHP.

What is the best plugin for offloading WordPress media to S3?

The best-known option is WP Offload Media, with a free Lite version on WordPress.org (WP Offload Media Lite for Amazon S3, DigitalOcean Spaces, and Google Cloud Storage) and a paid version. Lite only offloads files uploaded after activation. The paid version also moves your existing library and adds more integrations. Other plugins exist, so the right pick depends on your hosting and whether you need to migrate existing media.

Do I need CloudFront with S3?

It is not required, but I recommend it. Serving media directly from S3 URLs is slower, does not give you a custom domain, and offers no good way to keep some files private. CloudFront (or another CDN) fixes all three. WP Offload Media supports CloudFront and other CDNs.

What does S3 cost for a WordPress site?

S3 is pay-as-you-go with no minimum. You pay for storage per GB per month, requests, and data transferred out to the internet (data sent to CloudFront is not charged for transfer from S3, and a small monthly allowance of outbound transfer is free). For a typical blog the bill is small, but check the AWS pricing calculator against your library size and traffic. The offload plugin's paid version is a separate license.

Will moving to S3 make my site faster?

It usually helps when the images are served through a CDN, because the web server stops handling image requests and visitors get files from a nearby location. If your host already has a CDN in front of the uploads folder, the improvement can be small. Test before and after on real pages.

Can I move my existing media library to S3 without breaking images?

Yes, but it needs care. The files must be copied to the bucket and every URL in posts, custom fields and page-builder data must point to the new location. The paid WP Offload Media handles this in the background, and a scripted migration is the other option. Always take a full backup first and check a sample of old posts after.

Is S3 secure enough for private files?

Yes, if it is configured correctly. Keep buckets private, use signed URLs or CloudFront signed access for protected downloads, and use narrowly scoped IAM policies. Most S3 problems come from configuration choices, not the service itself.

Can I use S3 for WordPress backups?

Yes. Several backup plugins can send backups to S3, and server-level scripts can do the same with the AWS CLI. Storing backups in a different account or region from the live site is a sensible habit.

Can I use something other than AWS and still use the same plugins?

Often yes. Providers such as DigitalOcean Spaces, Google Cloud Storage, Wasabi and MinIO are supported by WP Offload Media or accept S3-style API calls. Check the specific plugin's provider list before choosing.

Scott Maxwell, Founder and Managing Partner at Openview Venture Partners
Kevin's ability as a web developer and consultant, along with his eagerness to add value, have been a tremendously valuable asset to our firm and investment companies. His in-depth knowledge of B2B technologies, and straight forward ideas and advice, have been a very strong asset for us.
Scott Maxwell Founder and Managing Partner
OpenView Venture Partners

Need help integrating Amazon S3 and WordPress?

If you're integrating your WordPress website with Amazon S3 I can help. Schedule a free consultation on Google Meet, or contact me by email directly.

By Email or

Additional Consulting Services

Custom integrations are one slice of a broader practice. I've spent 18+ years as a fractional engineer for marketing and product teams — designing, building, securing, and measuring WordPress platforms end to end.