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

Upload Files To S3 from Browser and Secure AWS Creds

i am developing a small application in ASP.net MVC ,in which i am uploading file to s3 directly from browser ,below is my code , but the problem is since it is in JavaScript my Access key and Secret key is expose , is there any way i can hide it or…
1
vote
1 answer

AWS SDK (C#) - how it create describe instances request that filters-out vms with specific tagkey

I've seen several solutions for AWS CLI, but I'm not sure how to translate these queries into aws .net sdk. Given: Aws .net sdk; AWS instances with specific tag key (e.g. EXCLUDE_ME) Problem: need to create an instance of Amazon.EC2.Model.Filter…
Serhii T.
  • 11
  • 1
1
vote
1 answer

CreateBatchWrite with DynamoDBContext Update/Insert C#

I have a list of files that should be inserted or updated in dynamodb, so I'm doing in this way: var batch = _dynamoDbContext.CreateBatchWrite(); batch.AddPutItems(myEntityList); batch.ExecuteAsync(); This works fine if DynamoDB table…
Ronaldo Lanhellas
  • 2,975
  • 5
  • 46
  • 92
1
vote
1 answer

Where to find constants like "MaxKeys" of 1000 for S3 or "VersionStage" of AWSCURRENT in AWSSDK for .NET

AWS SDK docs state certain constants or enumerations like listing files in S3 is limited to 1000 maximum results or prescribe certain enumerated values like AWSCURRENT and AWSPENDING in Secrets Manager. Where can I find constants or enumerations…
maxmoore14
  • 701
  • 7
  • 26
1
vote
0 answers

Where to find an enumeration of error codes in AWSSDK.S3 for .NET

The possible S3 error codes are listed in the docs here: https://docs.aws.amazon.com/AmazonS3/latest/API/API_Error.html Are they enumerated in the SDK somewhere? If so, where?
maxmoore14
  • 701
  • 7
  • 26
1
vote
0 answers

AWS DotNet Core credentials

I have an existing dotnet core web application that I need to use a profile other than [default] when I'm developing locally. I'm running into an issue in that the location of credential file appears to not be defaulted yet to ~/.aws/credentials. …
Aaron
  • 511
  • 3
  • 25
1
vote
0 answers

await on Amazon.S3.AmazonS3Client.UploadPartAsync not resolving

I am awaiting a call to Amazon.S3.AmazonS3Client.UploadPartAsync but the await never resolves even though I am sure that the request has been fulfilled. private async Task
Craig
  • 474
  • 7
  • 21
1
vote
1 answer

Use AWS SDK without credentials to confirm a SNS subscription --> No RegionEndpoint or ServiceURL configured

I don't have an AWS account. I do have an HTTP POST webhook that should receive to the HTTPS endpoint of a SNS topic. When trying to confirm the subscription there is the following error message in the logs: No RegionEndpoint or ServiceURL…
baouss
  • 1,312
  • 1
  • 22
  • 52
1
vote
0 answers

How can I programmatically access the AWS credentials used by the AWS SDK?

I want to programmatically access the same 'default' access/secret key used by the AWS SDK for .NET, as described under Using Credentials in an Application. For example, looking in App/Web.config, followed by a default profile, followed by…
Collin Dauphinee
  • 13,664
  • 1
  • 40
  • 71
1
vote
2 answers

The encrypted store is not available | AWSSDK C

I'm getting the following exception using AWSSDK v 3.5.1.58: The encrypted store is not available. This may be due to use of a non-Windows operating system or Windows Nano Server, or the current user account may not have its profile loaded. This is…
Marius
  • 1,420
  • 1
  • 11
  • 19
1
vote
1 answer

Does AWS SDK for .NET communicate in a secure channel with S3 servers?

Does anyone know if the AWS SDK for .NET always uses a secure channel when I download/upload files from/to S3 buckets? Or this is something that should be configured when I write the code or into the S3 buckets itself? The question is similar to one…
Lawan subba
  • 610
  • 3
  • 7
  • 19
1
vote
1 answer

How to download multiple files at once from S3 using C# AWS SDK

How to download multiple files from s3 buckets. I could not find any better option on SO. Here is my code for single file download. Given list of Urls, I am looping to download multiple files. public async Task Download(string url, Stream…
LP13
  • 30,567
  • 53
  • 217
  • 400
1
vote
1 answer

Execute managed AWS Config rule on demand via SDK

Is it possible to run a managed AWS Config rule (for example https://docs.aws.amazon.com/config/latest/developerguide/root-account-mfa-enabled.html) on demand via the SDK? Scenario: As a consultant I want to easily assess a customer's environment…
David O'Brien
  • 813
  • 1
  • 9
  • 18
1
vote
1 answer

Download file from AWS S3 .NET Core 3.1 WEB APIs

I am trying to get an object from AWS S3 bucket using AWS SDK. using(GetObjectResponse response = await client.GetObjectAsync(request)) using (Stream responseStream = response.ResponseStream) using (StreamReader…
Kamran
  • 181
  • 3
  • 13
1
vote
1 answer

CS0122: 'AmazonGlacierClient.ListVaults()' is inaccessible due to its protection level

I am getting the following error: https://learn.microsoft.com/en-us/dotnet/csharp/language-reference/compiler-messages/cs0122 Program.cs(42,34): error CS0122: 'AmazonGlacierClient.ListVaults()' is inaccessible due to its protection level…
Pompey Magnus
  • 2,191
  • 5
  • 27
  • 40