forked from infracost/infracost
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add 'multitenant' mode for elasticsearch and postgresql db resources (#…
…200) * Add 'multitenant' mode for elasticsearch and postgresql db resources * Remove test for es db platinum multitenant - not supported by Terraform provider * Add CPU cost for shared elasticsearch instaces * Set unit test to match DA use case
- Loading branch information
1 parent
143750a
commit a0c65bd
Showing
4 changed files
with
144 additions
and
48 deletions.
There are no files selected for viewing
79 changes: 47 additions & 32 deletions
79
internal/providers/terraform/ibm/testdata/database_test/database_test.golden
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,34 +1,49 @@ | ||
|
||
Name Monthly Qty Unit Monthly Cost | ||
|
||
ibm_database.elasticsearch_enterprise | ||
├─ RAM (3 members) 336 GB $5,433.46 | ||
├─ Disk (3 members) 12,288 GB $7,720.55 | ||
└─ Virtual Processor Cores (3 members) 84 CPU $2,716.73 | ||
|
||
ibm_database.elasticsearch_enterprise_flavor | ||
├─ Host Flavor (3 members, m3c.30x240.encrypted) 3 Flavor $14,553.90 | ||
└─ Disk (3 members) 12,288 GB $7,720.55 | ||
|
||
ibm_database.elasticsearch_platinum | ||
├─ RAM (3 members) 336 GB $9,032.69 | ||
├─ Disk (3 members) 12,288 GB $7,720.55 | ||
└─ Virtual Processor Cores (3 members) 84 CPU $2,716.73 | ||
|
||
ibm_database.elasticsearch_platinum_flavor | ||
├─ Host Flavor (3 members, m3c.30x240.encrypted) 3 Flavor $22,266.54 | ||
└─ Disk (3 members) 12,288 GB $7,720.55 | ||
|
||
ibm_database.postgresql_standard | ||
├─ RAM (2 members) 224 GB $1,206.67 | ||
├─ Disk (2 members) 8,192 GB $5,147.03 | ||
└─ Virtual Processor Cores (2 members) 56 CPU $1,811.15 | ||
|
||
ibm_database.postgresql_standard_flavor | ||
├─ Host Flavor (2 members, m3c.30x240.encrypted) 2 Flavor $4,526.23 | ||
└─ Disk (2 members) 8,192 GB $5,147.03 | ||
|
||
OVERALL TOTAL $105,440.36 | ||
Name Monthly Qty Unit Monthly Cost | ||
|
||
ibm_database.elasticsearch_enterprise | ||
├─ RAM (3 members) 336 GB $5,433.46 | ||
├─ Disk (3 members) 12,288 GB $7,720.55 | ||
└─ Virtual Processor Cores (3 members) 84 CPU $2,716.73 | ||
|
||
ibm_database.elasticsearch_enterprise_flavor | ||
├─ Host Flavor (3 members, m3c.30x240.encrypted) 3 Flavor $14,553.90 | ||
└─ Disk (3 members) 12,288 GB $7,720.55 | ||
|
||
ibm_database.elasticsearch_enterprise_multitenant_flavor | ||
├─ RAM (3 members) 336 GB $5,433.46 | ||
├─ Disk (3 members) 12,288 GB $7,720.55 | ||
└─ Virtual Processor Cores (3 members) 84 CPU $2,716.73 | ||
|
||
ibm_database.elasticsearch_enterprise_multitenant_flavor_auto_cpu_scale | ||
├─ RAM (3 members) 12 GB $194.05 | ||
├─ Disk (3 members) 15 GB $9.42 | ||
└─ Virtual Processor Cores (3 members) 1.5 CPU $48.51 | ||
|
||
ibm_database.elasticsearch_platinum | ||
├─ RAM (3 members) 336 GB $9,032.69 | ||
├─ Disk (3 members) 12,288 GB $7,720.55 | ||
└─ Virtual Processor Cores (3 members) 84 CPU $2,716.73 | ||
|
||
ibm_database.elasticsearch_platinum_flavor | ||
├─ Host Flavor (3 members, m3c.30x240.encrypted) 3 Flavor $22,266.54 | ||
└─ Disk (3 members) 12,288 GB $7,720.55 | ||
|
||
ibm_database.postgresql_standard | ||
├─ RAM (2 members) 224 GB $1,206.67 | ||
├─ Disk (2 members) 8,192 GB $5,147.03 | ||
└─ Virtual Processor Cores (2 members) 56 CPU $1,811.15 | ||
|
||
ibm_database.postgresql_standard_flavor | ||
├─ Host Flavor (2 members, m3c.30x240.encrypted) 2 Flavor $4,526.23 | ||
└─ Disk (2 members) 8,192 GB $5,147.03 | ||
|
||
ibm_database.postgresql_standard_multitenant_flavor | ||
├─ RAM (2 members) 224 GB $1,206.67 | ||
├─ Disk (2 members) 8,192 GB $5,147.03 | ||
└─ Virtual Processor Cores (2 members) 56 CPU $1,811.15 | ||
|
||
OVERALL TOTAL $129,727.93 | ||
────────────────────────────────── | ||
6 cloud resources were detected: | ||
∙ 6 were estimated | ||
9 cloud resources were detected: | ||
∙ 9 were estimated |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters