From accdfa97e3ca45a8ce4ecd58def20297e3c4d87b Mon Sep 17 00:00:00 2001 From: vinay kumar Date: Tue, 27 Jul 2021 13:52:40 -0400 Subject: [PATCH] add missing sns publish permission --- main.tf | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/main.tf b/main.tf index 0a2734e..c982979 100644 --- a/main.tf +++ b/main.tf @@ -27,6 +27,15 @@ data "aws_iam_policy_document" "role_policy" { "${aws_s3_bucket.config.arn}/*", ] } + + statement { + actions = [ + "sns:Publish", + ] + resources = [ + aws_sns_topic.config.arn + ] + } } resource "aws_iam_role_policy" "config" {