Reputation: 51
I am trying to follow this job aid to create an API gateway rest endpiont with an s3 integration. https://docs.aws.amazon.com/apigateway/latest/developerguide/integrating-api-with-aws-services-s3.html
However, when I try to create my execution role in IAM, there is only one use case at the bottom for API gateway. "Allows API Gateway to push logs to CloudWatch Logs." I am unable to attach an s3 policy the the API gateway role. Is this documentation out of date? How do I add the execution role for s3?
Upvotes: 2
Views: 806
Reputation: 19
First you create the role with the cloudwatch policy, then you go in your role list in IAM and find the role you just created , inside the role you can click on "attach policy" button and add any policies.
cheers
Upvotes: 1