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
3
votes
2 answers

Avoid static value in ASP.NET Core Program.cs

In my CreateWebHostBuilder() method I've added the AWS Systems Manager Parameter Store as an additional source for Configuration Builder: public class Program { public static void Main(string[] args) { …
Josh
  • 8,219
  • 13
  • 76
  • 123
3
votes
1 answer

AWS .NET Core unit test load non-default profile

For development, I have a number of AWS profiles, I use the AWS Profile section in appsettings.json to define the profile I want use: "AWS": { "Profile": "CorpAccount", "Region": "us-east-1" } Since this is not the default profile, I need…
Josh
  • 8,219
  • 13
  • 76
  • 123
3
votes
1 answer

Start or Run ECS or Fargate Task Through the C# Client Sdk

I am trying to run or start an existing task definition within ECS but the documentation is lacking and I cant seem to find any examples online. I have hit a wall and I was wondering if anyone else has done a similar thing. I am using the AWSSDK.ECS…
Farhad-Taran
  • 6,282
  • 15
  • 67
  • 121
3
votes
2 answers

SignatureDoesNotMatch on S3 PUT Request to Presigned URL

I am generating a presigned URL server-side to allow my client application to upload a file directly to the S3 bucket. Everything works fine unless the client application is running on a computer in a timezone that is technically a day ahead of my…
3
votes
1 answer

Cognito Identity System.IO.InvalidDataException: Cannot determine protocol. When running in docker on Elastic beanstalk

When running my app in a docker container in Elastic beanstalk I am noticing this error. Fetching users and sign-in operations work fine, but attempting to create a new user throws this error. Developing locally against the same Cognito instance the…
dpix
  • 2,765
  • 2
  • 16
  • 25
3
votes
4 answers

ASP.NET Core 2 Web API AWS .NET SDK S3 Access Denied

I'm developing a web api using .NET Core 2 on a Windows laptop. I'm trying to access my S3 bucket and am getting an Access Denied error. Interesting thing is that it works with the AWS CLI. My appSettings.Development.json file: "AWS": { …
CodeWzrd
  • 127
  • 1
  • 9
3
votes
1 answer

S3 presigned URL fails when deployed to Elastic Beanstalk

I'm trying to use a presigned URL to upload files to S3. It works fine in my testing enviroment, but when I try and use the same code in the live environment (on elastic beanstalk) it returns an "AccessDenied" error. I notice that the live request…
David
  • 710
  • 5
  • 15
3
votes
3 answers

AWS Explorer not visible in Microsoft Visual Studio 2017 (Community Edition)

I am trying to install AWS toolkit on MS Visual Studio 2017 (Community Edition) using the link here, but I can't find AWS Explorer in VIEW menu of VS: Tried a couple of workarounds, such as in this thread, but could not find a solution. Tried…
user1234
  • 125
  • 1
  • 8
2
votes
1 answer

AWS Athena SDK with C#, how run DDL instructions?

I using the https://docs.aws.amazon.com/sdkfornet/v3/apidocs/items/Athena/NAthena.html sdk nuget https://github.com/aws/aws-sdk-net/ in order to query S3 bucket files, the thing is I need to create dataCatalog/databases and tables per demand (inside…
Andre
  • 652
  • 2
  • 7
  • 23
2
votes
2 answers

AWS .NET Configuration Extension throwing 'Not implemented AppConfig type: application/octet-stream'

I am trying to use the AWS .NET Configuration Extension for Systems Manager Nuget package (Amazon.Extensions.Configuration.SystemsManager) to retrieve configurations stored in AWS Parameter Store. I am using the following lines of code taken from…
2
votes
1 answer

AWS Assume Role via .Net SDK gives Access Denied but works with CLI

I am trying to upload a file in S3 by AWS Assume Role. When I am trying to access it from CLI it works fine but from .Net SDK it gives me Access Denied error. Here are the steps I followed in CLI - Setup the access key/secret key for user using aws…
2
votes
0 answers

How to connect to MinIo server using temporary credentials and ASW S3 client in C#?

I am able to connect to MinIo bucket and upload objects using AWS SDK and S3 client by passing MinIo credentials in C#. { AuthenticationRegion = RegionEndpoint.USEast1.SystemName, ServiceURL = minioURL, …
2
votes
1 answer

How can I restore a DynamoDB backup to a local DynamoDB instance/container?

I've taken a backup of a DynamoDB table in the AWS Console. I was able to download the file locally. I'd like to take that file and import it into a local dynamodb instance for testing. I've got far enough to create the table, however the backup…
brendonparker
  • 838
  • 8
  • 19
2
votes
1 answer

UnityInitializer class is missing when adding awssdk core library in Unity

I was recently trying to add the NET4.5 AWSSDK Core and GameLift libraries to my game in order to use aws GameLift services. In the tutorials I follow, it says that I need to use the functions within UnityInitializer class that is supposed to be…
2
votes
0 answers

How to call AWS API Gateway from C# / .net core

I want to call AWS api gateway from my C# code using AWS SDK. I notice the class AWSSDK.APIGateway but I am unable to get usage instructions for this library. Is there a sample available for this nuget package so that I can refer to it as my…
Chubsdad
  • 24,777
  • 4
  • 73
  • 129
1 2
3
15 16