Replies: 3 comments 3 replies
-
I would check the generated CloudFormation in the |
Beta Was this translation helpful? Give feedback.
-
Then it should be populated correctly and accessible from your lambda function code. Are you able to test with both |
Beta Was this translation helpful? Give feedback.
-
Well... that's just odd. I haven't changed my code any, aside from adding those two new checks above, which didn't work initially, but now it all of a sudden started working with the |
Beta Was this translation helpful? Give feedback.
-
Please help, I'm struggling with environment variables here. My implementation calls an external API and I need to store the url and access key in an environment somewhere. I've tried using github secrets and a CD action that's supposed to put the secret into the environment, but when I run it, I get
null
for the value. After many different attempts I abandoned that and switched to AWS SSM parameter store, per the documentation, but I'm still gettingnull
back from trying to access those keys.Here's my current setup:
in AWS parameter store -
/XYYApiService-dev/API_URL
in serverless.yml
in my /config/app.php
and finally in the constructor for my API connector class
When run, I see both
error_log
messages in the Lambda log, and it throws the exception every time. What am I missing here?Thanks.
Beta Was this translation helpful? Give feedback.
All reactions