question

darshazureworld avatar image
0 Votes"
darshazureworld asked SumanthMarigowda-MSFT edited

Azure Function to download blobs and upload the data to AWS S3

Hi there,

I need some help creating the Azure function app that basically downloads the data from Blob and upload it to AWS S3 bucket. I am new to the Azure function app so it would be appreciated if you can point me to some sample code or let me know the process of doing this.

Thanks,

azure-functions
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

MughundhanRaveendran-MSFT avatar image
1 Vote"
MughundhanRaveendran-MSFT answered MughundhanRaveendran-MSFT commented

@darshazureworld ,

Thanks for reaching out to Q&A.

Azure functions have built-in triggers and input bindings for Azure storage account. You can choose any language that you are comfortable with and write appropriate code to download the blobs from the Storage account. However, there is no output binding for AWS S3 in Functions. You will have to use the AWS S3 SDK to upload the blobs to S3 bucket.

I hope this helps!

Please 'Accept as answer' and ‘Upvote’ if it helped so that it can help others in the community looking for help on similar topics.

· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

@darshazureworld ,

Following up to see if the above answer helps. Do let me know if you have any queries.

Please 'Accept as answer' and ‘Upvote’ if it helped so that it can help others in the community looking for help on similar topics.

0 Votes 0 ·
nhcloud avatar image
0 Votes"
nhcloud answered

@darshazureworld
As @MughundhanRaveendran-MSFT said it is fairly easy to implement Az Functions. If you want to bind the changes (as you receive blob or change blob) then you can use something like in C#
[FunctionName("ChangeBlobTrigger")]
public static async Task Run([BlobTrigger("%SourceContainerName%/{name}", Connection = "SourceStorageConnection")]
Stream stream, string name,
IDictionary<string, string> metadata,
ILogger log)
{
//LIBRARY.METHOD(stream, name, metadata,log); IMPLEMENT THE CALL USING AWS SDK
}

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.