def get_fg_conf()

in demo-workspace/utils/feature_store_utils.py [0:0]


def get_fg_conf(file_path: Union[str, Path], s3_uri: str = None) -> dict:
    with open(file_path, "r") as f:
        f_list = json.load(f)
    #     offline_conf = None
    #     if f_list["offline_store_config"]:
    #         offline_conf = dict(
    #             DisableGlueTableCreation=False,
    #             S3StorageConfig={"S3Uri": f"s3://{bucket_name}/"},
    #         )

    return dict(
        feature_group_name=f_list["feature_group_name"],
        feature_group_properties=dict(
            s3_uri=s3_uri,
            event_time_feature_name=f_list["event_time_feature_name"],
            record_identifier_name=f_list["record_identifier_feature_name"],
            enable_online_store=f_list["enable_online_store"],
            disable_glue_table_creation=f_list["disable_glue_table_creation"],
        ),
        feature_definitions=prepare_features_definitions(f_list["column_schemas"]),
    )