private void addTag(AmazonEC2Client ec2, NetworkInterface o, String key, String value) {
addTag(ec2, o.getNetworkInterfaceId(), key, value);
}
private void addTag(AmazonEC2Client ec2, String id, String key, String value) {
Tag tag = new Tag(key, value);
List<Tag> tags = Lists.newArrayList();
tags.add(tag);
CreateTagsRequest request = new CreateTagsRequest();
request.setResources(Collections.singletonList(id));