AWS Amazon Pinpoint Email Email Channel

This page shows how to write Terraform and CloudFormation for Amazon Pinpoint Email Email Channel and write them securely.

aws_pinpoint_email_channel (Terraform)

The Email Channel in Amazon Pinpoint Email can be configured in Terraform with the resource name aws_pinpoint_email_channel. The following sections describe 2 examples of how to use the resource and its parameters.

Example Usage from GitHub

main.tf#L7
resource "aws_pinpoint_email_channel" "this" {
  application_id = var.application_id
  enabled        = var.enabled
  from_address   = var.from_address
  identity       = var.identity
  role_arn       = var.role_arn
pinpoint.tf#L15
resource "aws_pinpoint_email_channel" "email" {
  provider = aws.west
  application_id = aws_pinpoint_app.red_team_terraform_final.application_id
  from_address   = "michael.jiang@accenturefederal.com"
  identity       = "arn:aws-us-gov:ses:us-gov-west-1:812677824406:identity/michael.jiang@accenturefederal.com"
  role_arn       = aws_iam_role.role.arn

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 a Pinpoint Email Channel resource.

AWS::Pinpoint::EmailChannel (CloudFormation)

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

Example Usage from GitHub

pinpoint.yml#L9
    Type: AWS::Pinpoint::EmailChannel
    Properties:
      ApplicationId: !Ref PinpointApp
      Enabled: True
      FromAddress: ${self:custom.sesSender.address}
      Identity: ${self:custom.sesSender.arn}
pinpoint.yml#L9
    Type: AWS::Pinpoint::EmailChannel
    Properties:
      ApplicationId: !Ref PinpointApp
      Enabled: True
      FromAddress: ${self:custom.sesSender.address}
      Identity: ${self:custom.sesSender.arn}
pinpoint.yml#L26
    Type: AWS::Pinpoint::EmailChannel
    Properties:
      ApplicationId: !Ref pinpointApp
      Enabled: true
      FromAddress: getfloodwarnings@gmail.com
      Identity: arn:aws:ses:eu-west-2:190133113546:identity/getfloodwarnings@gmail.com
emailChannel.yml#L1
Type: AWS::Pinpoint::EmailChannel
Properties:
  ApplicationId: !Ref pinpointApp
  Enabled: true
  FromAddress: ${self:custom.environment.emailConfig.verifiedEmailAddress}
  Identity: ${self:custom.environment.emailConfig.verifiedEmailArn}
product.template-us-west-2.yaml#L15
    Type: AWS::Pinpoint::EmailChannel
    Description: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-pinpoint-emailchannel.html
    Properties:
      FromAddress: !Ref 'FromAddress'
      ApplicationId: !Ref 'ApplicationId'
      Identity: !Ref 'Identity'
awsResouceIconMatches.json#L632
        "resourceType": "AWS::Pinpoint::EmailChannel",
        "filePath": null
      },
      {
        "resourceType": "AWS::Pinpoint::App",
        "filePath": null
PinpointEmailChannelSpecification.json#L3
    "AWS::Pinpoint::EmailChannel": {
      "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-pinpoint-emailchannel.html",
      "Properties": {
        "ConfigurationSet": {
          "Required": false,
          "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-pinpoint-emailchannel.html#cfn-pinpoint-emailchannel-configurationset",
template.json#L2759
    "AWS::Pinpoint::EmailChannel": {
      "Type": "AWS::Pinpoint::EmailChannel",
      "Properties": {}
    },
    "AWS::EC2::NetworkInsightsAnalysis": {
      "Type": "AWS::EC2::NetworkInsightsAnalysis",

Parameters

ApplicationId The unique identifier for the Amazon Pinpoint application that you're specifying the email channel for.
Required: Yes
Type: String
Update requires: Replacement

ConfigurationSet The Amazon SES configuration set that you want to apply to messages that you send through the channel.
Required: No
Type: String
Update requires: No interruption

Enabled Specifies whether to enable the email channel for the application.
Required: No
Type: Boolean
Update requires: No interruption

FromAddress The verified email address that you want to send email from when you send email through the channel.
Required: Yes
Type: String
Update requires: No interruption

Identity The Amazon Resource Name (ARN) of the identity, verified with Amazon Simple Email Service (Amazon SES), that you want to use when you send email through the channel.
Required: Yes
Type: String
Update requires: No interruption

RoleArn The ARN of the AWS Identity and Access Management (IAM) role that you want Amazon Pinpoint to use when it submits email-related event data for the channel.
Required: No
Type: String
Update requires: No interruption

Explanation in CloudFormation Registry

A channel is a type of platform that you can deliver messages to. You can use the email channel to send email to users. Before you can use Amazon Pinpoint to send email, you must enable the email channel for an Amazon Pinpoint application.

The EmailChannel resource represents the status, identity, and other settings of the email channel for an application

Frequently asked questions

What is AWS Amazon Pinpoint Email Email Channel?

AWS Amazon Pinpoint Email Email Channel is a resource for Amazon Pinpoint Email of Amazon Web Service. Settings can be wrote in Terraform and CloudFormation.

Where can I find the example code for the AWS Amazon Pinpoint Email Email Channel?

For Terraform, the niveklabs/aws and wimaac/red_team source code examples are useful. See the Terraform Example section for further details.

For CloudFormation, the starpolar/backend, lovelyrrg51/real-backend and DEFRA/flood-xws-subscription-api source code examples are useful. See the CloudFormation Example section for further details.