21 lines
499 B
PowerShell
21 lines
499 B
PowerShell
function Get-CachePathEC2Instance {
|
|
<#
|
|
.SYNOPSIS
|
|
Get the path for the cached EC2Instance data
|
|
|
|
.PARAMETER ProfileName
|
|
A valid ProfileName
|
|
#>
|
|
[CmdletBinding()]
|
|
[OutputType([object[]])]
|
|
param(
|
|
[Parameter(Mandatory = $true)]
|
|
[string]$ProfileName
|
|
)
|
|
|
|
Assert-ValidAWSProfileName -ProfileName $ProfileName
|
|
|
|
$ProfileName = $ProfileName.Replace("temp-","").ToLower()
|
|
$cacheFile = Get-CacheFile -Name "EC2Instances.$ProfileName.json"
|
|
return $cacheFile
|
|
} |