# Unable to deploy Functionbeat 7.16.3

**URL:** <https://discuss.elastic.co/t/unable-to-deploy-functionbeat-7-16-3/296857>\
**Category:** Beats\
**Tags:** functionbeat\
**Created:** [February 10, 2022, 2:38pm UTC](https://discuss.elastic.co/t/unable-to-deploy-functionbeat-7-16-3/296857 "2022-02-10T14:38:25Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Bhavani\_Ananth](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/bhavani_ananth/32/45740_2.png) [@Bhavani\_Ananth](https://discuss.elastic.co/u/Bhavani_Ananth)\
**Post date:** [February 10, 2022, 2:38pm UTC](https://discuss.elastic.co/t/unable-to-deploy-functionbeat-7-16-3/296857/1 "2022-02-10T14:38:25Z")

</div>

Elasticsearch version : 7.16.3  
Functionbeat: 7.16.3  
OS : Ubuntu 20.04.3 LTS

a. When I try to deploy functionbeat (version 7.16.3) in S3 bucket, I get the following exception

```auto
Function: cloudwatch, could not deploy, error: bucket 'testfuncbeat' already exist and you don't have permission to access it: unknown endpoint, could not resolve endpoint, partition: "aws", service: "s3", region: "", known: [ap-east-1 ca-central-1 eu-central-1 sa-east-1 us-west-1 us-east-1 ap-northeast-2 ap-south-1 eu-north-1 eu-west-3 ap-southeast-2 aws-global eu-west-1 us-west-2 af-south-1 eu-south-1 ap-southeast-1 s3-external-1 eu-west-2 me-south-1 us-east-2 ap-northeast-1]
Fail to deploy 1 function(s) '''
Note: AWS access if, secret key and region have been exported using 

```

export AWS\_ACCESS\_KEY\_ID=ABCDEFGHIJKLMNOPUSER  
export AWS\_SECRET\_ACCESS\_KEY=EXAMPLE567890devgHIJKMLOPNQRSTUVZ1234KEY  
export AWS\_DEFAULT\_REGION=us-east-1

```auto
Since it seems region is not set, tried the approach 2

2. If I were to used the credentials file ~/.aws/credentials with the following defined, I get the following exception

```

./functionbeat --v -d "\*" deploy cloudwatch

panic: runtime error: invalid memory address or nil pointer dereference

goroutine 1 [running]:

runtime/debug.Stack()

/usr/local/go/src/runtime/debug/stack.go:24 +0x65

runtime/debug.PrintStack()

/usr/local/go/src/runtime/debug/stack.go:16 +0x19

[github.com/elastic/beats/v7/libbeat/common/cli.exitOnPanic()](http://github.com/elastic/beats/v7/libbeat/common/cli.exitOnPanic())

/go/src/github.com/elastic/beats/libbeat/common/cli/cli.go:31 +0x6a

panic({0x55e3f2ffc2e0, 0x55e3f4941250})

/usr/local/go/src/runtime/panic.go:1038 +0x215

[github.com/elastic/beats/v7/x-pack/functionbeat/manager/aws.(\*CLIManager](http://github.com/elastic/beats/v7/x-pack/functionbeat/manager/aws.(*CLIManager)).deployTemplate(0xc000145600, 0x0, {0x7ffca7f686b9, 0xa})

/go/src/github.com/elastic/beats/x-pack/functionbeat/manager/aws/cli\_manager.go:72 +0x184

[github.com/elastic/beats/v7/x-pack/functionbeat/manager/aws.(\*CLIManager](http://github.com/elastic/beats/v7/x-pack/functionbeat/manager/aws.(*CLIManager)).Deploy(0xc000145600, {0x7ffca7f686b9, 0xa})

/go/src/github.com/elastic/beats/x-pack/functionbeat/manager/aws/cli\_manager.go:129 +0x188

[github.com/elastic/beats/v7/x-pack/functionbeat/manager/cmd.(\*cliHandler](http://github.com/elastic/beats/v7/x-pack/functionbeat/manager/cmd.(*cliHandler)).iterateCLIFunc(0xc0005febc0, {0xc00054ea00, 0x1, 0xc000742628}, {0x55e3f25a09b7, 0x6}, 0x55e3f348e0c0, 0x1)

/go/src/github.com/elastic/beats/x-pack/functionbeat/manager/cmd/cli\_handler.go:150 +0x12d

[github.com/elastic/beats/v7/x-pack/functionbeat/manager/cmd.(\*cliHandler](http://github.com/elastic/beats/v7/x-pack/functionbeat/manager/cmd.(*cliHandler)).iterateCLIFuncVerbose(...)

/go/src/github.com/elastic/beats/x-pack/functionbeat/manager/cmd/cli\_handler.go:126

[github.com/elastic/beats/v7/x-pack/functionbeat/manager/cmd.(\*cliHandler](http://github.com/elastic/beats/v7/x-pack/functionbeat/manager/cmd.(*cliHandler)).Deploy(0xc0005febc0, {0xc00054ea00, 0x55e3f25828f3, 0x4})

/go/src/github.com/elastic/beats/x-pack/functionbeat/manager/cmd/cli\_handler.go:59 +0x19a

[github.com/elastic/beats/v7/x-pack/functionbeat/manager/cmd.genCLICmd.func1](http://github.com/elastic/beats/v7/x-pack/functionbeat/manager/cmd.genCLICmd.func1)(0xc000774400, {0xc00054ea00, 0x1, 0x4})

/go/src/github.com/elastic/beats/x-pack/functionbeat/manager/cmd/provider\_cmd.go:99 +0x5f

[github.com/elastic/beats/v7/libbeat/common/cli.RunWith.func1](http://github.com/elastic/beats/v7/libbeat/common/cli.RunWith.func1)(0xc00076f8c0, {0xc00054ea00, 0x4, 0x6})

/go/src/github.com/elastic/beats/libbeat/common/cli/cli.go:42 +0x48

[github.com/spf13/cobra.(\*Command](http://github.com/spf13/cobra.(*Command)).execute(0xc00076f8c0, {0xc00073bb60, 0x4, 0x6})

/go/pkg/mod/github.com/spf13/cobra@v1.0.0/command.go:846 +0x5f8

[github.com/spf13/cobra.(\*Command](http://github.com/spf13/cobra.(*Command)).ExecuteC(0xc0006e8f00)

/go/pkg/mod/github.com/spf13/cobra@v1.0.0/command.go:950 +0x3ad

[github.com/spf13/cobra.(\*Command](http://github.com/spf13/cobra.(*Command)).Execute(...)

/go/pkg/mod/github.com/spf13/cobra@v1.0.0/command.go:887

main.main()

/go/src/github.com/elastic/beats/x-pack/functionbeat/main.go:15 +0x25

```auto
Have followed the steps provided in the https://www.elastic.co/guide/en/beats/functionbeat/7.16/functionbeat-installation-configuration.html

Thanks in advance for all your help.

Regards,
Bhavani
```

---

<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:** [March 10, 2022, 4:39pm UTC](https://discuss.elastic.co/t/unable-to-deploy-functionbeat-7-16-3/296857/2 "2022-03-10T16:39:11Z")

</div>

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