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

CognitoAuthentication Extension for .NET with Unity (StartWithSrpAuthAsync()) issue

After importing the AWS-SDK for .NET dll's including the AWS.Extension.CognitoAuthentication into Unity 2018.2, I am having a problem with the StartWithSrpAuthAsync function taken from AuthenticateWithSrpAsync provided by…
1
vote
1 answer

C# UI for AWS S3 not updating

I am creating a download application in C# that downloads files from Amazon AWS S3 storage. I am able to download the file without issue, but I am trying to create a progress event. To create the event I am using the following code within the…
user1433164
  • 101
  • 8
1
vote
0 answers

AWS SDK get session token for rbac token

I have an API and other services configured and secured via AWS. We have applied a RBAC style permission system to allow/deny access to resources using groups in Cognito and federated-identities. When a user logs into to the system, they get a JWT…
1
vote
1 answer

AWS .NET SDK throws "An existing connection was forcibly closed by the remote host" when trying to get secret from AWS Secrets Manager

I am simply trying to retrieve a secret from AWS Secrets Manager using the .NET SDK. The following is deployed to us-east-2 and the instance profile has the appropriate policy attached. I verified that permissions are configured properly by…
1
vote
1 answer

security token invalid exception from aws dynamodb- .net core sdk

I am trying to insert records in dynamodb using AWS .NET core SDK, but I am getting following exception: The security token included in the request is invalid. Please find below the steps I have done to connect it: Created a new access key in…
1
vote
1 answer

DynamoDb - .NET Object Persistence Model - LoadAsync does not apply ScanCondition

I am fairly new in this realm and any help is appreciated I have a table in Dynamodb database named Tenant as below: "TenantId" is the hash primary key and I have no other keys. And I have a field named "IsDeleted" which is boolean Table…
Reza
  • 11
  • 5
1
vote
1 answer

AWS Cognito - Can I use the migration trigger in a Custom auth flow

I am investigating the recently released migration trigger for cognito user pools. To enable the trigger you need to set the AuthFlow type in the InitiateAuthRequest to be "USER_PASSWORD_AUTH" see here:…
dpix
  • 2,765
  • 2
  • 16
  • 25
1
vote
1 answer

How to reload AWS options at runtime

I am running an ASP.NET Core MVC app in a docker container, with an AWS credentials file. I have another service that is putting new keys into the file when the old ones expire, but these new keys don't seem to propagate through to my MVC app and my…
marcusturewicz
  • 2,394
  • 2
  • 23
  • 38
1
vote
2 answers

Error accessing AWS through Visual Studio 2017

I'm trying to connect to AWS (Amazon Web Services) using Visual Studio 2017. However, in the AWS Explorer in Visual Studio, it says "Failed to connect to AWS". I created an account in the AWS IAM Management Console. I assigned this account…
user5915670
0
votes
0 answers

Correspondence betwen aws-sdk-net library version and single component versions

In the past I declared in my ReadMe_OSS file the "aws-sdk-net" 3.7.289.0 source code because I used the AWSSDK.Core 3.7.11.13 lib inside my On premises application. Now I've upgraded the AWSSDK.Core lib to 3.7.106.35 version. Which "aws-sdk-net"…
Parotone
  • 1
  • 1
0
votes
0 answers

How to send an intentionally unauthenticated request to OpenSearch

We have an issue with the .NET AWS SDK where it always assumes credentials are needed. If no credentials are supplied, the SDK will try to pull them from the EC2 metadata service. The irony here is that the AWS resources we want to access…
user6481358
  • 53
  • 2
  • 6
0
votes
1 answer

How do we use AWSSDK.Core in a project which is multi-targeting .NET Standard 2.1 and .NET FX 4.7.2

I am in the process of upgrading a business layer project(netfx472) and due to some constraints I have to make it multi-target .NET Standard 2.1 and .NET FX 4.7.2 after the upgrade. It's currently using AWSSDK.Core and I don't see a version of that…
renegadeMind
  • 4,073
  • 5
  • 29
  • 37
0
votes
1 answer

AWS S3 PutLifecycleConfigurationAsync throws AmazonS3Exception

I'm using the AWS C# SDK. After getting the Lifecycle configuration of a bucket using the GetLifecycleConfigurationAsync(bucketName) method, I'm trying to save this configuartion (even without any change): var result = await…
Amir M
  • 508
  • 1
  • 8
  • 28
0
votes
0 answers

Securityhub "The request is rejected since no such resource found." exception using sdk

getting the following exception while cleaning up securityhub using aws sdk The request is rejected since no such resource found., in region Asia Pacific (Singapore) (ap-southeast-1) i hv tried cleaning up security hub in multiple regions and have…
0
votes
1 answer

AWSSDK.MediaLive CreateChannelAsync returns Destination "xxxxx" is not referenced

I am trying to use AWS Elemental MediaLive via NET SDK. (Dependencies Info: Net Core 6.0 & AWSSDK.MediaLive 3.7.106.36 & AWSSDK.Core 3.7.106.42) My code looks like this [HttpGet("Create-New-Channel")] public async Task