I'm trying to create a subnet using an existing VPC. This is my playbook:
---
  - hosts: local
    connection: local
    tasks:
      - name: Create subnet
        ec2_vpc_subnet:
          state: present
          vpc_id: vpc-abcd
          cidr: 10.0.3.0/24
          resource_tags:
            Name: Database Subnet
        register: database_subnet
error:
ERROR: ec2_vpc_subnet is not a legal parameter of an Ansible Play