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 Answer
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
EXPERT
answered 10 months ago
  • 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 ?

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions