re: Building a serverless contact form with AWS Lambda and AWS SES VIEW POST


Hi Adnan,

Thanks for this guide. Just recently completed my portfolio and I am creating a serverless form through this guide. That said, I am lost as to where specifically should I paste this code?


Am I suppose to do it this way?

  secrets: ${file(secrets.json)} <---- delete content and replace this

  secrets: ${

Is this right?
This is my first time doing this. Never had experience with APIs.


sad. never got an answer on this


actually you have to use ${self:custom.secrets:NODE_ENV} instead of ${self:custom.secrets.NODE_ENV}

(same for EMAIL, DOMAIN)


you dont need to replace anything,just create a file called secrets.json and paste that snippet

Code of Conduct Report abuse