Mautic assets on Amazon S3

Teams hosting Mautic downloadable assets on their own web server can move them to an Amazon S3 bucket with the Mautic Amazon S3 plugin. This page covers the plugin's setup path, IAM and region decisions, and the failures to test for.

On this page

How the Mautic Amazon S3 plugin moves downloadable assets off the web server

The Mautic Amazon S3 plugin stores downloadable assets in an S3 bucket instead of on the local web server, and assets are selected from that bucket when they are created. For a team that currently keeps Mautic files in the web root or a local directory, this changes where the files live and how they reach contacts, so the move is a configuration change with access and data protection consequences rather than a simple file copy. The plugin does not move existing files for you. Each asset that should be served from the bucket has to be uploaded there and then chosen in Mautic when the asset is created, so the migration plan needs to account for every asset already referenced by emails, landing pages or campaigns.

This section covers three decisions that shape the rest of the work. The first is the IAM identity Mautic uses to reach the bucket, which should be an IAM user with only the permissions the plugin needs, not the root account. The second is the bucket region, which matters for data protection and should be checked against your privacy policy before anything is uploaded. The third is the configuration order: the bucket and identity have to exist, and the region has to be settled, before the plugin is enabled and assets are created against it. Confirm with your own AWS and privacy teams which regions your policy allows, and confirm the exact permission set against the plugin documentation for your Mautic version.

Keep the rest of the Mautic deployment in view while you plan this. The plugin changes where assets are stored, not how Mautic itself is installed, updated or backed up, so your server configuration and upgrade path still apply. Ask whoever owns the Mautic instance to document which assets were moved, which bucket and region hold them, and which IAM user has access, because that record is what a privacy or security reviewer will ask for first. The Mautic Amazon S3 plugin documentation is the reference to check each setting against before you change production.

What you need before connecting Mautic to an S3 bucket

The S3 plugin depends on a working Mautic instance, an AWS identity with narrow permissions, and a bucket region someone can defend to your privacy team. Settle these four items before anyone opens the plugin settings, because each one blocks a later step.

A self-hosted Mautic instance on a supported line

Start with a running Mautic installation on a release line that still receives support. The release page lists security support dates for each line, so check them against your planned go-live window. Confirm your PHP version against the Mautic 7.0 requirements, since Mautic 7.0 supports PHP 8.2 through 8.5. Shared hosting is not supported, so the server must be a VPS or dedicated machine. Plugin installation and file uploads both need the instance to be healthy first.

Mautic 7.0 PHP range
PHP 8.2 to 8.5
Mautic requirements

AWS account access to create a bucket

Someone must be able to create an S3 bucket and an IAM user in the AWS account that will hold your assets. Confirm who holds this permission, whether the account sits under an organization with service control policies, and whether a naming standard applies. Keep the bucket in the account your security team already monitors so that access logs and billing stay in one place.

A named owner for the region decision

The plugin documentation notes that the bucket region matters for data protection and should be checked against your privacy policy. Name one person, usually from privacy or legal with input from security, who signs off the region before the bucket is created. Moving assets to another region later means copying objects and updating every stored reference, so the decision is hard to reverse.

An IAM user rather than root credentials

The plugin setup advises an IAM user instead of the root account. Create a dedicated user with access limited to the one bucket the plugin needs, and generate its access keys for the plugin only. Record who owns the keys and set a rotation date. Root credentials should never be stored in the Mautic configuration.

Outbound network access from Mautic to AWS

The Mautic server must reach the S3 endpoint for the bucket's region over HTTPS. Check firewall egress rules, proxy settings and any DNS restrictions before setup, because a blocked connection often looks like a plugin fault. Test from the Mautic host itself, not from your laptop, since the server is the caller.

Plugin version and PHP extension checks

Confirm the Mautic versions the Amazon S3 plugin documentation targets, and any PHP extensions or libraries it requires, before you install it. Do not assume compatibility from the core Mautic version alone. Record the plugin documentation version you followed so that a later upgrade can be checked against the same source.

Amazon S3 plugin docs

How an asset travels from Mautic to the bucket

