Newest 'aws-sdk-net' Questions - Stack Overflow

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

0
votes
0answers
20 views

Setting AWS Services Lifetime in .NET Core

When adding AWS Services to Services Collection in .NET Core, should I go with the default which well add as a Singleton or should I use the override to set as Transient? For reference, displaying ...
0
votes
0answers
12 views

How to access AWS.AppSyc based GraphQL endpoint using AWS SDK for .Net

I created a AWS AppSync based GraphQL endpoint, which can be accessed by IAM users only. Now I want to consume this endpoint in C#.net. How can I access it via C#.Net. I already tried APIKey ...
2
votes
2answers
79 views

Avoid static value in ASP.NET Core Program.cs

In my CreateWebHostBuilder() method I've added the AWS Systems Manager Parameter Store as an additional source for Configuration Builder: public class Program { public static void Main(string[] ...
1
vote
1answer
53 views

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 ...
0
votes
0answers
5 views

How to connect with AWS S3 using AWSS3Client?

I'm trying to connect with AWS S3 using S3Client and trying to get object. But getting error "A connection attempt failed because the connected party did not properly respond after a period of time, ...
0
votes
2answers
36 views

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, ...
0
votes
0answers
19 views

How to add a file with Chinese characters to amazon S3 using NET SDK

Failed upload file with Chinese character using aws s3 net sdk E:\0 ___1.txt ___2.txt ___½ļУChinese character file name _____a.txt _____b.txt _____.txt(Chinese ...
0
votes
1answer
20 views

How to custom endpoint using aws-sdk net?

Does anyone konw how to add custom endpoint using s3 net API?? Detailhttps://github.com/aws/aws-sdk-net/issues/1283 code Language:C# the sServiceUrl value="192.168.199.216:7480" when i call ...
1
vote
0answers
61 views

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

AWS .NET Core unit test load non-default profile

For development, I have a number of AWS profiles, I use the AWS Profile section in appsettings.json to define the profile I want use: "AWS": { "Profile": "CorpAccount", "Region": "us-east-1" ...
0
votes
1answer
44 views

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 ?
0
votes
1answer
85 views

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 ...
1
vote
3answers
54 views

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 , ...
0
votes
1answer
201 views

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 ...
0
votes
1answer
38 views

Upload file to S3 bucket from web server

How to upload files from the Web server to s3 bucket in .NET? Web server has read and write access to the bucket hence no AWS key is needed. I have previously used S3 SDK and Access Key to upload, ...
0
votes
0answers
16 views

Start or Run ECS or Fargate Task Through the C# Client Sdk

I am trying to run or start an existing task definition within ECS but the documentation is lacking and I cant seem to find any examples online. I have hit a wall and I was wondering if anyone else ...
0
votes
0answers
12 views

.NET AWS SDK - why the published lambda function gets an extra words in its name?

I'm using the publish wizard and after my function is published, I can see it has some extra words in its name, instead of just by myLambdaFunction I can see e.g. myLambdaFunction-AspNetCoreFunction-...
0
votes
0answers
20 views

API SNS Endpoints

Anyone have a decent solution for the Endpoints for SNS in .net core? So that it can still confirm subscriptions but also deal with testing the endpoints easy (without having to recreate that AWS json ...
0
votes
0answers
50 views

AWS Cognito Email Forgot Password Code expires almost immediately

I am working on a Xamarin app that uses AWS Cognito for user authentication. I'm trying to implement a forgot password, and the MFA is setup to use an email confirmation code. However, when I try ...
0
votes
0answers
41 views

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, ...
0
votes
1answer
180 views

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 ...
0
votes
0answers
33 views

Efficiently sending chunked data to Multipart API in ASP.NET

I am trying to upload a large file to AWS S3. So, in the project i am working on, we send large files data in a chunked process and follow below approach to upload every part. And when we get the last ...
0
votes
0answers
22 views

When attempting to get table details, a 404 is returned while on EC2, not locally

When attempting to run: using (var client = new AmazonDynamoDBClient()) { var tableData = await client.DescribeTableAsync("MyTable"); ... I get: fail: Microsoft.Extensions.Diagnostics....
1
vote
1answer
273 views

SignatureDoesNotMatch on S3 PUT Request to Presigned URL

I am generating a presigned URL server-side to allow my client application to upload a file directly to the S3 bucket. Everything works fine unless the client application is running on a computer in a ...
0
votes
0answers
26 views

How to get the thumbnail of the image uploaded to S3 in ASP.NET?

I am trying to upload large images to AWS S3 using the Multipart Upload API. From UI, i am sending the chunks(blob) of an image and when the last part arrives, completing the upload and getting the ...
0
votes
1answer
86 views

How to upload stream of a file to AWS S3 in ASP.NET?

I am very much new to AWS S3 and trying to upload large file by chunked process. From UI, i am sending the file's chunked data(blob) to WCF service from where i will upload it to S3 using MultiPartAPI....
0
votes
1answer
45 views

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"); ...
-1
votes
1answer
20 views

AWS SDK state machine returns response before completing the execution

I have an AWS state machine which calls the lambda function when executed. I used AWS StepFunctions SDK for .Net to execute the state machine. StartExecution method in the SDK return as soon as the ...
0
votes
1answer
60 views

Retrieve IAM Role from Instance Profile for Use With v4 Signer

I'm trying to achieve the same result as the Ruby example code I have using the AWS .NET SDK and am running into trouble querying the instance profile credentials. It seems the .NET SDK hides the ...
0
votes
0answers
9 views

Collect all swagger documents in my VPC on AWS using .Net aws sdk

I have a bunch of containers deployed on fargate in ECS. Some of them have swagger docs. Containers have a service discovery attached. I would like to find all containers that response to a /swagger/...
0
votes
0answers
44 views

In AWS API Gateway how to update API Key's usage?

I have developed custom Lambda authorizer using .NET Core. The handler gets the API-KEY from the Request object and then do the following: 1>Make sure API-KEY exists 2>Get Usage Plan by ID 3>Get ...
0
votes
2answers
280 views

AWS lambda custom authorizer using .NET Core

In AWS API Gateway I am developing lambda function for custom authorizer using .NET Core. The API will receive api-key in query string and my custom authroizer will validate the key. Based on my ...
0
votes
1answer
44 views

.NET Core 2.0 HTTPs timing out on Elastic Beanstalk

After successfully deploying my asp.net core 2.0 API to AWS, using AWS Toolkit for Visual Studio 2017, I can access my api only by HTTP. HTTPS requests fail with a connection timeout. So far I've ...
0
votes
1answer
100 views

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<DBEngineVersion> versions = new List<...
1
vote
1answer
36 views

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(<aws_credentials>, <some_region>); try { rdsClient.CreateDBInstance(...
0
votes
0answers
39 views

Awssdk works on .net dotnetcore (IAM and GatewayAPI) but throws Amazon.CognitoIdentity.Model.NotAuthorizedException on Xamarin Android APP

I have a problem with Awssdk lib from Amazon that I can't understand. I made an easy Class to authorized and obtain resources from Amazon. It uses the configuration from user sessionConfig: clientId,...
0
votes
0answers
90 views

How to find a Archive ID from AWS S3 glacier?

I am trying to retrieve a zip folder from my S3 Glacier storag. The zip i want inside a bucketname > backups > 11-1-2018 > only one file lives here master.meta. So the zip folders has been archived. ...
0
votes
0answers
10 views

How to set SSL Enable for AWSSDK.DynamoDBv2 AmazonDynamoDBClient?

Can someone tell me whether I can set SSL enable when I'm using AWSSDK.DynamoDBv2 for .net. I found the following code from stackoverflow, but I'm NOT able to find "DocumentClient" from the latest SDK,...
1
vote
1answer
222 views

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

Failed to create AmazonGameLiftClient in Unity3d

I use below code to create GameClient in Unity3d: AmazonGameLiftClient client = new AmazonGameLiftClient("accessKeyId", "accessKey", ...
1
vote
1answer
169 views

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 ...
0
votes
0answers
55 views

UnityMainThreadDispatcher.cs performance issues

When profiling our Unity game we can see that ProcessRequests in UnityMainThreadDispatcher.cs is taking up a lot of time especially on older devices. We suspect it is Application.internetReachability ...
1
vote
1answer
1k views

How to get AWS Fargate task instance metadata inside running container?

When a task launches inside of AWS Fargate, it has a task id (guid) that is used for Cloudwatch logs and can be used as a unique "run id". I am launching a .NET core application into a AWS container ...
0
votes
1answer
295 views

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....
0
votes
1answer
42 views

How do I upload single chunk payload with AWSSDK.S3?

I'm writing a .NET application which is sending files to a server using AWSSDK.S3 library. The server that I'm sending files to is an internal solution implementing a subset of Amazon S3 ...
0
votes
1answer
287 views

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....
0
votes
1answer
284 views

Problems with AWS SDK .NET

I am trying to retrieve images from my bucket to send to my mobile apps, I currently have the devices accessing AWS directly, however I am adding a layer of security and having my apps (IOS and ...
1
vote
1answer
204 views

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 ...
1
vote
2answers
263 views

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 ...
0
votes
0answers
56 views

Xamarin AWS S3 iOS download “Error: ConnectFailure (Too many open files)”

I am using the AWS SDK for .NET on Xamarin on an iOS project and am running into difficulties. For the record I am relatively new to Xamarin and mobile development in general. In my actual ...