-
Notifications
You must be signed in to change notification settings - Fork 4.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support for Cosmos DB serverless #8175
Comments
I was actually thinking it might be useful as as a different offer_type = "Serverless" |
@cwoolum That is not how it currently works in the Azure API, so I don't think that's a good idea. It could cause problems in the future. I think supporting this would require changes to resources other than Specifically, this part:
I tried to create a |
I believe this has been fix as part of 2.29: #8533 |
Closing since this appears to have been fixed by #8553 which shipped as a part of 2.29 yesterday - thanks for the heads up @ricohomewood :) |
Actually it does not work. When you run terraform second time with 2.29 you get this error: Error: Error reading Throughput on Cosmos SQL Database "xxx" (Account: "xxx") ID: documentdb.SQLResourcesClient#GetSQLDatabaseThroughput: Failure responding to request: StatusCode=400 -- Original Error: autorest/azure: Service returned an error. Status=400 Code="BadRequest" Message="Message: {"code":"BadRequest","message":"Reading or replacing offers is not supported for serverless accounts.\r\nActivityId: xxx, Microsoft.Azure.Documents.Common/2.11.0"}, Request URI: /offers, RequestStats: , SDK: Microsoft.Azure.Documents.Common/2.11.0" |
That is what I was talking about in my earlier comment in this issue. It's not as simple as supporting an additional attribute value. Certain calls to the CosmosDB resources are blocked in Serverless mode because they are no longer relevant. @tombuildsstuff I really think that this issue needs to be re-opened, because the provider currently doesn't really support Serverless mode. Just passing the capability flag is not enough. |
Re-opening since there's some more to do here |
Supporting serverless would introduce really big benefit for our project. and would be excited to see this is fixed soon 👍 |
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. If you feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. If you feel I made an error 🤖 🙉 , please reach out to my human friends 👉 [email protected]. Thanks! |
Community Note
Description
Add support for the new serverless version of Cosmos DB. This appears to be enabled by adding
EnableServerless
to thecapabilities
property.New or Affected Resource(s)
Potential Terraform Configuration
References
The text was updated successfully, but these errors were encountered: