-
Notifications
You must be signed in to change notification settings - Fork 526
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: Correctly lookup non us-east-1 prices for AWS DocumentDB (#2736)
* test: add test cases for docdb is us-east-2 * fix: Correctly lookup non us-east-1 prices for AWS DocumentDB
- Loading branch information
Showing
11 changed files
with
166 additions
and
33 deletions.
There are no files selected for viewing
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
30 changes: 18 additions & 12 deletions
30
...ers/terraform/aws/testdata/docdb_cluster_snapshot_test/docdb_cluster_snapshot_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,19 +1,25 @@ | ||
|
||
Name Monthly Qty Unit Monthly Cost | ||
|
||
aws_docdb_cluster_snapshot.my_aws_docdb_cluster_snapshot | ||
└─ Backup storage Monthly cost depends on usage: $0.021 per GB | ||
|
||
aws_docdb_cluster_snapshot.my_aws_docdb_cluster_snapshot_usage | ||
└─ Backup storage 1,000 GB $21.00 | ||
|
||
OVERALL TOTAL $21.00 | ||
Name Monthly Qty Unit Monthly Cost | ||
|
||
aws_docdb_cluster_snapshot.my_aws_docdb_cluster_snapshot | ||
└─ Backup storage Monthly cost depends on usage: $0.021 per GB | ||
|
||
aws_docdb_cluster_snapshot.my_aws_docdb_cluster_snapshot_ue2 | ||
└─ Backup storage Monthly cost depends on usage: $0.021 per GB | ||
|
||
aws_docdb_cluster_snapshot.my_aws_docdb_cluster_snapshot_usage | ||
└─ Backup storage 1,000 GB $21.00 | ||
|
||
aws_docdb_cluster_snapshot.my_aws_docdb_cluster_snapshot_usage_ue2 | ||
└─ Backup storage 1,000 GB $21.00 | ||
|
||
OVERALL TOTAL $42.00 | ||
────────────────────────────────── | ||
2 cloud resources were detected: | ||
∙ 2 were estimated, all of which include usage-based costs, see https://infracost.io/usage-file | ||
4 cloud resources were detected: | ||
∙ 4 were estimated, all of which include usage-based costs, see https://infracost.io/usage-file | ||
|
||
┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━┓ | ||
┃ Project ┃ Monthly cost ┃ | ||
┣━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╋━━━━━━━━━━━━━━┫ | ||
┃ TestDocDBClusterSnapshotGoldenFile ┃ $21 ┃ | ||
┃ TestDocDBClusterSnapshotGoldenFile ┃ $42 ┃ | ||
┗━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┻━━━━━━━━━━━━━━┛ |
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
30 changes: 18 additions & 12 deletions
30
internal/providers/terraform/aws/testdata/docdb_cluster_test/docdb_cluster_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,19 +1,25 @@ | ||
|
||
Name Monthly Qty Unit Monthly Cost | ||
|
||
aws_docdb_cluster.my_docdb | ||
└─ Backup storage Monthly cost depends on usage: $0.021 per GB | ||
|
||
aws_docdb_cluster.my_docdb_usage | ||
└─ Backup storage 10,000 GB $210.00 | ||
|
||
OVERALL TOTAL $210.00 | ||
Name Monthly Qty Unit Monthly Cost | ||
|
||
aws_docdb_cluster.my_docdb | ||
└─ Backup storage Monthly cost depends on usage: $0.021 per GB | ||
|
||
aws_docdb_cluster.my_docdb_ue2 | ||
└─ Backup storage Monthly cost depends on usage: $0.021 per GB | ||
|
||
aws_docdb_cluster.my_docdb_usage | ||
└─ Backup storage 10,000 GB $210.00 | ||
|
||
aws_docdb_cluster.my_docdb_usage_ue2 | ||
└─ Backup storage 10,000 GB $210.00 | ||
|
||
OVERALL TOTAL $420.00 | ||
────────────────────────────────── | ||
2 cloud resources were detected: | ||
∙ 2 were estimated, all of which include usage-based costs, see https://infracost.io/usage-file | ||
4 cloud resources were detected: | ||
∙ 4 were estimated, all of which include usage-based costs, see https://infracost.io/usage-file | ||
|
||
┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━┓ | ||
┃ Project ┃ Monthly cost ┃ | ||
┣━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╋━━━━━━━━━━━━━━┫ | ||
┃ TestNewDocDBClusterGoldenFile ┃ $210 ┃ | ||
┃ TestNewDocDBClusterGoldenFile ┃ $420 ┃ | ||
┗━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┻━━━━━━━━━━━━━━┛ |
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
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