Questions tagged [aws-sdk-net]

Anytime you've some question/problem using AWS SDK for .NET . It's the official package to work with AWS services using .NET

AWS SDK for .NET. The SDK helps take the complexity out of coding by providing .NET APIs for AWS services including Amazon S3, Amazon EC2, Amazon DynamoDB and more. The SDK can be downloaded from NuGet or installed using the MSI package, which also includes the AWS Toolkit for Microsoft Visual Studio 2013 and 2015 editions and the AWS Tools for Windows PowerShell.

NuGet is the recommended way to install AWS SDK for .NET packages. NuGet Package Manager will install the correct assemblies for your project type - .NET 3.5, 4.5, or Portable Class Library.

Official Doc

238 questions
1
vote
1 answer

Cast Amazon SES emails, stored in S3 buckets, to MimeMessage type (MimeKit)

I need to read incoming email messages, with the following constraints: An Amazon SES rule stores the incoming emails to a S3 bucket; These emails then need to be cast to the MimeMessage type, of the MimeKit C# library, in order to work well with…
1
vote
1 answer

How can I download an S3 object in a Requester Pays bucket using the AWS SDK for .NET?

I want to read and download data from an Amazon S3 Requester Pays bucket. I've tried to enable a 'requester pays access' option in the .NET SDK but I can't find anything: static async Task DownloadFile() { TransferUtility fileTransferUtility = …
pewocis495
  • 117
  • 1
  • 11
1
vote
1 answer

How can I do an 'older than x' filter when describing EC2 images using the AWS SDK?

I'm trying to get a list of the images older than x date. As per the AWS doc, I'm using the YYYY-MM-DDThh:mm:ss.sssZ format. Here is my code: DescribeImagesResponse describeImagesResponse = _ec2Client.DescribeImages(new DescribeImagesRequest { …
1
vote
0 answers

Unable to get object metadata from S3. Check object key, region and/or access permissions on IndexFacesRequest for Amazon Rekognition

We are using AWS Face Rekognition service for detecting faces from images. We have a gallery app (web on dot net core & mobile app on flutter) where we wants to offer filter by face. For this we send all the pics one by one to the AWS Rekognition to…
Krunal
  • 2,967
  • 8
  • 45
  • 101
1
vote
0 answers

AWS Cost Explorer API doesn't return Resource ID

I'm testing the AWS Cost Explorer API (I'm using the .NET SDK), in particular the GetCostAndUsageWithResources method to get the costs split by resource. This is the code I'm testing with: string nextPageToken = null; do { var costRequest = new…
Master_T
  • 7,232
  • 11
  • 72
  • 144
1
vote
1 answer

AWSSDK.S3 "Your socket connection to the server was not read from or written to within the timeout period"

I want to load an audio file via the PutObjectAsync() method but after a while this exception is thrown: ex = {"Your socket connection to the server was not read from or written to within the timeout period."} For a .txt file this method works very…
1
vote
0 answers

Stop "Unable to find fuzzy matched region in endpoint logs" in AWS C# sdk

I'm running localstack along with my service in docker-compose: localstack: image: localstack/localstack:0.14.1 ports: - "127.0.0.1:4510-4559:4510-4559" # external service port range - "127.0.0.1:4566:4566" #…
Shadow
  • 2,089
  • 2
  • 23
  • 45
1
vote
1 answer

How to create an AWS service client object for a .NET Core desktop app

I am coding an app in .NET 5.0 to run on the desktop. It will query AWS CloudWatch and download log entries. I am using the following method to create the AWS service client that contains the query method. When the program enters the…
NeartCarp
  • 87
  • 9
1
vote
0 answers

How to make AWSSDK for .NET Core use a non-default credentials profile in a console application?

I have a .NET Core 3.1 console application that I'm using to access Secrets Manager during development (so, from my local machine). By default, when the console app runs, the AWSSDK uses credentials from the [default] profile in my…
realmikep
  • 593
  • 1
  • 6
  • 22
1
vote
0 answers

.NET AWSSDK.SimpleEmailV2 - Friendly Name in From Address

Has anyone gotten the SimpleEmailV2 SDK to correctly show a friendly name as a From address? I've tried to go with the standard that should be supported, but I'm not getting the display I expect in my email client. var sendEmailRequest = new…
1
vote
0 answers

Difference between AmazonSecurityTokenServiceClient.AssumeRoleAsync and AssumeRoleAWSCredentials?

I'm currently expanding one of our projects which downloads objects from an S3 bucket to support RoleAWSCredentials. I've only connected to an S3 bucket by using BasicAWSCredentials before using an accessKey and a secretKey. Both of these code…
David Jacobsen
  • 454
  • 3
  • 20
1
vote
1 answer

c# client.GetPreSignedURL in .net aws sdks using HMACSHA256 instead of AWS4-HMAC-SHA256

the url generated from the method is different when compared with presigned url from aws console from c# method https://bucket.s3.amazonaws.com/key?AWSAccessKeyId=xxxxxx&Expires=1642609317&Signature=xxxxx c# link not working from AWS…
Vman
  • 401
  • 1
  • 4
  • 14
1
vote
0 answers

Error loading assembly AWSSDK.S3: 'No RegionEndpoint or ServiceURL configured'

This Exception happened directly after adding awssdk.s3 nugget package. The application stay on springboard and crash after ~15 sec. If I remove the nugget package, the app work perfectly fine. Here is the full log of the exception: [0:] Failed to…
Dany D
  • 11
  • 3
1
vote
0 answers

How to upload large file into s3 bucket transfer acceleration with single pre-signed URLs using .NET SDK

I've tried uploading large files (files above 5 GB) using pre-signed transfer accelerated URL but failed to upload files with large file size. I get exception from C# Console application like: "The operation has timed out" For small file sizes (<=…
1
vote
1 answer

Uploading to Google Cloud Storage using AWS SDK for .NET `Expected hash not equal to calculated hash`

I am trying to upload to Google Cloud Storage using the AWS SDK For .NET. I have enabled interoperability mode on GCS and put AWSSecretKey and AWSAccessKey in my App.config. I can list objects, but uploading is not working for me. The code I am…
David
  • 9,288
  • 1
  • 20
  • 52