def METHOD_NAME(ec2_resource, ami_id, ami_name, created_by, deployment_type, instance_id, date_now):
    print('Tagged', ami_name, ami_id)
    image = ec2_resource.Image(ami_id)
    image.create_tags(
        Tags=[
            {'Key': 'Name', 'Value': ami_name},
            {'Key': 'created_by', 'Value': created_by},
            {'Key': 'deployment_type', 'Value': deployment_type},
            {'Key': 'instance_id', 'Value': instance_id},
            {'Key': 'deployment_timestamp', 'Value': date_now},
        ]
    )