def tag_resource(client, resource_id, tag_key, tag_value):
    'Method to attach arbitrary key-value tags to resources.\n    Args:\n        client (boto3 client): Region specific boto client\n        resource_id (str): EC2 resource id to tag\n        tag_key: Tag key\n        tag_value: Tag value\n    '
    tags = [{'Key': tag_key, 'Value': tag_value}]
    client.create_tags(Resources=[resource_id], Tags=tags)
Method to attach arbitrary key-value tags to resources.
Args:
    client (boto3 client): Region specific boto client
    resource_id (str): EC2 resource id to tag
    tag_key: Tag key
    tag_value: Tag value
def tag_resource(client, resource_id, tag_key, tag_value):
    'Method to attach arbitrary key-value tags to resources.\n    Args:\n        client (boto3 client): Region specific boto client\n        resource_id (str): EC2 resource id to tag\n        tag_key: Tag key\n        tag_value: Tag value\n    '
    tags = [{'Key': tag_key, 'Value': tag_value}]
    client.create_tags(Resources=[resource_id], Tags=tags)