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

AWS SDK for dot net core app to use AWS AppConfig

I'm trying to access application created in AWS AppConfig to retrieve the Configuration file. There's no proper documentation I found on the AWS Docs to receive the configuration through the dot net sdk using few methods. ref:…
2
votes
0 answers

Dynamo DB C# Document Object Modal use Seconday index with LoadAsync

Using Dynamo Object Persistence Modal with C# Consider the object class SomeObject{ [DynamoDBHashKey] public string A {get; set;} [DynamoDBGlobalSecondaryIndexHashKey] [DynamoDBRangeKey] public string B {get; set;} } The below code works fine…
Sunny
  • 932
  • 8
  • 22
2
votes
1 answer

How can I detect if my application is running in AWS

I'm writing an aspnet core app which can be deployed to either azure or aws. The Microsoft libraries for accessing azure logging / configuration sources are well-behaved and fail silently if they're not in an appropriate environment. However the AWS…
JeffreyABecker
  • 2,724
  • 1
  • 25
  • 36
2
votes
2 answers

API Gateway Websocket @Connection endpoint not found

I am attempting to send a socket message to a potentially connected client from the $connect route. I successfully retrieve the connection id from dynamodb. Whenever I attempt to send anything at all, I get the error: No method found matching route…
2
votes
1 answer

How to custom endpoint using aws-sdk net?

Does anyone konw how to add custom endpoint using s3 net API?? Detail:https://github.com/aws/aws-sdk-net/issues/1283 code Language:C# the sServiceUrl value="192.168.199.216:7480" when i call DoesS3BucketExist function,i reviced a…
Happy Young
  • 95
  • 1
  • 9
2
votes
2 answers

Is there any method that get the upload date of an Amazon S3 object

I'm developping an app that upload files to s3 bucket and i want to list the objects and their upload dates using aws sdk for .net. Is there any code that do that ?
Driss Elk
  • 53
  • 1
  • 7
2
votes
2 answers

Direct access to S3 Glacier Deep Archive

Using latest .NET SDK, I cannot find any way to upload/download direct to Glacier Deep Archive (avoiding S3 bucket and transitioning). Is it possible? if not, are there plans to do enable that in future? I mean - it is possible (and is a good idea)…
Boppity Bop
  • 9,613
  • 13
  • 72
  • 151
2
votes
1 answer

Extracting Identity from lambda authorizer response

I made a custom lambda authorizer that validates the JWT and returns Allow policy. var context = new APIGatewayCustomAuthorizerContextOutput(); var tokenUse = ExtractClaims(claims, "token_use"); context["tokenType"] = tokenUse; var response =…
2
votes
1 answer

Obtain all current Amazon RDS Engine Versions?

I am trying to obtain a list of all available Engine Versions for each AWS RDS Engine. Amazon.RDS.AmazonRDSClient rdsClient; List versions = new List(); versions =…
Ibn Masood
  • 1,093
  • 1
  • 14
  • 31
2
votes
1 answer

Multiple applications with different IAM roles on EC2

I have multiple AspNetCore applications running on a Windows Server 2016 EC2. All these applications require to assume different IAM roles based on their permissions. These applications run under the local system account and since the profile file…
ubi
  • 4,041
  • 3
  • 33
  • 50
2
votes
0 answers

Subscribe to Topics using AWS-IOT with .NET

I have spent many hours looking for a way to subscribe to a topic using the AWSSDK.IoT library. I can publish easily enough, but can't figure out the subscription part. I am using the AmazonIotDataClient (AWSSDK.IotData), but have also tried the…
Spenduku
  • 409
  • 4
  • 12
2
votes
1 answer

AmazonCognitoIdentityProviderClient Signup throwing exception in Xamarin

I tried the following code and I am getting an exception when I call "providerClient.SignUpAsync" with a message Unable to store key CognitoIdentity:IdentityId:us-east-1:d8dce20b-7e3a-454a-afe5-xxxxxxxxxxxx, got error: -34018 I am not able to find…
2
votes
1 answer

Why AWS Explorer for VS2017 doesn't want "Session" profile types?

Background: In our organisation we have a bunch of AWS Accounts. We use one of them to define all the IAM users, one for each developer. Then every team has a different AWS Account. To work into an account, a developer has to impersonate a Role,…
br1
  • 313
  • 1
  • 10
1
vote
1 answer

How to resolve 'AmazonCognitoIdentityProviderClient.SignUp(SignUpRequest)' is inaccessible due to its protection level error in Unity?

I'm trying to compile a Signup script using Cognito in Unity, and I'm encountering the following error: 'AmazonCognitoIdentityProviderClient.SignUp(SignUpRequest)' is inaccessible due to its protection level. The error appears when attempting to use…
1
vote
1 answer

AWS .NET SDK use profile with MFA to access to Secrets Manager (The MfaSerialNumber has been set but the MfaTokenCodeCallback hasn't)

I'm trying to use AWS Secrets Manager from ASP.NET Core app. I use AWSSecretsManagerConfigurationExtensions (but this actually doesn't matter). The code is below. The problem is, my profile has an MFA set up (i.e. there's mfa_serial in my…