I've been asked to come up with a solution to ensure that all of our Windows servers on AWS have local accounts created for the admin team using SSM. We need the ability to audit this and ensure that the passwords can be changed easily. I know, i know, i should just like what a domain does, but for whatever reason that's not allowed!
Creating the document with the powershell script is fine but putting the passwords into the script is an issue and this will need to be in plain text.
I thought I could use AWS KMS to encrypt the passwords and have SSM decrypt them on the fly. The thing is that I can't get the decrypt to work only for SSM and not for anyone who logs onto the server. If oneone can decrpyt the password then it might as well in plain text :/
I hope that makes sense!
Any thoughts or advice would be gratefully recieved.
Thanks