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
0
votes
1 answer

How to create dynamodb table locally

I'm currently integrating my project with dynamoDB. I need to create a friendly approach for contributors to run everything locally (docker). The biggest issue I have is creating tables. Possibilities I've considered: run migration at the beginning…
0
votes
0 answers

AWSSDK .net error while copying. I think its a time syncing issue

So I've written a sync function using the low level sdk calls and I'm getting errors sometimes. not always, it seems to be after its been syncing for aroun 20 or 30 mins. I'm uploading about 30gb of data so it takes a while. If i do it in a linear…
0
votes
0 answers

AWS .net SDK S3 gives the Error when try to access object with Bidirectional (Unicode) characters

We are uploaded one file using AWS SDK for JavaScript v2.727.1 with key “156-50191-55215f17-0718-4713-b0d4-3bcb8b401d71/Enterprise/Documents/156/Directories/kyoScan-‎10‎.‎31‎.‎2022-‎0‎.‎07‎.‎44_685_202210311112484.pdf” and its successfully uploaded…
0
votes
0 answers

Why does my downloaded file become corrupt?

I'm using AWSSDK.net. When I use the code below to download a JPG or PNG file, the file opens normally. When I download a JPEG file the file does not open. A message appears saying that the file is not recognized as an image file. Does anyone know…
0
votes
0 answers

AWS RDS - Unable to connect to any of the specified MySQL hosts

I am working on a web application that is using AWS RDS (MySQL). Everything works fine until I send 10/20 concurrent requests. When I start sending more concurrent requests (say 100/200), then RDS does not respond in timely manner and application…
Hiren Desai
  • 941
  • 1
  • 9
  • 33
0
votes
0 answers

Why is this cost explorer code throwing this json error?

I'm trying to run the following code: var awsCredentials = new BasicAWSCredentials("SomeSecret","SomeKey"); var client = new AmazonCostExplorerClient(awsCredentials, Amazon.RegionEndpoint.USEast1); var requestObject = new…
0
votes
1 answer

AWS SDK .NET 4.5 "Error unmarshalling response back from AWS. HTTP Status Code: 200 OK" on ListObjectsV2

I am getting this error trying to list objects in a directory on a bucket. I cannot list from the root of the bucket as it has more than 1000 objects, so I need to drill farther down into the directory list to get what I want. My code works when I…
CStrom
  • 11
  • 3
0
votes
2 answers

AWS .Net Core SDK Simple Email Service Suppression List Not Working

I am trying to retrieve the SES account-level suppression list using AWS SDK in .Net Core: Below is my code: public class SimpleEmailServiceUtility : ISimpleEmailServiceUtility { private readonly IAmazonSimpleEmailServiceV2 _client; public…
Naveed Ahmed
  • 10,048
  • 12
  • 46
  • 85
0
votes
1 answer

SDK autogenerated timestamp attribute for DynamoDB using C#/.NET

My question is similar to Auto populate timestamp in DynamoDB, but I'm using C#/.NET. I could not find an equivalent DynamoDbAutoGeneratedTimestampAttribute using the object persistence model. How do I go about auto managing CreatedDate and…
user246392
  • 2,661
  • 11
  • 54
  • 96
0
votes
1 answer

How to do AWS S3 object encryption with KMS - CMK from Lambda in .Net

I am using Aws SDK (.Net) and trying to create lambda function which needs encrypt an object while uploading to S3 bucket (encryption SSE KMS customer managed key) . Please help on below queries 1)how can I access the KMS CMK from lambda c#…
0
votes
0 answers

UWP(Universal Windows Platform) AWS SDK configuration

I am working with UWP (Universal Windows Platform) to create a desktop application that can upload and download a json file from an AWS S3 bucket. By following the AWS documentation and testing with the AWS CLI, there is no issue with the AWS SDK.…
0
votes
1 answer

Is there a .NET equivalent of DynamoDBMapper?

I'd like to construct a CreateTableRequest object from data annotations in a class. It looks like Amazon provides DynamoDBMapper in the Java SDK, which makes this process simple. How can I do the same in .NET/C#? AmazonDynamoDB dynamoDBClient = new…
user246392
  • 2,661
  • 11
  • 54
  • 96
0
votes
0 answers

AWS SDK: unable to access EC2 API with assumed credentials

I'm trying to call the AWS EC2 API (using the C# SDK) by using access delegation as described here: https://docs.aws.amazon.com/IAM/latest/UserGuide/tutorial_cross-account-with-roles.html I've followed all the steps in the guide, I've set up a role…
Master_T
  • 7,232
  • 11
  • 72
  • 144
0
votes
1 answer

Unity integration with AWS

'InvalidDataException' exists in both 'AWSSDK.Core, Version=3.3.0.0, Culture=neutral, PublicKeyToken=null' and 'netstandard, Version=2.1.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' - This is the error that appears when I import any…
0
votes
0 answers

Problem using DynamoDB for Session State handling in a containerised (Fargate/ECS) .NET ASP web app - role authentication

I'm migrating a .NET Framework web app to AWS, and switching to containers. It's old tech, but we're taking baby steps towards modernizing the platform. For step is introducing better InfraCode, CI/CD automation, and resilience/HA, so moving to…