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
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
Cheers,
Fale