Pushing registry keys across accounts daily

0

Hello everyone,

I am trying to push a set of reg keys to non prod and prod accounts. we spin up new machines daily and i'd like to make sure the keys are pushed. What would be the best way to do this?

1 Answer
1

Hi THere

Here is a guide that shows you how to push registry keys to windows instances using Systems Manager Run Command

https://docs.aws.amazon.com/prescriptive-guidance/latest/patterns/automate-adding-or-updating-windows-registry-entries-using-aws-systems-manager.html

Another easy way is to use EC2 Instance UserData to run a command at at launch. You can run the "reg add" command to add the key when the instance is launched. See

https://docs.aws.amazon.com/AWSEC2/latest/WindowsGuide/ec2-windows-user-data.html

https://learn.microsoft.com/en-us/windows-server/administration/windows-commands/reg-add

profile pictureAWS
EXPERT
Matt-B
answered 2 years ago
  • So i was hoping for something to run daily in system manager like my maintenance windows for patching (say like a lambda that kicks off a job to push the keys every 4 hours). I dont want to push the both non pro and prod keys to a new instance when they are spun up in Kubernetes.

  • I already do a manual push of the keys via run command. I was hoping to automate it out completely to run every so many hours.

  • Hi Yes you can do this with EventBridge. See https://docs.aws.amazon.com/systems-manager/latest/userguide/monitoring-systems-manager-targets.html

    You can use EventBridge to kick off a Run Command on a schedule, or you can use an event like When a new node is created in an Auto Scaling group, a Run Command target action could turn on the web server role or install software on the node.

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions