Using existing security groups in AWS

13 views
Skip to first unread message

Sm Sathi

unread,
Jan 23, 2017, 10:23:22 AM1/23/17
to Ansible Project
Hi
Can someone share how can i use an existing security group in AWS while creating an EC2 instance via ansible playbook please?

Sathiya

Kenton Brede

unread,
Jan 24, 2017, 11:57:15 AM1/24/17
to ansible...@googlegroups.com
If you know the existing group id then you can use:

    group_id: sg-12345678

Or if you have more than one group:

    group_id:
      - sg-12345678
      - sg-87654321


Kenton Brede





--
You received this message because you are subscribed to the Google Groups "Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ansible-project+unsubscribe@googlegroups.com.
To post to this group, send email to ansible-project@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/38c3b12e-0faa-430d-a4b4-04724eca3426%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages