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 assign a SSL Certificate to S3 bucket using C# SDK to Enable HTTPS

I have created a S3 bucket and uploaded the two files to the bucket via AWS .Net SDK, I can access files with HTTP, but I need access the files with HTTPS (SSL Secured) for that I have created the certificate request using the…
Shakir Ahamed
  • 1,290
  • 3
  • 16
  • 39
0
votes
1 answer

Switching profiles AWS Secret Manager - .Net Core

I am trying to switch profiles in code using appsettings.json for a .net core web service. If I new up an instance of the client in code eg: using var client = new AmazonSecretsManagerClient(); client.ListSecretsAsync(listRequest,…
0
votes
1 answer

Understanding aws-sdk-net for Unity 3D

I am trying to understand the aws-sdk-net for Unity package and I don´t understand how to proceed with the rest of the tutorial. What do I do with the information for the .xml file? I am trying to setup aws-cognito but the aws setup page is very…
Salvish G.
  • 11
  • 5
0
votes
1 answer

AWS revoke ip ingress on non default VPC .net sdk

I am trying to revoke an ingress rule on a security group that is inside my VPC which is not the default. I can find the security group using DescribeSecurityGroupsRequest and create the ingress rule using AuthorizeSecurityGroupIngressRequest all…
Travis J
  • 109
  • 3
  • 11
0
votes
1 answer

AWS SQS ReceiveMessageAsync not get messages if called with WaitTimeSeconds = 0

I have EventBridge pushing messages to SQS, and also SQS messages being consumed by a background process. In background process, I am using following piece of code (executed with 1s delay): var receiveMessageRequest = new ReceiveMessageRequest() { …
0
votes
1 answer

AWS AmazonS3Client request returns error "The remote certificate is invalid according to the validation procedure"

We have an application using AWS SDK AmazonS3Client to communicate with the S3 service to get files downloaded. With thousands of instances running fine, however, we got a few sites getting the following exception error message: The remote…
Baolin Li
  • 103
  • 1
  • 7
0
votes
1 answer

Switch between Accounts when hosted on EC2 Instance

We currently have 2 AWS accounts that we use. For most of the stuff we want to use the AWS account that our web app is hosted on in an EC2 instance so this works…
CallumVass
  • 11,288
  • 26
  • 84
  • 154
0
votes
1 answer

Aws sdk for .NET custom region endpoint configuration

I am trying to configure aws sdk for .net for using cloud service provider which provides aws compatible api. The code below for uploading using aws sdk for php works, but how to configure it properly for aws sdk .net, especially regions part: This…
AmacOS
  • 185
  • 11
0
votes
1 answer

Amazon Cognito Identity with API Gateway

I'm develop app IOS and Android with Xamarin cross-platform. I'm trying hard to use credentials receiving from Cognito Identity to authorize app invoking API Gateway. My user flow is: Authenticate on Cognito User Pool and get tokens Exchange tokens…
0
votes
0 answers

Using same instance of AmazonS3Client for parallel request?

I have the code below to download multiple files from S3 in parallel using AmazonS3Client. This has been working fine. public async Task Download(IList urls, int maxConcurrentDownloads) { var output = new List(); var…
LP13
  • 30,567
  • 53
  • 217
  • 400
0
votes
0 answers

Automatically set S3 bucket to host

I have been using ASP.NET C# and managed to create a bucket and upload the files to the S3 bucket through the server-side code. However, I still need the bucket to automatically allow static hosting without the need to go manually and click the…
wl1
  • 1
  • 3
0
votes
1 answer

.NET Core 3.x setting development AWS credentials

I have EC2 instances (via Elastic Beanstalk) running my ASP.Net Core 3.1 web app without a problem. AWS credentials are included in the key pair configured with the instance. I want to now store my Data Protection keys in a S3 bucket that I created…
BryanCass
  • 333
  • 2
  • 11
0
votes
2 answers

Custom Header not being added at final HTTP response - APIGatewayHttpApiV2ProxyResponse class from AWS .NET Lambda SDK

Description I'm working with AWS Lambda BUT without the Amazon.Lambda.AspNetCoreServer package, everything is working fine except the fact that I'm adding some basic custom response headers such as JSON content type and nothing is being added at the…
Richard Lee
  • 2,136
  • 2
  • 25
  • 33
0
votes
0 answers

AWS SQS Client Acknowledge mode in .NET CORE SDK

My intention is to have messages be deleted automatically from AWS SQS by not calling delete massage after receiving it. How do i set "acknowledge mode" in .net core? I use services.AddAWSService(); to create my SQS client. There is an…
dotsa
  • 911
  • 1
  • 11
  • 15
0
votes
1 answer

aws CDK construct in c# for API gateway websockets

I'm using AWS CDK to build stack for API gateway websockets. I can see this documentation here but it does not provide any clear explanation which on construct to use for web sockets. can someone help me with right construct to use for websockets.
kaleshanagineni
  • 325
  • 1
  • 4
  • 13