You can use any S3 storage as a terraform backend state provider. This includes Digital Ocean spaces. Here is an article which uses Wasabi but the process should be the same: https://stanislas.blog/2018/10/how-to-use-non-aws-s3-backend-terraform/