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 Antwort
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
EXPERTE
beantwortet vor einem Jahr
  • 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 ?

Du bist nicht angemeldet. Anmelden um eine Antwort zu veröffentlichen.

Eine gute Antwort beantwortet die Frage klar, gibt konstruktives Feedback und fördert die berufliche Weiterentwicklung des Fragenstellers.

Richtlinien für die Beantwortung von Fragen