AWS Amazon SES Configuration Set
This page shows how to write Terraform and CloudFormation for Amazon SES Configuration Set and write them securely.
aws_ses_configuration_set (Terraform)
The Configuration Set in Amazon SES can be configured in Terraform with the resource name aws_ses_configuration_set
. The following sections describe 5 examples of how to use the resource and its parameters.
Example Usage from GitHub
resource "aws_ses_configuration_set" "transactional" {
name = "Transactional"
}
resource "aws_ses_configuration_set" "marketing" {
name = "Marketing"
resource "aws_ses_configuration_set" "$configurationSetName" {
name = "$configurationSetName"
}
resource "aws_ses_configuration_set" "this" {
name = "skole-ses-config"
}
resource "aws_ses_event_destination" "this" {
name = "skole-ses-destination"
resource "aws_ses_configuration_set" "this" {
name = var.name
}
resource "aws_ses_configuration_set" "ms" {
name = "ms-ses-configuration-set"
}
resource "aws_ses_event_destination" "ses_errors" {
name = "ses-error-sns-destination"
Parameters
-
arn
optional computed - string -
id
optional computed - string -
name
required - string -
delivery_options
list block-
tls_policy
optional - string
-
Explanation in Terraform Registry
Provides an SES configuration set resource.
AWS::SES::ConfigurationSet (CloudFormation)
The ConfigurationSet in SES can be configured in CloudFormation with the resource name AWS::SES::ConfigurationSet
. The following sections describe 10 examples of how to use the resource and its parameters.
Example Usage from GitHub
Type: 'AWS::SES::ConfigurationSet'
Properties:
Name: ${self:custom.resourcePrefix}-statistic
Type: AWS::SES::ConfigurationSet
Properties:
Name: ${self:custom.ses-configuration-set}
SesEventsTopic:
Type: AWS::SNS::Topic
Type: AWS::SES::ConfigurationSet
Properties:
Name: !Ref ConfigSetName
CWEventDestination:
Type: AWS::SES::ConfigurationSetEventDestination
Properties:
Type: AWS::SES::ConfigurationSet
Properties:
Name: promotional
PromotionalConfigurationSetEventDestination:
DependsOn:
Type: AWS::SES::ConfigurationSet
Properties:
Name: EmailServiceConfigurationSet
EmailServiceEventsSQS:
Type: AWS::SQS::Queue
"AWS::SES::ConfigurationSet": {
"Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ses-configurationset.html",
"Properties": {
"Name": {
"Required": false,
"Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ses-configurationset.html#cfn-ses-configurationset-name",
"AWS::SES::ConfigurationSet": {
"Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ses-configurationset.html",
"Properties": {
"Name": {
"Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ses-configurationset.html#cfn-ses-configurationset-name",
"UpdateType": "Immutable",
"AWS::SES::ConfigurationSet": {
"Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ses-configurationset.html",
"Properties": {
"Name": {
"Required": false,
"Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ses-configurationset.html#cfn-ses-configurationset-name",
"AWS::SES::ConfigurationSet": {
"Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ses-configurationset.html",
"Properties": {
"Name": {
"Required": false,
"Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ses-configurationset.html#cfn-ses-configurationset-name",
"AWS::SES::ConfigurationSet": {
"Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ses-configurationset.html",
"Properties": {
"Name": {
"Required": false,
"Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ses-configurationset.html#cfn-ses-configurationset-name",
Parameters
Name
Not currently supported by AWS CloudFormation.
Required: No
Type: String
Update requires: Replacement
Explanation in CloudFormation Registry
The name of the configuration set.
Configuration sets let you create groups of rules that you can apply to the emails you send using Amazon SES. For more information about using configuration sets, see Using Amazon SES Configuration Sets in the Amazon SES Developer Guide.
Frequently asked questions
What is AWS Amazon SES Configuration Set?
AWS Amazon SES Configuration Set is a resource for Amazon SES of Amazon Web Service. Settings can be wrote in Terraform and CloudFormation.
Where can I find the example code for the AWS Amazon SES Configuration Set?
For Terraform, the alfiesal/terraform-examples, infraxys-aws/aws-ses and skoleapp/skole-infra source code examples are useful. See the Terraform Example section for further details.
For CloudFormation, the ovandr/serverless-mail-sender, carlhueffmeier/mister-mail and burgess1109/AWS-CloudFormation-Sample source code examples are useful. See the CloudFormation Example section for further details.