# IAM Policy to use the CloudWatch Logs feature

**URL:** <https://discuss.elastic.co/t/iam-policy-to-use-the-cloudwatch-logs-feature/196362>\
**Category:** Beats\
**Tags:** functionbeat\
**Created:** [August 22, 2019, 4:00pm UTC](https://discuss.elastic.co/t/iam-policy-to-use-the-cloudwatch-logs-feature/196362 "2019-08-22T16:00:58Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![jbuenostein89](https://avatars.discourse-cdn.com/v4/letter/j/34f0e0/32.png) [@jbuenostein89](https://discuss.elastic.co/u/jbuenostein89)\
**Post date:** [August 22, 2019, 4:00pm UTC](https://discuss.elastic.co/t/iam-policy-to-use-the-cloudwatch-logs-feature/196362/1 "2019-08-22T16:00:59Z")

</div>

So I have followed the getting started [guide](https://www.elastic.co/guide/en/beats/functionbeat/7.3/functionbeat-getting-started.html) and the instructions on the '/app/kibana#/home/tutorial/cloudwatchLogs?\_g=()' page, but when deploying the CloudFormation stack, I keep getting permission errors that are not outlined in any of the guides.

Can someone share the policy they used?

Every time I incur a permissions error, I delete the stack and redploy, finding new errors.

For instance, at one point I didn't have the ' **IAM:GetRole**' permission. I fixed that, then I needed the ' **iam:CreateRole**' permission. Then the ' **logs:CreateLogGroup**'

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [September 12, 2019, 6:09am UTC](https://discuss.elastic.co/t/iam-policy-to-use-the-cloudwatch-logs-feature/196362/2 "2019-09-12T06:09:29Z")

</div>

This topic was automatically closed 20 days after the last reply. New replies are no longer allowed.
