You can use python boto library for that, in fact spark-ec2 script uses it
underneath. Here's the
<https://github.com/apache/spark/blob/master/ec2/spark_ec2.py#L706> call
spark-ec2 is making to get all machines under a given security group.

Thanks
Best Regards

On Thu, May 28, 2015 at 2:22 PM, nizang <ni...@windward.eu> wrote:

> hi,
>
> Is there anyway in bash (from an ec2 apsrk server) to list all the servers
> in my security group (or better - in a given security group)
>
> I tried using:
>
> wget -q -O - http://instance-data/latest/meta-data/security-groups
> security_group_xxx
>
> but now, I want all the servers in security group security_group_xxx
>
> thanks, nizan
>
>
>
> --
> View this message in context:
> http://apache-spark-user-list.1001560.n3.nabble.com/Get-all-servers-in-security-group-in-bash-ec2-tp23066.html
> Sent from the Apache Spark User List mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscr...@spark.apache.org
> For additional commands, e-mail: user-h...@spark.apache.org
>
>

Reply via email to