Hi, can someone suggest which io-manager is best f...
# ask-community
a
Hi, can someone suggest which io-manager is best for passing file-objects from one op to another. Currently I am using the default io-manger fs_io_manger and its not letting me pass the file-obj. I tried mem_io_manager but it then ask to use fs_io_manger
dagster bot responded by community 1
d
So you want to pass the output of one Op to the next? I think that works when you don't define an io_manager and it uses the default one.
a
The default one doesn't supports passing file objects read in one op to another
m
if you definitely want to pass files use the blob storage io manager of the cloud provider you are using, eg dagster-aws has an s3 io manager, dagster-azure has adls2, etc
a
Could you tell whether dagster-aws work with minio??
m
donno don't use aws or minio, but in theory yea minio should be able to drop in as s3, that's kinda the point
n
@Apoorv Yadav, I was able to use
dagster-aws
with MinIO following this example in the docs https://docs.dagster.io/concepts/io-management/io-managers#custom-filesystem-based-io-manager being sure to add
AWS_ENDPOINT_URL
to
Copy code
@io_manager(
    config_schema={
        "base_path": Field(str, is_required=True),
        "AWS_ACCESS_KEY_ID": StringSource,
        "AWS_SECRET_ACCESS_KEY": StringSource,
        "AWS_ENDPOINT_URL": StringSource,
    }
)
def s3_parquet_io_manager(init_context: InitResourceContext) -> PandasParquetIOManager:
    ...