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?

已提问 2 年前176 查看次数
1 回答
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
专家
Matt-B
已回答 2 年前
  • 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.

您未登录。 登录 发布回答。

一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。

回答问题的准则