Connect Amazon SES to Replifier: IAM role or access keys
By Equipo de Replifier · ·Email · Amazon SES
The business problem
An online business has spent months building sender reputation on its own Amazon SES account: verified domain, active SPF and DKIM records, low bounce rates. It wants to use Replifier to manage campaigns and transactional emails, but the engineering team cannot hand AWS access keys to an external service. If those keys leak — or if the provider uses them beyond the agreed scope — the entire AWS account is exposed, not just email.
The real question is not “do we trust Replifier?” but “is that level of trust necessary?”. There are two ways to connect Amazon SES; which one you choose depends on what your team can configure in the AWS console.
How Replifier solves it
With an IAM role (recommended): Replifier never stores any of your keys. Instead, it uses STS AssumeRole to get temporary credentials that expire after one hour. A unique external ID per connection prevents the confused deputy attack: even if someone knew your role’s ARN, they could not assume it without the exact value Replifier generates — not you. If you ever want to cut access immediately, delete the role or the CloudFormation stack.
With access keys: You create an IAM user exclusively for Replifier, attach the same least-privilege permissions, and copy the key into the dashboard. Replifier stores that key encrypted; it does not expire on its own until you deactivate it. This option is simpler to set up, but it requires more discipline: rotate the key regularly and revoke it manually if you detect a problem.
Which one fits your situation?
| IAM role | Access keys | |
|---|---|---|
| Does Replifier store your credentials? | No | Yes, encrypted |
| Do credentials expire automatically? | Yes, every hour | No; you deactivate them |
| How to revoke access? | Delete the role or the CloudFormation stack | Disable or delete the key in IAM |
| Setup complexity | Medium (CloudFormation or IAM console) | Low (IAM user + key) |
| Root account keys? | Not applicable | Rejected (ses_root_keys_rejected) |
| Recommended | Yes | Only if you cannot create a role |
Step by step — Option A: IAM role (recommended)
Before you start: you need an AWS account with at least one verified domain in Amazon SES and permissions to create IAM roles.
-
In the Replifier dashboard, go to Providers and select Amazon SES.
-
Choose Connect with IAM role.
-
Replifier shows its AWS account ID and generates a unique external ID for this connection. Copy both values — you need them in the next step.
-
Create the role in AWS. The quickest way is the CloudFormation quick-create link Replifier provides: it opens the AWS console with all parameters pre-filled (ExternalId, domain, approved senders, role name, and Replifier’s account ID). Review that the domain and senders are yours, then confirm the stack creation.
To create the role manually: in the IAM console go to Roles → Create role → AWS account → Another AWS account. Enter Replifier’s account ID, enable Require external ID, and paste the external ID from the dashboard. Attach the permissions policy Replifier shows you. The role name must start with
ReplifierSES-. -
Once the stack or role is created, copy the role ARN (format:
arn:aws:iam::111122223333:role/ReplifierSES-your-domain-com) and paste it into the dashboard. -
Click Verify and connect. Replifier calls STS to confirm the identity, checks the SES account status, and verifies your domain.

- Once verification succeeds, the provider is active. You can now select it when configuring a brand or a transactional send.
Step by step — Option B: Access keys
Before you start: you need permissions to create IAM users in your AWS account.
- In IAM, create a new user with no console access, exclusively for Replifier.
- Attach the least-privilege policy the dashboard shows:
ses:SendEmail,ses:SendRawEmail,ses:GetEmailIdentity,ses:CreateEmailIdentity, andses:GetAccount, scoped to your domain’s identities and your approved senders. - On the user’s Security credentials tab, create an access key. Copy the key ID and secret as soon as they appear: AWS does not show them again.
- In the Replifier dashboard, go to Providers → Amazon SES → Connect with access keys. Paste the access key ID and secret.
- Click Verify and connect. Replifier validates the keys with
sts:GetCallerIdentity,ses:GetAccount, andses:GetEmailIdentity; none of those calls trigger GuardDuty alerts.
What you should see when done
- The provider shows as Active in Replifier’s provider list.
- Replifier displays your SES account status (sandbox or production) and your daily sending quota.
- A test email sent through that provider arrives signed with your DKIM and with your domain in the
Fromheader.
Common issues
ses_root_keys_rejected: you tried to connect with keys from your AWS root account. Replifier always rejects them. Create an IAM user exclusively for Replifier with the least-privilege policy, as in Option B.- The ARN is not accepted (role mode): verify that the role name starts with exactly
ReplifierSES-, including the capital letters and hyphen. - Verification fails even though the role exists: the external ID in the role’s trust policy must be exactly the one Replifier generated for this connection. If you opened the wizard multiple times, a new value is generated each time; always use the most recent one.
- Keys are valid but sends fail: verify that the policy includes
ses:FromAddresswith your domain in the condition. Without that condition, SES rejects sends even when the keys are correct. - No domains appear after verification: the domain must be verified in Amazon SES before Replifier can list it. Check its status directly in the SES console.