I'm trying to extract an IP address from the output of AWS CLI command "describe-tags". I'm very new to Powershell and have been struggling. This is the output of the AWS command in both "text" and "json" formats.
If you can help me extract just the IP address from either of these formats, I'd greatly appreciate it. I'm using "Powershell 2" and ConvertFrom-JSon isn't available in this version. Let's just assume I can't upgrade to Powershell 3.
TEXT:
TAGS nameserver i-xxxxxxxx instance 10.0.0.56
JSON:
{
"Tags": [
{
"ResourceType": "instance",
"ResourceId": "i-xxxxxxxx",
"Value": "10.0.0.56",
"Key": "nameserver"
}
]
}
Thanks a lot!