Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
badra001 committed Mar 29, 2021
1 parent 09e2a7f commit def8d2c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion ses-domain/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -261,7 +261,7 @@ resource "aws_sns_topic_policy" "ses_event" {

resource "aws_ses_identity_notification_topic" "ses_event" {
for_each = toset(local.ses_event_types)
topic_arn = aws_sns_topic.ses_event.arn
topic_arn = aws_sns_topic.ses_event[0].arn
notification_type = each.key
identity = aws_ses_domain_identity.this.domain
include_original_headers = true
Expand Down
2 changes: 1 addition & 1 deletion ses-domain/policies.tf
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ data "aws_iam_policy_document" "ses_event" {
statement {
effect = "Alow"
actions = ["sns:Publish"]
resources = [aws_sns_topic.ses_event.arn]
resources = [aws_sns_topic.ses_event[0].arn]
principals {
type = "Service"
identifiers = ["ses.amazonaws.com"]
Expand Down

0 comments on commit def8d2c

Please sign in to comment.