#✅ - PLEASE HELP How do I set up a secret or env var in Amplify/Next.js?

4 messages · Page 1 of 1 (latest)

robust stratus
#

From everything I can see the lambda function and handler isn't even necessary anymore and I can use the secret("var") function now but for the life of me I cannot get it to work

tranquil wharf
#

Hi @robust stratus this sounds similar to an issue recently opened:

https://github.com/aws-amplify/amplify-category-api/issues/2996

can you confirm that the environment variable is not added to the lambda function by checking for it in the AWS lambda console?

GitHub

Amplify CLI Version Amplify Gen 2 ampx v1.0.4 Question I have a lambda function which is listening to dynamodb events for one of my tables. Below is a basic example of how my table and function are...

jovial scaffold
#

Hi @robust stratus 👋 , if you are trying to access secrets stored in the AWS Systems Manager Parameter Store within your Next.js API routes or server components. This functionality is currently not supported, but we are actively working on a project to address this use case. I suggest subscribing to this issue thread to receive updates on the feature's progress: https://github.com/aws-amplify/amplify-hosting/issues/3205.

GitHub

AWS Amplify Hosting provides a Git-based workflow for deploying and hosting fullstack serverless web applications. - Issues · aws-amplify/amplify-hosting

mortal basinBOT
#

✅ - PLEASE HELP How do I set up a secret or env var in Amplify/Next.js?