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.

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南