Creating aws smb share getting overlapping errors

I keep getting this error when trying to create smb share

rror: error creating Storage Gateway SMB File Share: InvalidGatewayRequestException: OverlappingLocations
│ {
│ RespMetadata: {
│ StatusCode: 400,
│ RequestID: “7a096cbd-88da-44c5-8864-8fb99fb3cbab”
│ },
│ Error_: {
│ ErrorCode: “OverlappingLocations”
│ },
│ Message_: “OverlappingLocations”
│ }

│ with aws_storagegateway_smb_file_share.test001_smb,
│ on main.tf line 5, in resource “aws_storagegateway_smb_file_share” “test001_smb”:
│ 5: resource “aws_storagegateway_smb_file_share” “test001_smb” {

any one seen this before?

does anyone know about this?

Do you have any code snippet to share?

This is main.tf

provider “aws” {
region = “us-east-1”
}

resource “aws_storagegateway_smb_file_share” “test”{
authentication = var.authentication
file_share_name = var.file_share_name.file_share_name1
gateway_arn = var.gateway_arn
default_storage_class = var.default_storage_class
location_arn = var.location_arn.loc_arn_1
role_arn = var.role_arn.role_arn_1
valid_user_list = var.valid_user_list
kms_encrypted = var.kms_encrypted
kms_key_arn = var.kms_key_arn
tags = var.tags
}

resource “aws_storagegateway_nfs_file_share” “test_nfs_share” {
file_share_name = var.file_share_name.file_share_name2
client_list = var.client_list.client_list_1
gateway_arn = var.gateway_arn
default_storage_class = var.default_storage_class
location_arn = var.location_arn.loc_arn_2
role_arn = var.role_arn.role_arn_2
kms_encrypted = var.kms_encrypted
kms_key_arn = var.kms_key_arn
tags = var.tags
}

I am using variables.tf and no tfvars file

variable "authentication"   {
    default = "ActiveDirectory"
}

variable "authentication"   {
    default = "ActiveDirectory"
}

variable "file_share_name" {
    type = map
    default = {
    file_share_name1 = "test_smb_share"
    file_share_name2 = "test_nfs_share"
    }
}

variable "gateway_arn" {
    default = "arn:aws:storagegateway:us-east-1:145429107744:gateway/sgw-4B21CE22"
}

variable "default_storage_class" {
    default = "S3_STANDARD"
}

variable "location_arn" {
    type = map
    default = {
    loc_arn_1 = "arn:aws:s3:::usdrawsstg01-smb-an-sqlbackups"
    loc_arn_2 = "arn:aws:s3:::usdrawsstg01-nfs-an-prod"
    }
}

variable "role_arn" {
    type = map
    default = {
    role_arn_1 = "arn:aws:iam::145429107744:role/service-role/StorageGatewayBucketAccessRolee896cdf0-cb46-4471-a0de-119f69f87e"
    role_arn_2 = "arn:aws:iam::145429107744:role/service-role/StorageGatewayBucketAccessRole1ebbb213-fd3e-4c0a-a9bb-d0164cfea5"
    }
}

variable "valid_user_list" {
    default = ["@Domain Admins","@Storage Admins"]
}

variable "kms_encrypted" {
    default = "true"
}

variable "kms_key_arn" {
    default = "arn:aws:kms:us-east-1:145429107744:key/8c4b962b-c00a-4a32-8fbd-76b174efb609"
}

variable "tags" {
    type    = map
    default = {
        atomdev     = 	"prod"
        atomdomain  = 	"xxxxx"
        atomos	    =   "file system"
        atompid	    =   "32"
        atomrole    = 	"storage"
    }
}

variable "client_list"  {
    type = map
    default = {
    client_list_1 = ["10.88.9.0/24"]
    }
}

Its only the SMB share is failing. The NFS share was created fine with no errors

any help appreciated

Did the domain join finis successfully? Was a test-share added manually?

yes the storage gateway is joined to domain. And yes there is already a smb share manually added to the gateway. But the name is not the same as the one I am using in terraform

anybody can help with this?