How to automate VirtualMachinesMetadataSync

0

We have an AWS Backup configured for VMware on AWS VMs. The backup is scheduled to happen everyday with the VMware tags.

screenshot

In our case we have to manually click on Sync to pickup the new vms/tags. ( see attached screenshot). Is there a way to automate this task with Lambda? If yes please share the manual/detailed steps

Thanks in advance

1 Respuesta
0

I think it is possible by using "start_virtual_machines_metadata_sync".
If you create a Lambda using this API and set up a Cron to run daily on EventBridge, what you want to do may be accomplished.
https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/backup-gateway/client/start_virtual_machines_metadata_sync.html#

import boto3

client = boto3.client('backup-gateway')
response = client.start_virtual_machines_metadata_sync(
    HypervisorArn='string'
)
profile picture
EXPERTO
respondido hace un año
  • Thank you for the response. Yes, I got this link while googling. But I'm looking for the step-by step to implement this. can you help me with this ?

No has iniciado sesión. Iniciar sesión para publicar una respuesta.

Una buena respuesta responde claramente a la pregunta, proporciona comentarios constructivos y fomenta el crecimiento profesional en la persona que hace la pregunta.

Pautas para responder preguntas