note that "enable_plugins" is not needed since the default will enable the plugin, if you actually specify it that way, it will fail for ansible 2.10 since you need to follow the FQDN notation readed on: https://docs.ansible.com/ansible/latest/collections/amazon/aws/aws_ec2_inventory.html
Just a spanish DevOps who likes sharing useful knowledge, working proudly @ MrMilú