diff = Diff(current_tags, target_tags) if (tags = stdlib_aws_tags(diff.add + diff.change)) { r.run('update_tags/add', %(aws ec2 create-tags --resources ${r.id()} --tags $*tags)) } if (tags = diff.remove / "Key=$X") { r.run('update_tags/remove', %(aws ec2 delete-tags --resources ${r.id()} --tags $*tags)) }