You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
...
Runtime: go1.x
Tracing: Active
Environment:
Variables:
HANGOUTS_WEBHOOK_URL: "https://api.test.com/v1/contacts/AAAAlmeAGQ0/messages?key=hello-world"
...
It contains an environment variable with = in its value. I used os.Getenv() in my lambda function to read the environment variable.
When invoked locally with sam, = is not escaped the valued read is https://chat.googleapis.com/v1/spaces/AAAAlmeAGQ0/messages?key.
When I run the generated binary directly os.Getenv() seem to read the value correctly as https://api.test.com/v1/contacts/AAAAlmeAGQ0/messages?key=hello-world.
Hi,
Here is my
template.yaml
:It contains an environment variable with
=
in its value. I usedos.Getenv()
in my lambda function to read the environment variable.When invoked locally with
sam
,=
is not escaped the valued read ishttps://chat.googleapis.com/v1/spaces/AAAAlmeAGQ0/messages?key
.When I run the generated binary directly
os.Getenv()
seem to read the value correctly ashttps://api.test.com/v1/contacts/AAAAlmeAGQ0/messages?key=hello-world
.This issue is mentioned in a comment here.
Looks like a bug in
sam
though am not sure. If this is a bug let me know I will try to fix and raise a PR.The text was updated successfully, but these errors were encountered: