Getting region on localhost

I’m running a small playbook that runs commands to create AWS infrastructure from the localhost. I want to use the localhosts region as the default, but using instance metadata to get the AZ and then parsing the region just seems hacky. Is there a clean way to get the region for localhost similar to how I can use ec2_region with dynamic inventory?