Steve Owen
Steve Owen

Reputation: 2071

Is there a plugin for Imageflow that supports Google Cloud?

I'm using Imageflow on Azure, and very happy with it. But a recent requirement is that we also need to show that our main company services don't have to be tied to a single Cloud provider.

Because I like to avoid the obvious, I'm trying to show that we could also run our systems within Google Cloud.

I've belatedly realised that Imazen Imageflow doesn't have a storage plugin for Google Cloud Storage. I've had a look at the source for the Azure plugin, and it looks generally fairly straightforward.

My question is, has anyone already done a plugin for Google Cloud? And if not, would someone, like me, who is a decent enough developer, but is pretty new with Google Cloud, capable of writing something that implements IBlobProvider for Google Cloud Storage? What sort of gotchas would I need to watch out for?

I'm not sure if such a solution needs intimate knowledge of Imageflow or Google Cloud Storage, neither of which I have.

Upvotes: 0

Views: 54

Answers (2)

Steve Owen
Steve Owen

Reputation: 2071

I was able to get it working using Amazon S3 emulation on Google Cloud Storage. It wasn't quite as straightforward as Azure as I couldn't find a particularly clean way of overriding the endpoint.

var client = new AmazonS3Client(awsCredentialsKey, awsCredentialsSecret,
    new AmazonS3Config { ServiceURL = "https://storage.googleapis.com" });

// This line seemed necessary even if it doesn't directly connect
services.AddAWSService<IAmazonS3>(new AWSOptions
{
    Credentials = new AnonymousAWSCredentials(),
    Region = region
});
            
services.AddImageflowS3Service(new S3ServiceOptions()
    .MapPrefix("/[prefix]", client, "[bucket name]", string.Empty, false, false);

Upvotes: 0

yannco
yannco

Reputation: 176

Based on their website, it seems like there isn't an existing Imageflow plugin for Google cloud storage as of now. About implementing IBlobProvider for Google Cloud Storage, it might be suitable to open an issue in their GitHub page to get a direct response from their team and other developers.

You can also file a feature request in Google Cloud here. Have a read also what to expect after you’ve opened an issue.

Upvotes: 1

Related Questions