Skip to content

Commit

Permalink
restrict policy to the created domain identity
Browse files Browse the repository at this point in the history
  • Loading branch information
briskt committed Jun 21, 2024
1 parent bc336d3 commit b101002
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ resource "aws_iam_user_policy" "smtp" {
"ses:sendEmail",
"ses:sendRawEmail",
]
Resource = "*",
Resource = aws_ses_domain_identity.this.arn,
Condition = {
StringEquals = {
"ses:FromAddress" = var.email_from_address
Expand Down

0 comments on commit b101002

Please sign in to comment.