I am using Drupal 9.x now and using Drush 10.x. I have always used drush aliases to manage my D7 sites as it makes life so much easier with various environments etc.
To test the newer YAML file (Drush for my old D7 uses a php file), I created a single Drush alias for a uat environment. The file, local.site.yml, is located in my ~/.drush/sites directory. When I do a drush sa
to check what aliases exist, I correctly (I think?!) get the following message:
'@local.uat':
root: /var/www/my_site/web
uri: 'https://mysite.mydomain.com'
So I think this tells me that the single alias has been found.
When I try to use the alias using drush @local.uat status
it fails:
[preflight] The alias @local.uat could not be found.
It must be simple... I have tried using just @uat and @site.uat but nothing works (and I would not expect it to!). Any ideas?! I am running Ubuntu 22.04 and Drush 10.6.2 if that makes a difference.