# Error creating S3 Bucket (bucketname): AccessDenied: Access Denied

**URL:** <https://discuss.hashicorp.com/t/error-creating-s3-bucket-bucketname-accessdenied-access-denied/39401>\
**Category:** Terraform\
**Created:** [May 12, 2022, 7:25am UTC](https://discuss.hashicorp.com/t/error-creating-s3-bucket-bucketname-accessdenied-access-denied/39401 "2022-05-12T07:25:01Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![santoshreddyspy](https://sea2.discourse-cdn.com/hashicorp/user_avatar/discuss.hashicorp.com/santoshreddyspy/32/11420_2.png) [@santoshreddyspy](https://discuss.hashicorp.com/u/santoshreddyspy)\
**Post date:** [May 12, 2022, 7:25am UTC](https://discuss.hashicorp.com/t/error-creating-s3-bucket-bucketname-accessdenied-access-denied/39401/1 "2022-05-12T07:25:01Z")

</div>

Hi All,

I’m using Terraform V1.1.3 and AWS V4.7.0  
While creating S3 bucket, I’m getting AccessDenied error.  
Error Message:  
Error: error creating S3 Bucket (test123): AccessDenied: Access Denied  
│ status code: 403, request id: VJW34VNDQN47QF9D, host id: EKL8Z96aUz9THewz49PzoHzSjWdneTWdThbdSainjrFIaGYJkJh0eAljQLzxbliOE8Z9EyQeCOA=  
│  
│ with aws\_s3\_bucket.b,  
│ on main.tf line 13, in resource “aws\_s3\_bucket” “b”:  
│ 13: resource “aws\_s3\_bucket” “b” {

Note: I’m able to create S3 bucket via AWS portal and AWSCLI.

Thanks in Advance.

Regards,  
Santosh

---

<div class="post-metadata">

**Author:** ![boopathijayagopal](https://sea2.discourse-cdn.com/hashicorp/user_avatar/discuss.hashicorp.com/boopathijayagopal/32/28103_2.png) [@boopathijayagopal](https://discuss.hashicorp.com/u/boopathijayagopal)\
**Post date:** [May 13, 2022, 11:54am UTC](https://discuss.hashicorp.com/t/error-creating-s3-bucket-bucketname-accessdenied-access-denied/39401/2 "2022-05-13T11:54:49Z")

</div>

Please check whether the user have the access(role policy) to create the S3 via terraform.
