programmingwithalex / aws_ecs_demo

BSD 3-Clause "New" or "Revised" License
24 stars 12 forks source link

AWS Secrets manager error #1

Open hzlnutspread opened 1 year ago

hzlnutspread commented 1 year ago

When using the secrets_manager.py file I am getting the following error:

"UnboundLocalError: cannot access local variable 'secret' where it is not associated with a value"

Any idea the reason for this? Thanks

programmingwithalex commented 1 year ago

Apologies for the delay here. The error indicates that you created a Secret key but didn't associate a value with it. If you want to debug in your code better when running I recommend adding pdb debugging in secrets_manager.py around the line where you are getting the error to better diagnose. Feel free to post the entire stack trace after doing so and I'll take a look.

hzlnutspread commented 1 year ago

No worries I managed to figure it out ! Something to do with the permissions and policies....Thanks for the tutorial btw it was really awesome and I learned so much from it! Really awesome content.

Was curious if there was some other way to follow you or contact you? Maybe twitter or something?

programmingwithalex commented 1 year ago

Sorry but I don't have a social media presence outside of YouTube and GitHub for privacy reasons.