1 Respuesta
- Más nuevo
- Más votos
- Más comentarios
0
Hi Drago,
You should be able to do this using AWS Systems Manager / SSM Automation. The runbook can have the following basic steps:
- Describe the Instance. (To get details of the Instance) - Use the aws:executeAwsApi action.
- Confirm the instance is managed by SSM and its connection status is "Online". - Use the aws:assertAwsResourceProperty action
- Call / Invoke the AWS-RunPowerScript Run Command document to run a PowerShell Script that Renames the Computer. You can use the Rename-Computer PowerShell cmdlet - Use the aws:runCommand action.
- Tag the instance. - Use the aws:executeAwsApi action.
- Restart the Instance. - Use the aws:changeInstanceState action.
Reference: [+] Authoring Automation runbooks - https://docs.aws.amazon.com/systems-manager/latest/userguide/automation-authoring-runbooks.html
respondido hace 2 años
Contenido relevante
- OFICIAL DE AWSActualizada hace 8 meses
- OFICIAL DE AWSActualizada hace 3 años
- OFICIAL DE AWSActualizada hace un año
- OFICIAL DE AWSActualizada hace 2 años
not sure how to start on this. I have no SSM experience. I know my ec2 instances are windows servers and have the SSM agent installed