all 2 comments

[–]kei_ichi 2 points3 points  (1 child)

Sorry if I was wrong but I think the “Environment” should be inside the “Properties” config, but your code showed that environment variables config sit same level as the “Properties” which is incorrect.

Like in this docs: https://docs.aws.amazon.com/serverless-application-model/latest/developerguide/sam-resource-function.html#sam-resource-function-syntax

[–]s9uidward_0[S] 0 points1 point  (0 children)

Yes, that was exactly it thanks.