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

403 Forbidden/500 Internal Server Error after deploying .net core api AWS Serverless application

Created a .net core AWS Serverless Application. Cognito is used to authenticate. Users and App clients have been configured. When I ran the solution locally it worked fine (bearing in mind it was http). When I published using the publish wizard…
The_Chud
  • 991
  • 1
  • 11
  • 24
1
vote
1 answer

What's the version AWS SDK that supports TLS v1.2?

We're using AWS SDK .NET for getting files from AWS S3 storage. When the application was implemented a few years ago, the AWS was only supporting TLS 1.0. Now hopefully it's supporting TLS 1.2. I'd like to know which version and where I can download…
Baolin Li
  • 103
  • 1
  • 7
1
vote
0 answers

What should be the scope of AmazonS3Client object in a web application?

I want to use AWS SDK for .Net to read and write to an S3 bucket, from a web application. What should be the scope of AmazonS3Client client? Looking at ASW sample code they are using a static s3Client: private const string bucketName = "*** provide…
Hooman Bahreini
  • 14,480
  • 11
  • 70
  • 137
1
vote
0 answers

How to add data to kenisis firehose through lambda function using awssdk for .net?

I have created lambda function in c# using awssdk version 3 which pass json data to firehose stream which produce the result with an error in S3 bucket "Invalid output structure: Please check your function and make sure the processed records…
CodeLearner20
  • 83
  • 1
  • 7
1
vote
1 answer

C# Lambda expression for CreateWebHostBuilder

I want to use the WaitForSystemsManagerReloadToComplete() Extensions as documented in the "Reloading in AWS Lambda" section of this Read Me. I believe I have written the right syntax to call it but since it is not an easy process to test I wanted to…
Josh
  • 8,219
  • 13
  • 76
  • 123
1
vote
0 answers

How can I refresh the access token?

I have a Xamarin.Forms iOS and UWP application based on a .NET standard 2.0 library. I am able to allow the user to a) login with Facebook b) use the received Facebook token to authenticate with an AWS Cognito federated identity pool without any…
1
vote
2 answers

AWSSDK.Core requires AWS_ENABLE_ENDPOINT_DISCOVERY environment variable value

After upgrading to .net core 2.2, and upgrading to the latest AWS library versions, I encounter this runtime error during initialization: [System.InvalidOperationException] The environment variable AWS_ENABLE_ENDPOINT_DISCOVERY was not set with a…
1
vote
2 answers

How to upload a file from my local machine to a vault of s3 glacier using c# in a console app?

did someone knows how to do that because i had investigate about, but i found only wrong/don't working answers I had try a lot of solutions but it seems to be wrong, like using the Chilkat directory , using ArchiveTransferManager ... …
1
vote
1 answer

aws cross account dynamodb access with IAM role

I have an aws ecs ec2 instance in one account and it is trying to access the dynamob db tables on another aws account. I am not using any aws access key and id, instead using AWS iam role attached to the ec2 instance. This is a .net project and my…
1
vote
0 answers

Access denied for getting publicly available S3 object

I created a bucket, where I allow objects to be publicly accessible. I put a file in that bucket, and I can access it through a simple HTTP GET request (even from an anonymous browser). However, trying to access the same file using the AWS SDK for…
Shahar Mosek
  • 1,922
  • 3
  • 17
  • 27
1
vote
1 answer

Create AWS RDS Instance with specific version?

I am attempting to create an AWS RDS database. Any engine would be OK. rdsClient = new Amazon.RDS.AmazonRDSClient(, ); try { rdsClient.CreateDBInstance(new CreateDBInstanceRequest(identifier, allocatedStorage,…
Ibn Masood
  • 1,093
  • 1
  • 14
  • 31
1
vote
2 answers

Getting error in AWS toolkit for Visual Studio: Error loading AWS profile

I have installed AWS SDK toolkit for VS 2017. It was working fine. All of a sudden since few days back i am getting error "Error loading AWS profiles: Method not found:'Amazon.Runtime.TcpKeepAlive Amazon.Runtime.ClientConfig.get_TcpKeepAlive()" I…
Sanjay A
  • 51
  • 4
1
vote
1 answer

AWS Lambda to proxy ElasticSearch Service using C#

I am trying to create an AWS lamda using c# to access AWS ElasticSerch service. I have created a role that my lambda function is configured to use which has access to ElasticSeach. But the permission doesn't seem to be working. Here is my setup: I…
1
vote
1 answer

AWS SDK .NET DynamoDB ASYNC

I am trying to use AWS SDK for .NET Core. Create a table to count views on videos. Add a view count for a day. Increment existing count for a day. Query for video counts between two dates for a video. .NET Core AWS SDK uses Async methods which are…
WebSight
  • 640
  • 2
  • 12
  • 27
1
vote
1 answer

AWS powershell credential_source = Ec2InstanceMetadata

I'm trying to set the credential_source = Ec2InstanceMetadata option in the profile config file so applications/tools running on an EC2 can assume a specific role rather than the Instance Profile role. I have the following config file at…
ubi
  • 4,041
  • 3
  • 33
  • 50