Skip to content
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

Add MSSQL Elastic Pool #2310

Merged
merged 8 commits into from
Feb 27, 2023
Merged

Add MSSQL Elastic Pool #2310

merged 8 commits into from
Feb 27, 2023

Conversation

aliscott
Copy link
Member

@aliscott aliscott commented Feb 25, 2023

This adds support for the azurerm_mssql_elasticpool resource and the deprecated azurerm_sql_elasticpool resource.
It also fixes some issues with the existing azurerm_mssql_database resource:

  1. Fix zone redundancy costs. These are added on top of the compute costs, not instead of.
  2. Don't show extra data prices if there's no usage.
  3. Support the different storage types for long term retention
  4. Add PITR cost component
  5. Show DTU cost components as hours so the units and costs match the Azure dashboard and pricing calculator.
  6. Fix some issues to support non-case-sensitive attribute values

I think we can remove the extra_data_storage_gb usage param from azurerm_mssql_database since its value is always defined in Terraform. I haven't done that as part of this PR though.

@aliscott aliscott self-assigned this Feb 25, 2023
@aliscott aliscott force-pushed the feat/add-mssql-elastic-pool branch 7 times, most recently from d9da5a3 to 542c05d Compare February 25, 2023 23:38
@aliscott aliscott marked this pull request as ready for review February 26, 2023 11:41
Copy link
Contributor

@hugorut hugorut left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good work 🚀

@@ -0,0 +1,42 @@
package azure
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we need this file - it doesn't look like we use it?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍 cheers, have deleted

…dundancy

* Zone redundancy costs are additional, not instead of the existing compute cost, so this adds them as a separate cost component.
* We don't need to show the extra data costs if there's no extra data usage. This only applies if provisioned. i thik we can get rid of the usage parameter for this but will do that separately.
@aliscott aliscott merged commit 83b7303 into master Feb 27, 2023
@aliscott aliscott deleted the feat/add-mssql-elastic-pool branch February 27, 2023 10:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants