The Upstash Terraform Provider lets you manage Upstash Redis resources programmatically.You can find the Github Repository for the Terraform Provider here.
Above example is given for an Upstash Redis database. You can import all of the resources by changing the resource type and providing the resource id.You can check full spec and doc from here.
If you need support then you can ask your questions Upstash Team in upstash.com chat widget.There is also discord channel available for community. Please check here for more information.