It’s using string interpolation to get the value from the ENV before passing it to the expansion method.
Details
The expansion method grabs “variables” from the string by looking for the : symbol. These “variables” are used as the actually method to call on cloud-specific expander classes. IE:
This because different clouds require different logic to look up the value. IE: The region method is different for AWS vs Google Cloud. These expander methods usually do not simply return the env var value.
Am wondering though, if should also add some fallback logic to try and grab the env var if it set when methods are not explicitly defined in the cloud plugin expander interface classes. Maybe use method_missing as a fallback and check if the env var is set. Unsure though. Will have to let it simmer on the brain.