Terraform with storagegrid

i am going to integrate Terraform backend ‘s3’ with storagegrid
can anyone share how to set up?

provider “aws” {
region = “site”
s3_use_path_style = true
skip_region_validation = true
skip_requesting_account_id = true

skip_credentials_validation = true

skip_metadata_api_check = true
access_key = “generate_from_storagegrid”
secret_key = “generate_from_storagegrid”
endpoints {
s3 = “s3.site.company.com:xxx”
}
}

backend “s3” {
bucket = “terraform-backend-statusfile”
key = “global/s3/terraform.tfstate”
region = “site”
skip_region_validation = true
skip_credentials_validation = true
skip_metadata_api_check = true
access_key = “generate_from_storagegrid”
secret_key = “generate_from_storagegrid”
endpoint = “s3.site.company.com:xxx”
}