Provides SMTP credentials for an existing SES domain identity.
SMTP usernames and passwords for SES require creating an IAM user and access
key. This module will create a Secrets Manager secret and populate it with
rotating SMTP credentials from a dedicated IAM user.
Example:
The outputs include policy_json
, which is an IAM policy allowing access to the
secret. You can add this to an IAM role or policy.
Name |
Source |
Version |
rotation |
github.com/thoughtbot/terraform-aws-secrets//secret-rotation-function |
v0.4.0 |
secret |
github.com/thoughtbot/terraform-aws-secrets//secret |
v0.4.0 |
Name |
Description |
Type |
Default |
Required |
admin_principals |
Principals allowed to peform admin actions (default: current account) |
list(string) |
null |
no |
domain |
The domain from which emails are sent |
string |
n/a |
yes |
identity_account_id |
ID of account that is authorized to send emails (default: current account) |
string |
null |
no |
name |
Name for created resources |
string |
n/a |
yes |
read_principals |
Principals allowed to read the secret (default: current account) |
list(string) |
null |
no |
subnet_ids |
Subnets in which the rotation function should run |
list(string) |
n/a |
yes |
tags |
Tags which should be applied to created resources |
map(string) |
{} |
no |
trust_tags |
Tags required on principals accessing the secret |
map(string) |
{} |
no |
vpc_id |
VPC in which the rotation function should run |
string |
n/a |
yes |
Name |
Description |
policy_json |
Required IAM policies |
secret_arn |
ARN of the secrets manager secret containing credentials |
secret_name |
Name of the secrets manager secret containing credentials |