"No class found for dispatch key 's3-bucket' in registry for type 'Block'." working with Deployments

Dockerfile

FROM prefecthq/prefect:2-python3.10

Script

s3_storage = S3Bucket.load("my-bucket")
s3_storage.bucket_folder = "prefect-flows"

docker_image = DockerContainer.load("my-docker-image")

helloworld_deployment = Deployment.build_from_flow(
    flow=helloworld,
    name="Hello World",
    storage=s3_storage,
    path="helloworld",
    infrastructure=docker_image,
)

Results in

Flow could not be retrieved from deployment.
Traceback (most recent call last):
  File "/usr/local/lib/python3.10/site-packages/prefect/engine.py", line 268, in retrieve_flow_then_begin_flow_run
    flow = await load_flow_from_flow_run(flow_run, client=client)
  File "/usr/local/lib/python3.10/site-packages/prefect/client/utilities.py", line 47, in with_injected_client
    return await fn(*args, **kwargs)
  File "/usr/local/lib/python3.10/site-packages/prefect/deployments.py", line 167, in load_flow_from_flow_run
    storage_block = Block._from_block_document(storage_document)
  File "/usr/local/lib/python3.10/site-packages/prefect/blocks/core.py", line 571, in _from_block_document
    else cls.get_block_class_from_schema(block_document.block_schema)
  File "/usr/local/lib/python3.10/site-packages/prefect/blocks/core.py", line 591, in get_block_class_from_schema
    return lookup_type(cls, block_schema_to_key(schema))
  File "/usr/local/lib/python3.10/site-packages/prefect/utilities/dispatch.py", line 186, in lookup_type
    raise KeyError(
KeyError: "No class found for dispatch key 's3-bucket' in registry for type 'Block'."

This traceback usually results from package not installed in your container.

To get around, include this in your dockerfile:

RUN pip install prefect-aws

Or use EXTRA_PIP_PACKAGES

After installing the package, the error code is updated to:
botocore.exceptions.NoCredentialsError: Unable to locate credentials

I do have a MinIO Credentials block configured with root username and pass, and the S3-Bucket block references the MinIO Credentials block for credentials.