serverless-application-model
serverless-application-model copied to clipboard
Include IAM policy to validate phone numbers
Description: As soon you deploy a new lambda using SAM CLI, you get a validation erro due to the policy ARN to validate phone numbers from pinpoint service is not available as a AWS managed permission.
Steps to reproduce the issue:
- Go to AWS IAM console
- Search for PinpointReadAccess
- Use that policy in the list of policies inside you yaml file
- Try to deploy
Observed result: 400 status code
Expected result: 200 OK for the function iam role stack
I have a proposal of a PR here: https://github.com/awslabs/serverless-application-model/pull/1466
Removing bug and adding feature. This is a request to add a policy template.
I also don't see PinpointReadAccess in the IAM console, so this is expected not to work.