The diagram starts in the administrator's browser, where the admin uploads a file through the Mautic interface. The Amazon S3 plugin running on the Mautic server sends that file to the bucket, using the IAM user credentials as the only AWS identity Mautic holds. Later, when the admin creates a campaign or email, the asset is selected from the bucket rather than the local server. The recipient retrieval path is shown with a dashed question mark, because the supplied facts do not say how assets are served to recipients. Confirm that path in the plugin documentation before you plan bucket access settings.

Asset upload and selection path between the browser, Mautic server and AWS account.

Configuring the Mautic Amazon S3 plugin in the order that protects credentials

This sequence sets up the bucket, a scoped IAM identity and the plugin in an order that keeps root credentials out of Mautic and confirms each piece works before the next one depends on it. The result is a tested path from an asset upload in Mautic to an object stored in your bucket.

  1. Confirm the bucket region against your privacy policy

    Before any AWS resource exists, the person responsible for privacy or legal review confirms which regions the organization can use for stored files. Mautic assets may contain personal data, such as forms, documents or images tied to contacts, so the bucket region matters for data protection and should match what your privacy policy describes. Record the approved region in your change ticket. This step is done when the privacy owner has signed off on one named region, and you can point to that approval.

  2. Create the S3 bucket in the approved region

    A cloud administrator creates a dedicated bucket for Mautic assets in the approved region, with a name that makes its purpose clear to other administrators. Keep the bucket separate from general-purpose storage so access rules and later audits stay simple. Check that the bucket's region in the AWS console matches the region recorded in the previous step. Do not proceed until the console shows the same region, since a mismatch means your privacy review did not cover the actual storage location.

  3. Create a dedicated IAM user for Mautic

    Create a new IAM user whose only purpose is the Mautic plugin, instead of reusing the root account or a personal administrator login. Mautic's S3 setup advises against using the root account, and a dedicated user lets you rotate or disable Mautic's access without affecting other systems. Generate an access key for this user and store it in your secrets manager, not in a shared document. The check is that the user exists in IAM, is not the root account, and has no console password unless one is required for a named purpose.

  4. Grant the IAM user only the permissions the plugin needs

    Attach a policy that gives the Mautic IAM user only the bucket actions listed in the plugin documentation, scoped to the Mautic asset bucket and nothing else. Avoid broad managed policies that grant access to all buckets, since they widen the blast radius if the key leaks. Confirm the exact permission list against the Amazon S3 plugin documentation at the time of setup, because the list is the reference for what the plugin expects. The check is a policy simulator or test call showing the user can write to the Mautic bucket and is denied access to a different bucket in the same account.

  5. Enable and configure the plugin with the IAM credentials

    A Mautic administrator installs and enables the Amazon S3 plugin, then enters the IAM user's access credentials, bucket name and region in the plugin settings. Use the configuration keys named in the plugin documentation, and confirm the region field matches the bucket region exactly. Keep the credentials in the plugin configuration only, and do not paste them into Mautic logs, tickets or chat. The check is that the plugin settings save without an error and the configuration page shows the bucket connection as active.

  6. Upload a test asset and confirm it in the bucket

    Create a small, non-sensitive test file, upload it as a Mautic asset with the S3 storage option selected, and save the asset. Open the Mautic bucket in the AWS console and confirm the object appears with the expected file name. Also confirm the object is not present on the web server's local asset directory, which proves the plugin stored it remotely. Delete the test object once the remaining checks pass, so no sample data lingers in production storage.

  7. Confirm the asset can be selected in Mautic

    Start a new asset or content item in Mautic that offers an asset picker, and confirm the test file from the bucket appears as a selectable option. Select it, complete the item and check that the link or reference resolves for a user without Mautic admin access. This closes the sequence: the plugin reads from the bucket, writes under a scoped identity, and the asset flows through to where marketers use it. Record the test results and the policy version in your change record for later review.

Choosing the bucket region for data protection

