Authorization when sending a text message using AmazonSNSClient
问题 The official aws documentation on how to send a Textmessage with the aws SDK in java is pretty straightforward. However, when sending a message like shown in the example at the bottom, I'm getting the error User: arn:aws:iam::xxx:user/sms-testing is not authorized to perform: SNS:Publish on resource: +999999999 Note that +999999999 is the phone number passed to the .withPhoneNumber() call, so the aws api complains about my IAM user not having the necessary permission to SNS:Publish a message