Skip to content

Commit

Permalink
Extract separate SESSuppressionListPolicy
Browse files Browse the repository at this point in the history
Commit 989e0d7 didn't work, because
SESSendEmailPolicy is limited to specific resources, and the suppression
list permissions must apply to 'Resource: "*"':

  User: arn:aws:sts::...:assumed-role/.../elistman-dev-Function-...
  is not authorized to perform: ses:GetSuppressedDestination on
  resource: * because no identity-based policy allows the
  ses:GetSuppressedDestination action

I should've noticed that previously.
  • Loading branch information
mbland committed May 18, 2023
1 parent 4d2a498 commit c1845d9
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions template.yml
Original file line number Diff line number Diff line change
Expand Up @@ -69,12 +69,17 @@ Resources:
Action:
- "ses:SendRawEmail"
- "ses:SendBounce"
- "ses:GetSuppressedDestination"
- "ses:PutSuppressedDestination"
- "ses:DeleteSuppressedDestination"
Resource:
- !Sub "arn:${AWS::Partition}:ses:${AWS::Region}:${AWS::AccountId}:identity/${EmailDomainName}"
- !Sub "arn:${AWS::Partition}:ses:${AWS::Region}:${AWS::AccountId}:configuration-set/${AWS::StackName}"
- Statement:
Sid: SESSuppressionListPolicy
Effect: Allow
Action:
- "ses:GetSuppressedDestination"
- "ses:PutSuppressedDestination"
- "ses:DeleteSuppressedDestination"
Resource: "*"

Tracing: Active
Environment:
Expand Down

0 comments on commit c1845d9

Please sign in to comment.