Ok, so I have this lambda function that appends return_values[whatever] list and that is sent to aws sns with the formatting below, the problem is it separates the list item with commas and not with a desired new line. Is there a method to get this formatting correct? I’ve tried the print(*results,sep=’n’) but that just comes back as None as
Tag: amazon-sns
ClientError: An error occurred (InternalFailure) when calling the Publish operation (reached max retries: 4)
I am simply trying to publish to an SNS topic using a lambda function. The function code as follows, with ARN being the actual SNS topic ARN: The function execution role as access to SNS. In fact I even gave SNS full access. But I keep getting the error: I do not find any access denied errors in cloudtrail either.
Python boto3 SNS email formatting (each string in new line)
How to print each string in a new line in an email using AWS SNS service. If I print a message in Python output all strings is in new lines: but in an email it is all in one line: Answer replace ‘n’ by “.n” and after that in an email – each string is in a new line.