aws-sdk-net

AWS .NET SDK on Linux

随声附和 提交于 2021-01-29 13:09:35
问题 I am currently moving an ASP.NET application made by a third party from Windows to Linux. I read the documentation and nothing indicates this should be a problem, but sadly var profile = new CredentialProfile(profileName, credentials) { Region = RegionEndpoint.EUWest1 }; var netSDKFile = new NetSDKCredentialsFile(); netSDKFile.RegisterProfile(profile); throws the following exception Unhandled Exception: Amazon.Runtime.AmazonClientException: The encrypted store is not available. This may be

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

余生长醉 提交于 2021-01-29 07:25:42
问题 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 authentication with GraphQL client library. But, not sure how to access same endpoint with AWS SDK. 回答1: There is no SDK available for AWS AppSync - Data Plane API in AWS SDK for .NET. However there is an SDK for Control Plane Operations. In order to use IAM based authorization for calls to AWS AppSync,

Failed to create AmazonGameLiftClient in Unity3d

与世无争的帅哥 提交于 2019-12-23 12:01:19
问题 I use below code to create GameClient in Unity3d: AmazonGameLiftClient client = new AmazonGameLiftClient("accessKeyId", "accessKey", RegionEndpoint.CNNorth1); Above code is the first line in Awake(), no any other leading codes. I get below error: NullReferenceException: Object reference not set to an instance of an object Amazon.CSMSection.get_CSMEnabled () Amazon.Util.CSMConfig.Configure (Amazon.CSMSection section) Amazon.Util.Internal.RootConfig..ctor () Amazon.AWSConfigs..cctor () Rethrow

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

天大地大妈咪最大 提交于 2019-12-11 08:55:02
问题 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: https://docs.aws.amazon.com/cognito/latest/developerguide/cognito-user-pools-import-using-lambda.html I want to use the custom auth flow so that I can return a challenge response for email verification is the users are not email verified from the existing user store. However if I set the

No RegionEndpoint or ServiceURL configured

假装没事ソ 提交于 2019-12-09 14:06:13
问题 I am writing code to upload files to AWS S3 and receiving this exception: AmazonClientException: No RegionEndpoint or ServiceURL configured My code: Console.WriteLine("ready to upload"); AWSCredentials credentials; credentials = new BasicAWSCredentials(accessKeyID.Trim(), secretKey.Trim()); AmazonS3Client s3Client = new AmazonS3Client(accessKeyID.Trim(), secretKey.Trim(), Amazon.RegionEndpoint.USEast1); Console.WriteLine("Successful verification"); Console.WriteLine("Check if the bucket

How to set credentials on AWS SDK on NET Core?

ぃ、小莉子 提交于 2019-11-28 08:58:28
I'm new to AWS SDK and I'm trying to follow the AWS documentation , but gives little to none on what exactly I need to setup. The official docs tell me to add this to the appsettings.json: { "AWS": { "Profile": "local-test-profile", "Region": "us-west-2" } } And then create the client: var options = Configuration.GetAWSOptions(); IAmazonS3 client = options.CreateServiceClient<IAmazonS3>(); This causes an exception to be thrown saying it cannot find the credentials. Where do I put the Api ID and Key? What is this profile? Please, bear in mind I have no preferences on how to set this up. I'm

How to set credentials on AWS SDK on NET Core?

无人久伴 提交于 2019-11-27 02:32:49
问题 I'm new to AWS SDK and I'm trying to follow the AWS documentation, but gives little to none on what exactly I need to setup. The official docs tell me to add this to the appsettings.json: { "AWS": { "Profile": "local-test-profile", "Region": "us-west-2" } } And then create the client: var options = Configuration.GetAWSOptions(); IAmazonS3 client = options.CreateServiceClient<IAmazonS3>(); This causes an exception to be thrown saying it cannot find the credentials. Where do I put the Api ID