AWS Operations in Eras
AWS operations can be automated using Eras tool by creating workflows that interact with AWS APIs. For example, users can use Eras to automatically start and stop EC2 instances, configure AWS Lambda functions, or manage AWS S3 buckets. By automating these operations, users can reduce manual errors and improve the efficiency of their AWS workflows. Eras provide pre-built activities that can be used to interact with AWS APIs, or users can create custom activities using AWS SDKs to interact with AWS services.
UploadFileAsync
This method is used for uploading a file to AWS S3.
Parameters
- filePath -
string= The file path is written. - bucketName -
string= Storage container name for objects (files) that can be accessed over the internet. - prefix -
string= The file path is written.
How to use
var filePath = "F:\\RpaFiles\\3511.json";
var bucketName = "test";
var file_rnd_str = GetDate().ToString("ssHHmmddyyyyHH");
var session_rnd_str = dateNow.ToString("yyyyMMddHHmmss");
var prefix = "data/daily/" file_rnd_str + "-" + session_rnd_str + ".json";
Aws.UploadFile(filePath, bucketName, prefix);