# Error: bucket '\<bucketname\>' already exist and you don't have permission to access it

**URL:** <https://discuss.elastic.co/t/error-bucket-bucketname-already-exist-and-you-dont-have-permission-to-access-it/235232>\
**Category:** Beats\
**Tags:** functionbeat\
**Created:** [June 1, 2020, 8:53pm UTC](https://discuss.elastic.co/t/error-bucket-bucketname-already-exist-and-you-dont-have-permission-to-access-it/235232 "2020-06-01T20:53:46Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![sunilb1](https://avatars.discourse-cdn.com/v4/letter/s/ed655f/32.png) [@sunilb1](https://discuss.elastic.co/u/sunilb1)\
**Post date:** [June 1, 2020, 8:53pm UTC](https://discuss.elastic.co/t/error-bucket-bucketname-already-exist-and-you-dont-have-permission-to-access-it/235232/1 "2020-06-01T20:53:46Z")

</div>

Hi,

While deploy Function Beat using standard method , getting permission error for S3 bucket. I am able to access the same bucket from CLI . Kindly advise.

```auto
/functionbeat -v -e -d "*" deploy cloudwatchecs

 
2020-06-01T15:49:32.867-0500	DEBUG	[aws.executor]	executor/executor.go:53	The executor is executing '6' operations for converging state
2020-06-01T15:49:32.867-0500	DEBUG	[aws]	aws/op_ensure_bucket.go:33	Verifying presence of S3 bucket: sunecs-bucket
2020-06-01T15:49:38.262-0500	DEBUG	[aws.executor]	executor/executor.go:76	The executor is rolling back previous execution, '0' operations to rollback
2020-06-01T15:49:38.262-0500	DEBUG	[aws.executor]	executor/executor.go:89	The rollback is successful
2020-06-01T15:49:38.262-0500	DEBUG	[aws]	aws/cli_manager.go:123	Deploy finish for function 'cloudwatchecs'
Function: cloudwatchecs, could not deploy, error: bucket 'sunecs-bucket' already exist and you don't have permission to access it
2020-06-01T15:49:38.263-0500	DEBUG	[cli-handler]	cmd/cli_handler.go:62	Deploy execution ended
Fail to deploy 1 function(s)

```

---

<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:** [June 22, 2020, 10:53am UTC](https://discuss.elastic.co/t/error-bucket-bucketname-already-exist-and-you-dont-have-permission-to-access-it/235232/2 "2020-06-22T10:53:51Z")

</div>

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