[Packer amazon-ebs] Export custom_data in the form of artifact details in the manifest

I’m trying to share the created AMI’s from packer with more AWS accounts since my automation runs in multiple. Packer has the functionality to share the creted AMI with other accounts using the “ami_users” parameter. This is all well and good, but I also need the tags to be carried over with the AMI to the other accounts.
Since packer is not able to do that, I’m doing it with Terraform after the packer build.
My problem is that I am having to call Terraform once to fetch the tags of the AMI, then assume role for the other account and then call it again to edit the AMI there.

I want to skip the Terraform query for tags and export the tags of the AMI in the packer manifest.

Is there a way to do that? I couldn’t find one…

Thanks!