Fallback to Env if SSM variable is not found

Hi,

I reference SSM for my ENV variables. However, when testing locally, I want to reference them from env variables instead.

Tried this, but didn’t work:

environment:
     API_KEY: ${ssm:/myapikey, env:MY_API_KEY}

Is there any way to do this?

Thank you!