# Cant not use Selfhost S3 as backend

**URL:** <https://discuss.hashicorp.com/t/cant-not-use-selfhost-s3-as-backend/40465>\
**Category:** Terraform Providers\
**Created:** [June 7, 2022, 2:29am UTC](https://discuss.hashicorp.com/t/cant-not-use-selfhost-s3-as-backend/40465 "2022-06-07T02:29:29Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![mansan1230](https://sea2.discourse-cdn.com/hashicorp/user_avatar/discuss.hashicorp.com/mansan1230/32/28604_2.png) [@mansan1230](https://discuss.hashicorp.com/u/mansan1230)\
**Post date:** [June 7, 2022, 2:29am UTC](https://discuss.hashicorp.com/t/cant-not-use-selfhost-s3-as-backend/40465/1 "2022-06-07T02:29:29Z")

</div>

i want to use s3 as my backend storage  
how even i am using selfhost s3 intergrade with StorageGird.

backend “s3” {

```
bucket = "terraform-backend-statusfile"

key = "terraform.tfstate"

region = "region_name"

endpoint = "https://s3.region_name.xxxx.com:xxxx3"

access_key = "Key"

secret_key = "Secret"

```

}  
when i try to init terrafomr

Initializing the backend…  
Error: Invalid AWS Region: “region\_name”

Howeven i can login to AWS cli by using upper information
