Dynamic inventory for Ansible Controller on Google Cloud and nodes on AWS.

This should work
https://docs.ansible.com/ansible/latest/plugins/inventory/aws_ec2.html
, but im not sure what your issue is.