'Do i need to specify both policy and role permission for AWS ElasticSearch Domain?

With some policy entries for Elasticsearch domains, but do we need to add permissions both in the policy and for the role used by for example a Lambda function?

Or is the role enough?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source