My Lambda modules have been sitting in community_review long enough that they no longer build. I’ve written them with Boto3 but had to include boto as they would not compile otherwise due to some dependancy in the EC2 utils. I haven’t had time yet to dig into this but was wondering if I could get a quick answer to this problem here.
ansible.module_utils.ec2 should have no strict dependency on boto. The import logic there should allow a module that only uses boto3 to work without issue.
Perhaps you are not using an up to date version of ansible? Generally speaking you should develop new modules against ansible devel.