Search code examples
aws-lambdaamazon-sns

Find a valid IAM role for successful and failed delivery of AWS SNS


Hi i am trying to create a SNS topic but i am getting error attached screen shot for reference. My requirement is when ever message published to SNS topic i have to access the message and it's entire events through lambda function but while creating a topic itself i am getting the error.

enter image description here

Could some one kindly help me to understand and resolve above issue? Thanks in advance


Solution

  • You are missing an IAM role which needs to have appropriate permissions to perform write actions to CloudWatch Logs.

    Your error tells you that you haven't selected an IAM role that should be used for your SNS topic. Simply tick "Create new service role" and that will solve your issue by creating new IAM role which will automatically be used for your deployment.