15 lines
399 B
PowerShell
15 lines
399 B
PowerShell
|
function Get-ImdsBaseUri {
|
||
|
<#
|
||
|
.SYNOPSIS
|
||
|
Gets the Instance MetaData Service (IMDS) URI
|
||
|
|
||
|
.NOTES
|
||
|
Does not return a final trailing slash '/' at the end of the URI
|
||
|
https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/configuring-instance-metadata-service.html
|
||
|
#>
|
||
|
[CmdletBinding()]
|
||
|
[OutputType([System.String])]
|
||
|
param ()
|
||
|
|
||
|
return "http://169.254.169.254/latest"
|
||
|
}
|