Choose the S3 bucket region before any asset is uploaded, because the Mautic Amazon S3 plugin guidance states that the bucket region matters for data protection and should be checked against your privacy policy. The decision is not an engineering default to accept from the console drop-down. Ask privacy, legal or your data protection officer to confirm which region is permitted for the files your marketing team will host, such as brochures, whitepapers and other downloadable assets that may carry personal data or sit alongside contact-linked campaigns. Their sign-off should name the region, the bucket name and the date of approval.

Record the decision where your compliance evidence lives. The record should include the approved region code, the bucket name, the AWS account that owns it, the IAM user that the Mautic plugin uses (not the root account), the approver's role and the privacy policy wording it was checked against. Keep the record with your Mautic configuration documentation so an assessor or internal reviewer can trace why assets sit where they do. Also confirm with your legal or privacy team what data residency your customer and partner contracts require, since a contract may restrict storage location more tightly than your general privacy policy.

Fix the region before the first upload because moving assets between regions is a separate migration task with its own copy, verification and link-update steps, and this page does not cover how to perform it. Assets already published in campaign emails, landing pages or web content will point at the existing location, so a later move can break links that recipients have already received. If your review is still open, hold off on loading the bucket and treat the region as a blocking item in the implementation plan. Confirm the handling of any moves with your own privacy and legal team before one is proposed.

Which Mautic settings map to which AWS values

This table matches each Mautic asset storage setting to the AWS value behind it, who owns that value and what to record during setup. Read it before configuring the plugin so the bucket, region and IAM identity are chosen and documented once, not reconstructed later. The exact configuration key names come from the Amazon S3 plugin documentation, so check them there against your Mautic version.

Mautic setting or conceptAWS value it corresponds toWho owns the valueWhat to record
Bucket nameThe S3 bucket that stores downloadable assets instead of the web serverCloud or platform team, with input from the privacy ownerExact bucket name, account it sits in, and the naming convention used
Bucket regionThe AWS region where the bucket's data is storedPrivacy or data protection owner, confirmed against the privacy policyRegion code, the reason it was chosen, and the privacy policy wording it was checked against
IAM user identityA dedicated IAM user used by Mautic instead of the root accountCloud or security teamIAM user name, the account ID, and confirmation that the root account is not used
IAM access credentialsThe access key pair the IAM user uses to reach the bucketSecurity team, with rotation handled by the Mautic administratorWhere the credentials are stored, who can read them, and the date they were last rotated
Asset selection in MauticAssets chosen from the bucket when an asset is created in MauticMautic administrator and marketing content ownerWhich assets are hosted in the bucket and who approves new uploads
Bucket permissions for the IAM userThe access the IAM user holds on that bucket onlyCloud or security teamThe permission policy attached to the IAM user and the bucket it applies to

Hardening the IAM user and the bucket

The Mautic S3 plugin needs credentials and a bucket it can write assets to, and that combination is where most exposure sits. The cards below are decisions to review with your security team before the plugin goes live, covering who holds access, how far that access reaches, and how the bucket is observed over time.

Use an IAM user, not root

The plugin's setup guidance advises using an IAM user rather than the AWS root account. Root credentials carry unrestricted access to the whole account, so a leaked key would expose far more than the asset bucket. Confirm with your security team that a named IAM user is the only identity configured in Mautic, and that root access keys do not exist on the account.

Mautic S3 docs

Scope the user's permissions

Attach a policy that grants only the object actions the plugin needs on the specific asset bucket, and no account-wide S3 or other AWS permissions. Confirm the exact action list with the plugin version you run, since it is not fixed by the plugin docs. Test the policy in a non-production account before applying it to production.

Keep the access key out of shared config

Store the access key in a secrets manager or the server's protected environment, not in source control, shared configuration files or team wiki pages. Limit who can read the Mautic configuration file on the web server, because that file is often readable by other administrators. Ask your team to list every place the key is copied today.

Rotate and revoke when staff change

Define who owns the IAM user and its access key, and set a rotation schedule your team can follow. When an administrator who handled the key leaves, rotate the key and disable the old one after Mautic is updated. Ask whether your AWS account already uses automated alerts for keys that are old or unused.

Decide on public read access

