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
70
votes
9 answers

No RegionEndpoint or ServiceURL configured

I am writing code to upload files to AWS S3 and receiving this exception: AmazonClientException: No RegionEndpoint or ServiceURL configured My code: Console.WriteLine("ready to upload"); AWSCredentials credentials; credentials = new…
xiehongguang
  • 1,274
  • 1
  • 10
  • 24
42
votes
5 answers

How to set credentials on AWS SDK on NET Core?

I'm new to AWS SDK and I'm trying to follow the AWS documentation, but gives little to none on what exactly I need to setup. The official docs tell me to add this to the appsettings.json: { "AWS": { "Profile": "local-test-profile", …
Natan
  • 4,686
  • 5
  • 30
  • 48
16
votes
1 answer

The correct way to query DynamoDb table with .net SDK

I'm trying to understand how to query a table in dynamo using the DataModel. But, I found two ways that seems to work and I can't find an explanation or documentation of what's happening or if there is any difference between them. The ways of doing…
matheuswanted
  • 163
  • 1
  • 5
14
votes
1 answer

AWS S3 ListMultipartUploads : access denied

I have followed this blog in order to setup my AWS IAM and S3 accounts with Web Identity Federation. I am able to authenticate and receive session credentials and tokens all fine. I am also able to Download and Upload objects. However, I am getting:…
marcusturewicz
  • 2,394
  • 2
  • 23
  • 38
12
votes
1 answer

Use IAmazonDynamoDB or IDynamoDBContext (both?)

I started my Visual Studio project from AWS SDK template. It uses IDynamoDBContext in the function and IAmazonDynamoDB in the tests. Everything worked to save and received documents when I received them with an id (hash). But it stopped to work when…
11
votes
3 answers

How to send a response card using AWS Lambda in C#

Hi I am developing a chatbot on amazon lex and I want to send a response card using the lambda function but on using response card function inside the close response format it gives the error of null exception. Can anyone tell the solution to it? PS…
9
votes
1 answer

How to get AWS Fargate task instance metadata inside running container?

When a task launches inside of AWS Fargate, it has a task id (guid) that is used for Cloudwatch logs and can be used as a unique "run id". I am launching a .NET core application into a AWS container and would like to find a programmatic way to pull…
6
votes
0 answers

How to mock BatchWrite object in aws-sdk-net DynamoDb

I’m trying to write a unit test in c# and I need to mock the response of the method CreateBatchWrite using Moq but I can’t instantiate an object of the BatchWrite object. I’m doing this: this.dynamoDbMock .Setup(m =>…
safv12
  • 61
  • 5
6
votes
0 answers

AWS Cognito Email Forgot Password Code expires almost immediately

I am working on a Xamarin app that uses AWS Cognito for user authentication. I'm trying to implement a forgot password, and the MFA is setup to use an email confirmation code. However, when I try entering and using the confirmation code with a new…
Ryan Alford
  • 7,514
  • 6
  • 42
  • 56
6
votes
1 answer

How to authenticate using Enabled Identity Provider

I'm looking for documentation on how to extend our existing Cognito Authentication process to include additional "Enabled Identity Providers". Currently we do the following var userPool = new CognitoUserPool(poolId, clientId, provider); var user =…
Ralph Shillington
  • 20,718
  • 23
  • 91
  • 154
6
votes
1 answer

Amazon S3 high CPU usage with 100 PutObject calls (.NET)

We are using Amazon S3 for storing up to 500K data. We have a .NET 4.0 web service installed on EC2 instance, which makes the PutObject call with 500K data. The problem is that when we make more than 100 simultaneous calls (with unique S3 keys) to…
5
votes
0 answers

AWS SDK .NET Dependency Injection with Assume Role credentials

Versions .net core sdk v3.1.301 AWSSDK.Extensions.NETCore.Setup v3.3.101 AWSSDK.IdentityManagement v3.3.106.19 AWSSDK.SecurityToken v3.3.105.30 Definitions Since this question talks about different types of AWS credentials I thought it would be…
GreenyMcDuff
  • 3,292
  • 7
  • 34
  • 66
5
votes
2 answers

Amazon S3 client could not download file with spaces or hash?

I am using AWSSDK.S3 version 3.3.17.2 and AWSSDK.Core version 3.3.21.16 to upload a file and then download the same file. The code below not able to download the file if the file name has spaces ( or #) public class AmazonS3 { public async…
LP13
  • 30,567
  • 53
  • 217
  • 400
4
votes
1 answer

AWS .NET SDK How to specify region when using Localstack

How do I instantiate a .NET AWSSDK SQS client that has both a custom Region and ServiceURL? More information: I have a queue set up in localstack that I can verify is there through an sqs list-queues query using the CLI: > aws…
Moffen
  • 1,817
  • 1
  • 14
  • 34
4
votes
2 answers

How to process large zip file using AWS lambda?

I want to read 100K+ files from s3 and zip them into single large file. The individual file size can range between few Kb to 1MB and the final zip file could go easily beyond 3GB. Given AWS Lambda has memory limitation of 3GB and tmp directory…
LP13
  • 30,567
  • 53
  • 217
  • 400
1
2 3
15 16