Mikex13
asked on
Can't get list of AWS instances
I'm trying to get a list of all my AWS instances but so far no luck.
$client=[Amazon.AWSClientF actory]::C reateAmazo nEC2Client ($Access,$ Secret)
$request = New-Object Amazon.EC2.Model.DescribeI nstancesRe quest
$response = $client.DescribeInstances( $request)
but $response doesn't contain any data to work with. If I do $response.DescribeInstance sResult, I get an empty result.
$client=[Amazon.AWSClientF
$request = New-Object Amazon.EC2.Model.DescribeI
$response = $client.DescribeInstances(
but $response doesn't contain any data to work with. If I do $response.DescribeInstance
ASKER
#Sedgwick: Looking at your code, that starts an instance with a given instance ID. But what I'm after is the step before that: get a list of all instances.
Ok let me check
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Done some more research, looking at AWS SDKs and noticed the "region" parameter which I or previous posters have not mentioned before. Adding that parameter fixed my issue.
Open in new window