You need to specify security group ids as :security_group_ids => %w(monitoring-group-id)
instead of :groups. On Mon, Apr 7, 2014 at 12:26 PM, <[email protected]> wrote: > Today's topic summary > > Group: http://groups.google.com/group/ruby-fog/topics > > - Unable to create an AWS instance in particular security > group.<#1453af9bfbc71f8e_group_thread_0>[2 Updates] > > Unable to create an AWS instance in particular security > group.<http://groups.google.com/group/ruby-fog/t/9021afeb487ee7d7> > > Pradeep Chhetri <[email protected]> Apr 06 05:24AM -0700 > > Hello, > > I am trying to create an instance in AWS in a particular security > group. > > server = conn.servers.create(:image_id => "#{@ami_id}", > :flavor_id => > "#{@instancetype}", > :key_name => > "#{@aws_ssh_key_name}", > :groups => "Monitoring", > :subnet_id => > "#{@subnetid.shuffle.first}", > :user_data => "#{user_data}") > > where Monitoring is the name of the security group. > > But when the machine comes up. It takes the "default" security group. > I > tried replacing "Monitoring" with the security-group-id but still I > wasn't > able to get Monitoring security group in the new instance. Can someone > please help me out. > > > Thank you, > > - Pradeep > > > > > Pradeep Chhetri <[email protected]> Apr 06 11:55PM -0700 > > Finally figured out that I should use :security_group_ids => > ["sg-xxxxxxx"]. > > On Sunday, 6 April 2014 17:54:00 UTC+5:30, Pradeep Chhetri wrote: > > > > -- > You received this message because you are subscribed to the Google Groups > "ruby-fog" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > For more options, visit https://groups.google.com/d/optout. > -- You received this message because you are subscribed to the Google Groups "ruby-fog" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
