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개 답변
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
전문가
답변함 일 년 전
  • 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 ?

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

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

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

관련 콘텐츠