Suppose I have a list of instance ids and I want to change the tag "Name" to a certain value in all of those instances. I can run
aws ec2 create-tags --resources i-0ba60d097b9a4aebc i-051a64ccc686602e3 i-09c6265c16961a7a0 --tags Key=Name,Value=newname
and the value of the tag Name will change to newname in the three instances I specified. Is there a way to give a separate value to the tag Name for each of the three instances? That is newname1, newname2 and newname3 to the three respective instances.
aws ec2 create-tags --resources i-0ba60d097b9a4aebc --tags Key=Name,Value=newname1 --resources i-051a64ccc686602e3 --tags Key=Name,Value=newname2 --resources i-09c6265c16961a7a0 --tags Key=Name,Value=newname3
is not the correct syntax. I don't want to call aws ec2 create-tags separately for each instance.