HI all, I am new to dagster, so this is probably a...
# ask-community
HI all, I am new to dagster, so this is probably a fairly elementary question, but I am trying to store 2 assets in s3 in different prefixes. So upstream_asset should go in s3://my-bucket/prefix1 and downstream_asset should go in s3://my-bucket/prefix2. I cannot figure out how to do this, though:
🤖 1
Copy code
def upstream_asset():
    return [1, 2, 3]

def downstream_asset(upstream_asset):
    return upstream_asset + [4]

resources_by_env = {
    "prod": {
        "io_manager": s3_pickle_io_manager.configured({
            "s3_bucket": "my-bucket",
            "s3_prefix": "prefix1"}),
        "s3": s3_resource
    "local": {"io_manager": fs_io_manager},

defs = Definitions(
    assets=[upstream_asset, downstream_asset],
    resources=resources_by_env[os.getenv("DAGSTER_DEPLOYMENT", "prod")],
hi Lindsay,
is only the default
key-- you can create a separate io manager, store it under an arbitrary resource key, and separately configure the io manager for one of your assets:
Copy code
def downstream_asset(upstream_asset):
🤦 1