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
エキスパート
回答済み 1年前
  • 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 ?

ログインしていません。 ログイン 回答を投稿する。

優れた回答とは、質問に明確に答え、建設的なフィードバックを提供し、質問者の専門分野におけるスキルの向上を促すものです。

質問に答えるためのガイドライン

関連するコンテンツ