I have my AWS IoT button configured and my Lambda function created, been through the process and configured in us-east-1 using email env variable = [email protected] and worked as expected. I then attempted to adjust the email env variable to a diff email, [email protected] but emails are still going to the original address. I reset and everything (at least what I think is everything, deleted lambda function and deleted IoT thing, security, rules) and and started over, with same result, emails are still going to [email protected]
I thought maybe it was an issue with reading the env variable so I modified "const EMAIL = process.env.email;" to be "const EMAIL = '[email protected]';", still no luck.
Thoughts? I am sure I am missing something simple.