Check whether Block Public Access is enabled on the bucket and at the account level. Downloadable assets often need a public link, so any public read path is a decision to document, not a default. Ask which assets must be public, whether a proxy or signed-URL approach fits your privacy review, and who approves exceptions.

Enable logging for investigation

Turn on server access logging or AWS CloudTrail data events for the bucket so that reads, writes and deletes can be traced. Confirm where logs are stored, who can read them, and how long your policy keeps them. Without these logs, it is difficult to show what happened if an asset link is misused.

Separating buckets and credentials across production, staging and local development

The production Mautic instance serves the assets that campaigns, forms and emails link to, so its bucket should be dedicated to that purpose and not shared with any other environment. Use a dedicated IAM user for this instance, never the AWS root account, and scope its permissions to the production bucket only. The bucket region is a data protection decision for live contact-related material, so confirm it against your published privacy policy and the region where your organization has agreed to store data.

  • Dedicated bucket: Create one bucket for production assets and do not reuse it for tests or sample files.
  • Dedicated IAM user: Give the production Mautic instance its own IAM user with access limited to the production bucket.
  • Restricted credentials: Store the access key in your secrets manager or the Mautic configuration file with restricted file permissions, and rotate it on a schedule your security team sets.
  • Region fixed by policy: Record the chosen region and the policy reference in your change records so later changes are reviewed.
  • Change control: Require review before anyone changes the bucket policy, region or credentials.

Confirm with your AWS administrators which account owns the production bucket, who holds administrative access to it, and whether your privacy policy names the region.

Common S3 asset failures and how to fix them

This table pairs common symptoms of Mautic assets on Amazon S3 with their likely causes and the check or fix for each. Use it as a starting point, then confirm the exact error text against the Mautic Amazon S3 plugin documentation and your Mautic logs before changing settings.

SymptomLikely causeCheck or fix
Upload fails with an access denied errorThe IAM user lacks permission to write to the bucket, or the access key and secret in Mautic belong to a different accountConfirm the IAM user's policy allows the write actions on that bucket, then compare the access key ID in Mautic with the key shown in IAM
Upload fails with an invalid credentials or signature errorThe access key or secret key was mistyped, truncated or pasted into the wrong Mautic fieldRe-enter both values in the plugin's credential fields, confirm they are not swapped, and check for leading or trailing spaces
Asset uploads but cannot be selected when creating contentThe plugin is enabled but the bucket or folder it reads from does not match the configured settings, or the asset list was not refreshedConfirm the bucket name and region in the plugin settings match the bucket that received the file, then clear the Mautic cache and retry
Bucket was created in a region the privacy review did not approveThe bucket was set up without checking the region against the approved data locationCompare the bucket region with the region in your privacy review and the privacy policy; if they differ, plan a new bucket in the approved region and migrate assets
Assets stay on the web server after the switchExisting assets were not migrated, or links still point to local file pathsCopy existing files to the bucket, update asset references, and test a sample page before removing local copies
Public links return an access error after uploadThe object or bucket access settings do not allow the intended readers, or the URL format does not match the bucket configurationReview the object ownership and access settings with your security team and test the generated URL from an outside network
Plugin errors appear only in background jobsCron or messenger workers run with different credentials, environment variables or a different PHP user than the web processCheck the Mautic logs for the failing job, confirm the worker user can read the same configuration, and confirm exact messages with the plugin documentation

Questions teams ask before connecting Mautic assets to S3

How much effort does connecting Mautic assets to S3 take?

The effort depends on how much work sits around the plugin rather than on the plugin itself. The Mautic Amazon S3 plugin changes where downloadable assets are stored and selected from, so the technical change is contained. What drives the effort up is the number of existing assets that must be moved or re-linked, the IAM design and review your AWS team requires, the privacy review of the chosen bucket region, and the number of environments (for example, staging and production) that need their own bucket and credentials. Ask for the scope to list each of these items separately so you can see what is included.

Can our own team connect Mautic assets to S3 without outside help?

Yes, a team with Mautic administration skills and AWS experience can usually do the setup in-house, because the plugin's documented steps cover the core configuration. The parts that tend to need extra attention are IAM policy design, confirming the bucket region against your privacy policy, and testing that assets resolve correctly after the change. If your team does not regularly work with IAM users, bucket policies or Mautic plugins, a partner can take on those parts, but the decision should rest on your staff's available time and skills.

