# Could not create the CloudFormation stack request

**URL:** <https://discuss.elastic.co/t/could-not-create-the-cloudformation-stack-request/295437>\
**Category:** Beats\
**Tags:** functionbeat\
**Created:** [January 26, 2022, 9:16am UTC](https://discuss.elastic.co/t/could-not-create-the-cloudformation-stack-request/295437 "2022-01-26T09:16:25Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jason\_Zhang2](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jason_zhang2/32/100885_2.png) [@Jason\_Zhang2](https://discuss.elastic.co/u/Jason_Zhang2)\
**Post date:** [January 26, 2022, 9:16am UTC](https://discuss.elastic.co/t/could-not-create-the-cloudformation-stack-request/295437/1 "2022-01-26T09:16:25Z")

</div>

Hi, There

We're trying to use functionbeat to add cloudwatch log into Elasticsearch.

And it always gave this error 'Could not create the CloudFormation stack request'.  
This page mentioned that it's caused by region setting. But I double checked the setting of aws configure, and the region match to the one where our cloudwatch log is.

Can someone please help me out? Where else I can check with the region setting mentioned in this page? Thx in advance.

> **[Deployment to AWS fails with "failed to create the stack" | Functionbeat...](https://www.elastic.co/guide/en/beats/functionbeat/7.10/unable-to-deploy.html)**

---

<div class="post-metadata">

**Author:** ![mtojek](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/mtojek/32/63863_2.png) [@mtojek](https://discuss.elastic.co/u/mtojek)\
**Post date:** [January 26, 2022, 1:30pm UTC](https://discuss.elastic.co/t/could-not-create-the-cloudformation-stack-request/295437/2 "2022-01-26T13:30:13Z")

</div>

Hi,

could you please check if there is anything in the CloudFormation deployment logs? I would still assume it's a matter of misconfigured region somewhere.

---

<div class="post-metadata">

**Author:** ![Jason\_Zhang2](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jason_zhang2/32/100885_2.png) [@Jason\_Zhang2](https://discuss.elastic.co/u/Jason_Zhang2)\
**Post date:** [January 26, 2022, 8:53pm UTC](https://discuss.elastic.co/t/could-not-create-the-cloudformation-stack-request/295437/3 "2022-01-26T20:53:17Z")

</div>

Hi, Macin

Thx for your attention. Currently I have the logs when run ./functionbeat -v -e -d "\*" deploy cloudwatch, as show in the screenshot. Could you please help take a look at it first? I will try to grab more details from cloudformation. Thx.

 ![Screen Shot 2022-01-26 at 12.52.13 PM](https://us1.discourse-cdn.com/elastic/original/3X/4/5/4547e94bebcea4a2cd9cfc647fa3afa4ebc3dc22.jpeg)

---

<div class="post-metadata">

**Author:** ![Jason\_Zhang2](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jason_zhang2/32/100885_2.png) [@Jason\_Zhang2](https://discuss.elastic.co/u/Jason_Zhang2)\
**Post date:** [January 26, 2022, 9:00pm UTC](https://discuss.elastic.co/t/could-not-create-the-cloudformation-stack-request/295437/4 "2022-01-26T21:00:44Z")

</div>

And I referred this page to setup IAM role, and also update functionbeat.yml to use this role to deploy.

> **[IAM permissions required to deploy Functionbeat | Functionbeat Reference...](https://www.elastic.co/guide/en/beats/functionbeat/current/iam-permissions.html)**

---

<div class="post-metadata">

**Author:** ![Jason\_Zhang2](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jason_zhang2/32/100885_2.png) [@Jason\_Zhang2](https://discuss.elastic.co/u/Jason_Zhang2)\
**Post date:** [January 27, 2022, 1:12am UTC](https://discuss.elastic.co/t/could-not-create-the-cloudformation-stack-request/295437/6 "2022-01-27T01:12:01Z")

</div>

Hi Macin  
I am also trying to deploy directly in aws console. May I know the path of below files? Thx.

Uploading file 'functionbeat-deployment/cloudwatch/p9qMMz9BKEGi4BlG0\_l0EWDywT-ck5qnyK2KzFERgZA/functionbeat.zip'

2022-01-27T01:03:24.307Z DEBUG [aws] aws/op\_upload\_to\_bucket.go:44 Uploading file 'functionbeat-deployment/cloudwatch/k\_dh4vDxhxBgB0P-5EOx1ElRHo4ndV33DITNJ3m9eRA/cloudformation-template-create.json'

---

<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:** [February 24, 2022, 3:12am UTC](https://discuss.elastic.co/t/could-not-create-the-cloudformation-stack-request/295437/7 "2022-02-24T03:12:20Z")

</div>

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