I was checking this documentation https://docs.ansible.com/ansible/latest/user_guide/intro_dynamic_inventory.html#inventory-script-example-aws-ec2
and found that EC2 dynamic inventory is not available in github repo and other inventories are also not available. https://raw.githubusercontent.com/ansible/ansible/devel/contrib/inventory/ec2.py
There is no information in Ansible release notes or anywhere. Even looks like documentation is also not up-to-date. Please share if anyone has any information about this.