Copy data bag item from one data bag to other


#1

Is there a way to copy a data bag item from one data bag to other? Our use case is that we deploy multiple VPC (Virtual Private Cloud) on AWS and each VPC gets certain set of servers. Also those sets of servers get their own data bags. So for example, one unit is one data bag which contains information items for VPC + associated networking, servers etc.

Now when I try to deploy another set of EC2 instance servers in the same VPC, I want to copy over the VPC data bag item to the new data bag so that the recipes on new servers can also access the data bag item for their internal use.

I know there will be redundant VPC data bag item in multiple data bags but that is what fits our current design and thinking.

Would appreciate any information/help on the same.

Thanks,
Rahul