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

fix(azure): Fix pricing for Azure MySQL/Postgres flexible servers #2844

Merged
merged 3 commits into from Jan 29, 2024

Conversation

vdmgolub
Copy link
Contributor

Fixes #2815.

B1ms and B2ms are the only instance types that have the same meter
names. The rest of supported burstable types have "vcore" postfix.

                                     product_name                            | sku_name |  meter_name
-----------------------------------------------------------------------------+----------+--------------
 Azure Database for PostgreSQL Flexible Server Burstable BS Series Compute   | B12ms    | B12ms vCore
 Azure Database for PostgreSQL Flexible Server Burstable BS Series Compute   | B16ms    | B16ms vCore
 Azure Database for PostgreSQL Flexible Server Burstable BS Series Compute   | B1MS     | B1MS - Free
 Azure Database for PostgreSQL Flexible Server Burstable BS Series Compute   | B1MS     | B1MS
 Azure Database for PostgreSQL Flexible Server Burstable BS Series Compute   | B20ms    | B20ms vCore
 Azure Database for PostgreSQL Flexible Server Burstable BS Series Compute   | B2S      | B2S
 Azure Database for PostgreSQL Flexible Server Burstable BS Series Compute   | B2ms     | B2ms vCore
 Azure Database for PostgreSQL Flexible Server Burstable BS Series Compute   | B4ms     | B4ms vCore
 Azure Database for PostgreSQL Flexible Server Burstable BS Series Compute   | B8ms     | B8ms vCore
… server

Reusing pricing of Ddsv4 instance types as they are the same.
"small": {"1", "2GB"},
"nano": {"2", "0.5GB"},
"micro": {"2", "1GB"},
"small": {"2", "2GB"},
Copy link
Contributor Author

Choose a reason for hiding this comment

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

CPAPI doesn't have prices with 1vcpu anymore. From https://aws.amazon.com/lightsail/pricing/:

***Virtual servers created on or before June 29, 2023 have 1 vCPU.

@vdmgolub vdmgolub merged commit a42a506 into master Jan 29, 2024
10 checks passed
@vdmgolub vdmgolub deleted the fix/azure-flexible-dbs branch January 29, 2024 13:12
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.

Skus not handled correctly for azure flexibles databases
2 participants