Skip to content

Commit

Permalink
fix: Add missing IAM SES permissions
Browse files Browse the repository at this point in the history
  • Loading branch information
mkleszcz committed Jul 5, 2024
1 parent 2056b03 commit 684b37b
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
7 changes: 7 additions & 0 deletions packages/backend/infra/stacks/lib/backendTaskRole.ts
Original file line number Diff line number Diff line change
Expand Up @@ -87,5 +87,12 @@ export function createBackendTaskRole(
}),
);

taskRole.addToPolicy(
new iam.PolicyStatement({
actions: ['ses:SendEmail', 'ses:SendRawEmail', 'ses:GetSendQuota'],
resources: ['*'],
}),
);

return taskRole;
}
4 changes: 0 additions & 4 deletions packages/workers/workers.conf.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,6 @@ iam:
- "secretsmanager:*"
Resource:
{ Fn::ImportValue: "${self:custom.projectEnvName}-databaseSecretArn" }
- Effect: "Allow"
Action:
- "ses:SendEmail"
Resource: "*"
- Effect: "Allow"
Action:
- "states:StartExecution"
Expand Down

0 comments on commit 684b37b

Please sign in to comment.