What does the work need from our team?

Three roles are needed to keep the work moving. Someone needs AWS access sufficient to create an IAM user, a bucket and the permissions for them, and to review the setup in your account. A named privacy approver needs to confirm the bucket region against your privacy policy. A Mautic administrator needs to install and configure the plugin and check that asset selection works from the Mautic interface. Confirm early who holds each role, because delays usually come from waiting for approvals rather than from configuration.

Do AWS charges form part of the design?

AWS charges are part of your operating costs once assets live in S3, but the amount depends on your AWS account, the storage class you choose, the volume of stored data and the number of requests your downloads generate. Neither the plugin documentation nor this engagement sets those prices. Confirm current pricing with AWS directly or through your account team, and ask for any S3 charges to be listed as a separate line in the design so finance can track them against the Mautic budget.

What happens to assets already stored on the web server?

Assets already on the web server stay there until someone moves them, because the plugin changes where new assets are hosted and selected from. In practice, you need a plan for existing files: which ones to copy into the bucket, how links in emails, landing pages and forms will point to the new location, and when the old files can be removed. Test links on a non-production copy first, and keep the web server copies until you have confirmed that every asset resolves from the bucket.

Which IAM and bucket settings should an engineer check first?

Engineers should check three things before going live. First, the plugin should use an IAM user with permissions limited to the bucket it needs, not the AWS root account, which the Mautic S3 setup guidance advises against. Second, the bucket region should be recorded and checked against your privacy policy, since the region matters for data protection. Third, access to the bucket should be tested from the Mautic instance itself, with the credentials stored outside the code. Confirm the exact policy statements against the current AWS documentation for your account.

How is a DeployOpen engagement scoped before work starts?

DeployOpen agrees scope, deliverables and timelines in writing before work begins. For an S3 asset setup, the written scope would normally name the Mautic version and environments in scope, the bucket and IAM design, how existing assets are handled, the privacy review steps, testing and handover. The quote follows from that written scope, so you can compare it with doing the work in-house. Ask for the scope document to list anything excluded, including AWS account administration and ongoing storage costs.

How DeployOpen scopes and delivers Mautic S3 asset hosting

DeployOpen plans and implements self-hosted Mautic inside your own infrastructure, including moving downloadable assets into an Amazon S3 bucket under your control. Engagements start from a written scope that covers the bucket, the IAM access model, the region decision and the verification steps, so your security and privacy teams can review each part before work begins.

How we scope

  • Confirm which Mautic instance, asset types and existing download links the S3 move will affect
  • Record the bucket region decision with your privacy policy and data residency owner before build
  • Define the IAM user, permissions and key handling model in the written scope
  • Agree deliverables, timelines and acceptance criteria in writing before any work starts

How we build

  • Install and configure the Mautic Amazon S3 plugin on your self-hosted instance
  • Create a dedicated IAM user with access limited to the assets bucket, not root credentials
  • Migrate or re-select existing assets so they are created from the bucket going forward
  • Test uploads, asset selection and public download behavior in a staging environment first

How we hand over

  • Document the bucket name, region, IAM policy and key rotation steps for your team
  • Provide a runbook covering how assets are added, replaced and removed in the bucket
  • Walk your administrators through the configuration and record who holds each credential
  • Deliver the verification results and open items so your reviewers have a clear record

How we support

  • Keep the plugin and Mautic release line current as part of an optional retainer
  • Re-test asset hosting after Mautic upgrades, server changes or bucket policy changes
  • Review IAM permissions and access keys on a schedule agreed in the retainer
  • Support privacy and security reviews by supplying configuration evidence on request

Sources and further reading

Talk to our team.

Tell us what you're working on, whether it's a deployment, an audit, a security test or a cyber range. You'll speak with an engineer who can help you scope it.

  • 30-minute call: free, with no obligation.
  • NDA on request: we can sign before you share details.
  • Clear next steps: a scope and plan after the call.