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

BUG: Running the script on GovCloud resutls in errors with BackupPlans #80

Open
DamaniN opened this issue Oct 11, 2024 · 0 comments
Open

Comments

@DamaniN
Copy link
Contributor

DamaniN commented Oct 11, 2024

Running the command ./Get-AWSSizingInfo.ps1 -Partition GovCloud results in the following error:

Failed to get Backup Plans Info for region us-gov-east-1 in account XXXXXXXXXXXX                                        
Error: nodename nor servname provided, or not known (ce.us-gov-east-1.amazonaws.com:443)                                
Write-Error: An error occurred and the script has exited prematurely:                                                   
Write-Error: You cannot call a method on a null-valued expression.                                                      
Write-Error: at <ScriptBlock>, ./rubrik-sizing-scripts/CLOUD/Get-AWSSizingInfo.ps1: line 1813  
at <ScriptBlock>, ./rubrik-sizing-scripts/CLOUD/Get-AWSSizingInfo.ps1: line 1813               
at <ScriptBlock>, <No file>: line 1 

The script line that this occurs in is:

  $backupTotalNetUnblendedCost = ($backupCostsList.AWSBackupNetUnblendedCost | ForEach-Object { [decimal]($_.TrimStart('$')) } | Measure-Object -Sum).sum
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

No branches or pull requests

1 participant