Unable to create workspace

i am not able to create workspace as when i do so i get a s3 related error

docker-compose -f deploy/docker-compose.yml run --rm terraform workspace new dev

Creating deploy_terraform_run … done

failed to lock s3 state: 2 errors occurred:

  • ResourceNotFoundException: Requested resource not found

status code: 400, request id: DCHSSRDGB4UB5N3Q6QOU7197ENVV4KQNSO5AEMVJF66Q9ASUAAJG

  • ResourceNotFoundException: Requested resource not found

status code: 400, request id: JDL9I16UVPR9HE78F5C0BBUMVNVV4KQNSO5AEMVJF66Q9ASUAAJG

i have created an IAM policy and attached to the user still it is failing