Skip to content

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

@DamaniN

Description

@DamaniN

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions