# Need help with AWS

**URL:** <https://forum.ansible.com/t/need-help-with-aws/23178>\
**Category:** Ansible Developer\
**Tags:** aws\
**Created:** [December 6, 2016, 9:32am UTC](https://forum.ansible.com/t/need-help-with-aws/23178 "2016-12-06T09:32:36Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Chethan\_ARAVIND\_T\_S](https://avatars.discourse-cdn.com/v4/letter/c/5e9695/32.png) [@Chethan\_ARAVIND\_T\_S](https://forum.ansible.com/u/Chethan_ARAVIND_T_S)\
**Post date:** [December 6, 2016, 9:32am UTC](https://forum.ansible.com/t/need-help-with-aws/23178/1 "2016-12-06T09:32:36Z")

</div>

Hi,  
I’ve been trying to create AWS instances using Ansible. Is it mandatory that I have to create a VPC, assign a Gateway and a security group for the instance? If yes can anyone help me by sending an example playbook to do all this at 1 go…

Regards,  
Chethan Aravind

---

<div class="post-metadata">

**Author:** ![Fabio\_Alessandro\_Loc](https://avatars.discourse-cdn.com/v4/letter/f/ac8455/32.png) [@Fabio\_Alessandro\_Loc](https://forum.ansible.com/u/Fabio_Alessandro_Loc)\
**Post date:** [December 6, 2016, 9:39am UTC](https://forum.ansible.com/t/need-help-with-aws/23178/2 "2016-12-06T09:39:31Z")

</div>

Hello,

In many regions AWS requires VPC and SG for machines (in the past it was  
possible to create "EC2 Classic" which did not required those).  
You can find a Playbook I wrote for what you require at  
[https://github.com/PacktPublishing/Learning-Ansible-2-Second-Edition/blob/master/Chapter%2005/playbooks/aws\_simple\_provision.yaml](https://github.com/PacktPublishing/Learning-Ansible-2-Second-Edition/blob/master/Chapter%2005/playbooks/aws_simple_provision.yaml)

Cheers,  
Fale
