def aws_from_configuration(
    region, zone, access_key_id, secret_access_key, cluster_id,
    session_token=None, validate_region=True
):
    try:
        return EBSBlockDeviceAPI(
            ec2_client=ec2_client(
                region=region,
                zone=zone,
                access_key_id=access_key_id,
                secret_access_key=secret_access_key,
                session_token=session_token,
                validate_region=validate_region,
            ),
            cluster_id=cluster_id,
        )
    except (InvalidRegionError, InvalidZoneError) as e:
        raise StorageInitializationError(
            StorageInitializationError.CONFIGURATION_ERROR, *e.args)
Build an ``EBSBlockDeviceAPI`` instance using configuration and
dataset/ETHPy150Open ClusterHQ/flocker/flocker/node/agents/ebs.py/aws_from_configuration