I can write them to a file, but they require knowledge of the default set env vars i.e. "GO_SERVER_URL", "GO_*" etc..
It seems there are a few approaches:
1. `cat` the go-agent log and extract env var key and value using regex against "setting environment variable 'GO_SERVER_URL' to value '
www.gourl.com'". That would give me the exact env vars set by Go CI/CD in that task, which I can then inject into ECS.
2. call `env` or `declare -xp` and for every env var I add a "filter key" such as "@APP_NAME", filter for all that have "@" and "GO" set as keys in env.
I thought there may be a approach that Go CI/CD has to get specifically the environment variables that is set in that task. Which would be perfect.