Retrieving passwords from Secrets Manager in Runtime #881
alexfpoole
started this conversation in
Ideas
Replies: 1 comment 1 reply
-
Hi! Yes, hacking into the boot is a possibility. But usually I prefer writing code that isn't 100% dependent on how Lambda works (if that's easy and possible). How about the "traditional" pattern of caching the value?
The "cache" could be a file in That way your mechanism is quite generic. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi folks
I'd like to put RDS passwords in Secrets Manager rather than in the Lamda env vars (which are visible in plaintext in the AWS Lambda console :/ )
It would make sense to only retrieve these at cold boot time, in the runtime, rather than for every invocation.
Has anyone done this? it seems like I'd just need to hack a hook into runtime.php..?
Cheers
Alex
Beta Was this translation helpful? Give feedback.
All reactions