Skip to content

Commit

Permalink
Disable SendingConfigurationSetDestination for now
Browse files Browse the repository at this point in the history
The deployment is still failing due to the same error from commit
ff05087. Creating the SNS policy
appears to succeed, so this disables the configuration set destination
for now to see what the policy looks like.
  • Loading branch information
mbland committed Apr 10, 2023
1 parent ff05087 commit 3c62857
Showing 1 changed file with 18 additions and 19 deletions.
37 changes: 18 additions & 19 deletions template.yml
Original file line number Diff line number Diff line change
Expand Up @@ -176,14 +176,13 @@ Resources:
- !Ref DeliveryNotificationsTopic
PolicyDocument:
# https://docs.aws.amazon.com/ses/latest/dg/configure-sns-notifications.html#configure-feedback-notifications-prerequisites
Version: 2012-10-17
Version: "2012-10-17"
Id: !Sub "${AWS::StackName}-notification-policy"
Statement:
- Effect: Allow
Principal:
Service: ses.amazonaws.com
Action:
- "sns:Publish"
Action: "sns:Publish"
Resource: !Ref DeliveryNotificationsTopic
Condition:
StringEquals:
Expand All @@ -204,22 +203,22 @@ Resources:
- COMPLAINT
- BOUNCE

SendingConfigurationSetDestination:
# https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ses-configurationseteventdestination.html
Type: AWS::SES::ConfigurationSetEventDestination
Properties:
ConfigurationSetName: !Ref SendingConfigurationSet
EventDestination:
Name: !Sub "${AWS::StackName}-delivery-notifications"
Enabled: true
MatchingEventTypes:
- send
- delivery
- reject
- bounce
- complaint
SnsDestination:
TopicARN: !Ref DeliveryNotificationsTopic
#SendingConfigurationSetDestination:
# # https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ses-configurationseteventdestination.html
# Type: AWS::SES::ConfigurationSetEventDestination
# Properties:
# ConfigurationSetName: !Ref SendingConfigurationSet
# EventDestination:
# Name: !Sub "${AWS::StackName}-delivery-notifications"
# Enabled: true
# MatchingEventTypes:
# - send
# - delivery
# - reject
# - bounce
# - complaint
# SnsDestination:
# TopicARN: !Ref DeliveryNotificationsTopic

Outputs:
# https://github.com/awslabs/serverless-application-model/blob/master/docs/internals/generated_resources.rst#api
Expand Down

0 comments on commit 3c62857

Please sign in to comment.