AWS Amazon SES Receipt Rule Set

This page shows how to write Terraform and CloudFormation for Amazon SES Receipt Rule Set and write them securely.

aws_ses_receipt_rule_set (Terraform)

The Receipt Rule Set in Amazon SES can be configured in Terraform with the resource name aws_ses_receipt_rule_set. The following sections describe 3 examples of how to use the resource and its parameters.

Example Usage from GitHub

ses.tf#L17
resource "aws_ses_receipt_rule_set" "main" {
  rule_set_name = "email-verification-rules"
}

resource "aws_ses_active_receipt_rule_set" "main" {
  rule_set_name = "email-verification-rules"
main.tf#L7
resource "aws_ses_receipt_rule_set" "this" {
  rule_set_name = var.rule_set_name
}

ses.tf#L6
resource "aws_ses_receipt_rule_set" "sw_check_in" {
  rule_set_name = "sw-check-in"
}

resource "aws_ses_active_receipt_rule_set" "sw_check_in" {
  rule_set_name = "sw-check-in"

Review your Terraform file for AWS best practices

Shisho Cloud, our free checker to make sure your Terraform configuration follows best practices, is available (beta).

Parameters

Explanation in Terraform Registry

Provides an SES receipt rule set resource.

AWS::SES::ReceiptRuleSet (CloudFormation)

The ReceiptRuleSet in SES can be configured in CloudFormation with the resource name AWS::SES::ReceiptRuleSet. The following sections describe 10 examples of how to use the resource and its parameters.

Example Usage from GitHub

serverless.yml#L46
      Type: AWS::SES::ReceiptRuleSet
      Properties:
        RuleSetName: ${self:custom.email-handler-rule-set-name}

    SESEmailReceivedRule:
      Type: AWS::SES::ReceiptRule
serverless.yml#L45
      Type: AWS::SES::ReceiptRuleSet
    MailRule:
      Type: AWS::SES::ReceiptRule
      Properties:
        Rule:
          Actions:
ses-ruleset.yml#L16
    Type: AWS::SES::ReceiptRuleSet
    Properties:
      RuleSetName: !Ref ReceiptRuleSetName

  mailToS3Rule:
    Type: AWS::SES::ReceiptRule
setup.yml#L16
    Type: AWS::SES::ReceiptRuleSet
    Properties:
      RuleSetName: SamhstnRuleSet

  EmailS3Bucket:
    Type: AWS::S3::Bucket
ses_ruleset.yml#L1
Type: AWS::SES::ReceiptRuleSet
Properties:
  RuleSetName: fax4med-ruleset
SESReceiptRuleSetSpecification.json#L3
    "AWS::SES::ReceiptRuleSet": {
      "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ses-receiptruleset.html",
      "Properties": {
        "RuleSetName": {
          "Required": false,
          "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ses-receiptruleset.html#cfn-ses-receiptruleset-rulesetname",
SESReceiptRuleSetSpecification.json#L3
    "AWS::SES::ReceiptRuleSet": {
      "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ses-receiptruleset.html",
      "Properties": {
        "RuleSetName": {
          "Required": false,
          "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ses-receiptruleset.html#cfn-ses-receiptruleset-rulesetname",
SESReceiptRuleSetSpecification.json#L3
    "AWS::SES::ReceiptRuleSet": {
      "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ses-receiptruleset.html",
      "Properties": {
        "RuleSetName": {
          "Required": false,
          "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ses-receiptruleset.html#cfn-ses-receiptruleset-rulesetname",
rule_set.json#L3
        "Type": "AWS::SES::ReceiptRuleSet",
        "Properties": {
            "RuleSetName": "0x4447_S3_Email"
        }
    }
SESReceiptRuleSetSpecification.json#L3
    "AWS::SES::ReceiptRuleSet": {
      "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ses-receiptruleset.html",
      "Properties": {
        "RuleSetName": {
          "Required": false,
          "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ses-receiptruleset.html#cfn-ses-receiptruleset-rulesetname",

Parameters

RuleSetName The name of the receipt rule set to reorder.
Required: No
Type: String
Update requires: Replacement

Explanation in CloudFormation Registry

Creates an empty receipt rule set.

For information about setting up receipt rule sets, see the Amazon SES Developer Guide.

You can execute this operation no more than once per second.

Frequently asked questions

What is AWS Amazon SES Receipt Rule Set?

AWS Amazon SES Receipt Rule 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 Receipt Rule Set?

For Terraform, the alistairjordan/aws-auto-account, niveklabs/aws and DavidWittman/serverless-southwest-check-in source code examples are useful. See the Terraform Example section for further details.

For CloudFormation, the mfolivas/aws-serverless-nodejs-ses-receive-email, jmferreiratech/mail-forwarder-s3 and techotron/dbc-converter-app source code examples are useful. See the CloudFormation Example section for further details.