Unable to deploy Functionbeat 7.16.3

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

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

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()

/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).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).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).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).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).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(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(0xc00076f8c0, {0xc00054ea00, 0x4, 0x6})

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

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).ExecuteC(0xc0006e8f00)

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

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

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

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