My project is currently written entirely in Motoko. There is an SDK I would like to use (specifically the presigned function, to generate a presigned URL so my users can upload files directly to CDNs that support the S3 Object Storage interface), but the SDK isn’t available in Motoko. There is a Rust version, however.
I would like to avoid setting up a lambda on AWS just to generate this URL, so I’m thinking I could create a Rust canister that uses the SDK, add it to my project alongside my Motoko canisters, and have my Motoko canister call into that Rust canister directly when it needs to generate the URL.
Is this the right way to go about things? Are there examples you could point me to where a Motoko canister communicates with a Rust canister in the same project?