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개 답변
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.

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