Hi@akhtar,
You can find one module named ec2_vpc in Ansible. This module is used to create a VPC on AWS. I have attached one playbook below for your reference.
- ec2_vpc:
state: present
cidr_block: 172.23.0.0/16
resource_tags: { "Environment":"Development" }
region: us-west-2