Morin
Morin

Reputation: 237

Is there a bug in AWS .Net SDK for getting count of running EC2 instances?

Hi have 1 EC2 instance that is stopped. (Ubuntu Rails App Server (ami-e49e758d)) But when I run a sample from that comes with SDK, it shows me running instance as 1. Whom should I trust. What I see on AWS Console or sdk sample output?

Upvotes: 1

Views: 328

Answers (1)

Eight-Bit Guru
Eight-Bit Guru

Reputation: 9971

In this case, 'Running' instances as reported by the API means 'Existing' - this is telling you how many instances are actually present (i.e. being 'run' by the Xen hipervisor). You can then interrogate each instance item to determine its' specific activity status (i.e. Stopped, Running, etc).

Upvotes: 2

Related Questions