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

Is there a way to determine AWS SES service availability in a region?

Is there a way to determine if ses has a local region available using AWS SDK? After registering e-mail service with Core Middleware services.AddAWSService() I want to find and assign the SES local region to e-mail service…
Victor
  • 985
  • 2
  • 28
  • 53
4
votes
0 answers

.net core inject AWS configuration

I have followed most of AWS-NET-SDK however unable to find a reference for what I am looking for. Basically I am looking for to read & inject AWS options from appsettings.json file including access key, secret key, serviceUrl & bucket name, then…
Avi Kenjale
  • 2,414
  • 6
  • 29
  • 46
4
votes
3 answers

How to use the AWSSDK.AppSync .net Core NuGet package to perform mutations and query data?

I want to send chat messages using AppSync from a .net Core backend, using the nuget package AWSSDK.AppSync. But I Can't find any guide or sample code to do so. I'm trying to code something similar to the AWS mobile sample application AppSync Chat…
Rui Holdorf
  • 43
  • 1
  • 7
4
votes
1 answer

Failed to create AmazonGameLiftClient in Unity3d

I use below code to create GameClient in Unity3d: AmazonGameLiftClient client = new AmazonGameLiftClient("accessKeyId", "accessKey", RegionEndpoint.CNNorth1); Above code is…
4
votes
1 answer

Access Denied on Windows for AWS Credentials file

No matter what I try it seems my web service cannot access my .aws/credentials file. I always get this error: System.UnauthorizedAccessException: Access to the path '{PATH}' is denied. Here is what I have tried: Move the path from the default…
ToddB
  • 1,464
  • 1
  • 12
  • 27
4
votes
2 answers

Determine current AWS region .Net?

Is there a way to determine the current AWS region in .Net? I've been able to find a way to do this in java https://aws.amazon.com/blogs/developer/determining-an-applications-current-region/ but cannot find the equivalent in .Net.
Thomas Huerta
  • 55
  • 1
  • 3
4
votes
1 answer

Getting Timestamp error in AWS SDK .net

I'm trying to use Amazon's AWS SDK for .NET, S3 storage. I use this code: using (var client = new AmazonS3Client(AwsAccessKey, AwsSecretAccessKey, new AmazonS3Config { ServiceURL = ServiceUrl })) { var request = new…
lasseschou
  • 1,550
  • 15
  • 24
3
votes
1 answer

What is the Azure Key Vault reference equivalent in AWS Secrets Manager?

There is a simple integration between Azure Key Vault and Azure Functions that automatically grabs the latest version of a secret and loads it as an environment variable: @Microsoft.KeyVault(VaultName=myvault;SecretName=mysecret) This entry needs…
3
votes
3 answers

DynamoDB ConditionalCheckFailedException - obtaining the item content that failed the test

I'm using precondition expressions on PutItem and UpdateItem requests. Is there a way to achieve either or both of the following: not throw an exception - this is not an exceptional situation, it's an anticipated condition; as with validation of…
Ruben Bartelink
  • 59,778
  • 26
  • 187
  • 249
3
votes
1 answer

AWS PowerShell customize SSO Callback: There is no Runspace available to run scripts in this thread

I'm using the PowerShell (v7) script below to customize AWS SSO Login FLow. It's based on a working .net implementation: $ErrorActionPreference = "Stop" Import-Module -Name "AWSPowerShell.NetCore" $profileName = "my-sso-profile" $chain =…
Philip Pittle
  • 11,821
  • 8
  • 59
  • 123
3
votes
1 answer

AWS .Net API - The provided token has expired

I am facing this weird scenario. I generate my AWS AccessKeyId, SecretAccessKey and SessionToken by running assume-role-with-saml command. After copying these values to .aws\credentials file, I try to run command "aws s3 ls" and can see all the S3…
3
votes
1 answer

Find out which AWS regions have resources

Is there a quick way to find out which regions have any resources in my account? I'm specifically using the AWS .NET SDK but the answer likely applies to other AWS SDKs and the CLI since they all seem to be just wrappers to the REST API. I can…
Nelson Rothermel
  • 9,436
  • 8
  • 62
  • 81
3
votes
1 answer

Does await PutObjectAsync(PutObjectAsync, CancellationToken) really awaits until the uploading finish in AWS SDK for .NET?

I'm using the AmazonS3Client.PutObjectAsync(PutObjectAsync, CancellationToken) method to upload my files to s3 storage. so the code inside my service looks like await _client.PutObjectAsync(putObject, cancellationToken).ConfigureAwait(false); I…
Occam's chainsaw
  • 189
  • 3
  • 14
3
votes
0 answers

Is it possible to specify a "no proxy" value in the AWS SDK NET S3-related libraries?

I am curious if AWSSDK.S3 has no_proxy-related settings? For example I would like to specify that s3.awsamazon.com not be proxied to. In many other languages/environments I am familiar with how to do this, i.e. via an environment variable like…
3
votes
1 answer

AWS lambda event parameters: When does Records hold multiple items in it?

I have an infrastructure such as this: S3 -> SQS -> Lambda. When a file is dropped to S3, it puts the event into an SQS queue, which then is consumed by a lambda function. Lambda is written in .net core. In lambda handlers parameter, I receive an…
1
2
3
15 16