Where communities thrive

  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
Repo info
    Omar Himada
    it is apparent that AWSSDK works when deployed to AWS, and Azure, but when deployed to an on-premises Windows Server 2019 it craps the bed
    it is indeed making calls to, i confirmed this with a packet trace
    EC2Launch apparently configures the routing, but i don't want to turn my own Windows Server on-premises box into an EC2 instance just to get cognito authentication to work
    Jesse Ehrenzweig

    Question for you fine folks: I'm writing a .NET Core 3.1 console app (C#) with a custom DynamoDB property converter that implements Amazon.DynamoDBv2.DataModel.IPropertyConverter. It works as expected when I tag my POCO class using Amazon.DynamoDBv2.DataModel.DynamoDBPropertyAttribute:

    namespace MyStuff
        using System;
        using System.Collections.Generic;
        using Amazon.DynamoDBv2.DataModel;
        public class Dashboard
            public List<Widget> Widgets { get; set; }

    Is it possible to wire up the custom DynamoDB property converter without tagging up my POCO class property using the DynamoDBProperty attribute? I've seen some code snippets that add mappings via the context, but I've been unable to get any of them to work.

    Anyone here uses aws transcribe with .NET core?
    Mark Davies

    Hey, hoping you can help - I've cloned the repo from master and am getting the following exception when running the tests:

    The value of the property 'type' cannot be parsed. The error is: The type 'AWSSDK_DotNet.IntegrationTests.Tests.DynamoDB.DynamoDBTests+Employee, AWSSDK.IntegrationTestUtilities.Net35' cannot be resolved.

    Is there a Getting started guide I can refer to

    1 reply
    Hi - I've got a weird issue with the Lex API calling from dot net, wondering if anyone has ever troubleshooted something similar;
    I'm calling AmazonLexClient.PostText. On my debug environment and on one server this works fine. On another server, every call to PostText is doubled. It makes two almost simultaneous requests. I'm not calling PostText twice because I've stuck logging all around it. I've confirmed that they are two full requests by checking with Fiddler, and I can see both going through. Lex throws a wobbly because it has two requests at the same time, and sends me a 409 conflict exception, which is the response that comes back to my code, even though one of the requests is actually succesful. Any ideas?
    1 reply
    Chase Q. Aucoin

    Hey room, found a pretty big bug in the AWS SDK. The model generator is not correctly handling nullable types across all products. This could be creating transient errors or silent failures on your calls into the SDK across the entire platform. Just trying to get more visibility on it.


    Hi - need to unzip an archive in s3. The file size will be within lambda limit of 500MB. Can some one point how to unzip the file from source bucket to another destination bucket in s3.

    Hello - I'm using the CognitoIdentity SDK, I do not see where I can set the expiration of AWS Credentials.

    I am using a two step process:

    I can only set the expiration on the OpenIdToken (1st method), but do not see where to set the expiration for the credentials method (2nd method)

    Thank you in advanced for suggestions.

    Hi there! I've been having some difficulty getting my AWS program to work. I'm using S3 and getting data from there, but every time I run it, it brings up issues of a Null Reference Exception in places like this: Amazon.Runtime.Internal.UnityMainThreadDispatcher+<InvokeRequest>d__7.MoveNext ()
    Any advice?
    Jason Elie Bou Kheir

    Adding onto the weird issues with S3...

    I'm trying to get it working on android for Unity 2019.4 -- running into a NullReference in constructing InternalLog4NetLogger. I use log4net for another dependency, wondering if anyone has any tips. Here's the stack trace:
    2020/11/19 08:59:48.166 8135 8160 Error Unity NullReferenceException: Object reference not set to an instance of an object.
    2020/11/19 08:59:48.166 8135 8160 Error Unity at Amazon.Runtime.Internal.Util.InternalLog4netLogger..ctor (System.Type declaringType) [0x00000] in <00000000000000000000000000000000>:0
    2020/11/19 08:59:48.166 8135 8160 Error Unity at Amazon.Runtime.Internal.Util.Logger..ctor (System.Type type) [0x00000] in <00000000000000000000000000000000>:0
    2020/11/19 08:59:48.166 8135 8160 Error Unity at Amazon.Runtime.Internal.Util.Logger.GetLogger (System.Type type) [0x00000] in <00000000000000000000000000000000>:0
    2020/11/19 08:59:48.166 8135 8160 Error Unity at Amazon.Util.Internal.AmazonHookedPlatformInfo..cctor () [0x00000] in <00000000000000000000000000000000>:0
    2020/11/19 08:59:48.166 8135 8160 Error Unity at Amazon.UnityInitializer.Awake () [0x00000] in <00000000000000000000000000000000>:0
    2020/11/19 08:59:48.166 8135 8160 Error Unity at UnityEngine.GameObject.AddComponent[T] () [0x00000] in <00000000000000000000000000000000>:0
    2020/11/19 08:59:48.166 8135 8160 Error Unity at Amazon.UnityInitializer.AttachToGameObject (UnityEngine.GameObject gameObject) [0x00000] in <00000000000000000000000000000000>:0

    1 reply
    Philip Pittle
    Happy 2021 everyone
    This place seems kind of dead is there a better place to go for questions?
    I was wondering what role "aws-lambda-tools-defaults.json" plays in the Serverless Core template? I have region set but its not getting it instead it wants me to put it in the appsettings.
    Do I need it in both?
    Philip Pittle
    I'm pretty sure the aws-lambda-tools-defaults.json is mostly used by the AWS Toolkit for Visual Studio tooling; it shouldn't be consumed by your application. defaults.json remembers the last place you deployed during development. appsettings.json is meant to be consumed by your code. So if you have a lambda function that writes to a SQS queue, your code needs to know which region to look for that queue. For testing, you may configure your local tooling to deploy to US-WEST-2, that would be saved to defaults.json, but your application needs to connect to a queue in US-EAST-1, so the appsettings.json would have us-east-1.
    Hi need help in accessing encrypted bucket elements c# sdk
    Srini Vasudevan

    Hi Guys, Im having some issues with setting up a dotnet server that can verify jwt generated from aws cognito.

    I am using this sample as my guide. https://aws.amazon.com/blogs/developer/introducing-the-asp-net-core-identity-provider-preview-for-amazon-cognito/

    this is what I have done so far

    1. Create a new cognito User Pool
    2. Created two App Clients on the UserPool (Both clients are using Client Credentials OAuth Flow as I am after machine to machine auth)
    3. Used the App Client on the server that will be used to verify the JWT
    4. Using Postman, and hit the /oauth2/token endpoint using my app client. I Am using grant_type as client_credentials and passing in basic auth. (client id and client secret). I have successfully received an auth token
    5. Use that token in my auth header to my server. It is passed in as bearer <token>
    6. I get back a 401 Unauthorized on my protected resource.

    I have tried to use both the app clients client id and secret to generate a JWT and both of them say unauthorized. Also I have not created any custom authorization policies. I am only after a authenticated resource at this point before I look at authorization

    Srini Vasudevan
    Ive got it working. I found another link on setting up the authentication using jwt bearer token.
    I didnt have any luck using thr cognito extensions package
    Janahan Balasingham
    I'm looking for some help on authentication for older .NET core framework. An old project is running in ASPNETCore.MVC version 1.1.3 using Net Framework 4.5.2. The AWSSDK.Extensions.NETCore.Setup is only compatible with .NET Standard 1.3 and above. I can't find any instructions on how to authenticate in previous versions.
    Anthony Keller

    Hi. I'm getting this error attempting to execute dotnet test in a Docker build process - Unable to get IAM security credentials from EC2 Instance Metadata Service.

    I'm running inside of Visual Studio and the docker-compose.override.yml contains:

          - ${USERPROFILE}/.aws:/root/.aws
          - ASPNETCORE_ENVIRONMENT=Development
          - AWS_REGION=ap-southeast-2
          - AWS_PROFILE=default

    The credentials from my PC are being linked as a volume in the Docker container.

    The Dockerfile command that is failing is:

    RUN ASPNETCORE_ENVIRONMENT="IntegrationTesting" \
      AUTOGURU_IS_DOCKER="true" \
      dotnet test "../Tests/${SERVICE_NAME}.IntegrationTests/${SERVICE_NAME}.IntegrationTests.csproj" -c Release --no-restore -nowarn:CS1591

    The test is attempting to retrieve a parameter from the SSM Parameter Store using AmazonSimpleSystemsManagementClient which is being instantiated new AmazonSimpleSystemsManagementClient(RegionEndpoint.APSoutheast2).

    If I skip the dotnet test step in the Dockerfile, when the containers start they seem to work correctly.

    I created an IAM user with read only access to SSM and passed the AWS_ACCESS_KEY_ID and AWS_SECRET_ACCESS_KEY into the dotnet test command and it worked. I want to avoid storing these values in code.

    Any ideas?

    Michael Vivirito
    Hi everyone. I am having some trouble with a windows service I've created. It is supposed to put some files in an s3 bucket. It works on my local machine but when I place on a windows ec2 instance the files don't get put Into the bucket. I have tested the cli and I have the right permissions. Any tips I'm not sure what to do
    Hi all - I'm new to the AWS world, but I've been tasked with figuring out how to connect our existing Xamarin Forms application to AWS AppSync for real time sync --- but I cant seem to get anywhere with the existing documentation, I get pointed to AWS Amplify but I don't need access to other services, just AppSync. Is it possible to build XF implementations or is it still so new that it hasn't been developed yet?
    Hi, I am trying to Implement SSO in my Asp .NET core web application with Amazon Cognito. I have the SAML from cognito and planning to use it but not sure how my web application with the provided SAML(metadata) will connect to Amazon Cognito and the SSO wil work. Also my web application will be hosted in a windows server. Any quick help or guidance will be deeply appreciated.
    Irene Kors

    Hello AWS .NET community! .NET SDK team is conducting a survey to learn about your recent experiences working with the AWS SDK for .NET and its learning resources. Please help us improve the SDK by taking a few minutes to answer the survey questions.


    Hey all, i'm having a real nightmare getting cognito working with my ALB, there are so many variations of the documentation. I've attempted an ALB solution with rules, tons of startup.cs configurations, and many combinations of callback url permissions in the user pool... Could anyone have a brief discussion with me to see if it is a blatant error on my end. It would be much appreciated.
    I can't seem to find anything on Amplify Datastore for .net. Would someone be able to point me in the right direction?
    Don't know if anyone else has run into this issue, I'm using the SDK in a class library to do the STS AssumeRole needed when using the Amazon Selling Partner API, it works fine when testing in a .net core cli app as part of the same solution as the class library, and if I create a new .net core 2.2 CLI app and pull the class library in using nuget it works, but when I add the library through nuget to an already existing .net core 2.2 CLI app it starts trying to read region data from and app.config/web.config (and failing as they don't exist) even though I'm passing in the region when creating the AmazonSecurityTokenServiceClient from what I can tell its down to the constructor for the AmazonSecurityTokenServiceConfig which tries to always guess a region, but has no way to bypass that and pass one in through the constructor. I've posted on Stack Overflow here: https://stackoverflow.com/questions/68472427/system-invalidoperationexception-when-using-amazonsecuritytokenserviceclient-in
    I have an app that I am working on. I initialize AmazonAppSyncClient instance. I then use GraphQL for .NET and initialize a GraphqlApi instance. I can then use that GraphqlApi instance to SendQueryAsync. This works. I can query an amplify model and get a successful response. When I try to use SendMutationAsync, however, I get 'Not Authorized to access createObject on type Object'.
    I am making an iOS app in parallel and using the same credentials, I can perform queries and mutations. In the ios app, Amplify CLI codegen defines the schema and adds auth rules as follows.
    model.authRules = [
    rule(allow: .private, operations: [.read]),
    rule(allow: .groups, groupClaim: "cognito:groups", groups: ["admin"], operations: [.read, .create, .update, .delete])
    There is nothing like this in my .Net application, which i think is the reason why I can't perform mutations. So my questions are 1) Is there codegen for .Net? And if so how do I use it? 2) How do I define the schema for a model and set those auth rules?
    Irene Kors
    Hello AWS .NET community! AWS .NET team is conducting a user study for the AWS Toolkit for Visual Studio. If you'd like to participate, please email aws-sdk-pm-team@amazon.com to express your interest.
    Brett Young
    Hey there - first time caller. Got a problem with .Core and Cognito. AmazonCognitoIdentityProviderClient.InitiateAuthAsync throws an error from Core of "Could not load type 'Amazon.Runtime.Internal.InvokeOptions' from assembly 'AWSSDK.Core, Version=". Been banging our heads on this for a while now. Thought it was a reference problem but it doesn't seem to be. Would love some help.
    Brett Young
    figured it out. my work is an add-in for autodesk revit and i was getting a runtime dll conflict because revit also uses awssdk.core.
    Scott Lewis
    Hello - Anyone know why Amazon.SimpleEmailV2.AmazonSimpleEmailServiceV2Client - ListContactsAsync method returns "The request signature we calculated does not match the signature you provided."? Every other method in that namespace seems to work except for ListContacts. It does work online in the AWS CloudShell. I can't find anything documented about it needing a specific permission? Any ideas? Thank you
    Hello everyone,
    I wants to integrate AWS opensearch formerly known as elastic search in .net 5, is there any step by step guide?
    Has anyone here used the SDK to change routing control states for the Route53 Recovery Controller? I am trying use it and am having trouble getting it to work. I am unsure how to configure the client to add the data plane endpoint and the region from the list of cluster endpoints to make the request. I get this error 'The requested name is valid, but no data of the requested type was found.' I can add more detail as needed. I have asked this same question on StackOverflow: https://stackoverflow.com/questions/71042116/aws-route53-recovery-controller-error-when-getting-or-updating-the-control-state
    Jonathan Carter
    Hello! Has anyone successfully been able to set a friendly name with the SimpleEmailV2 package? I tried to set my SendEmailRequest.FromAddress to a value like "John Doe <johndoe@example.com>", but it's not being displayed as "John Doe" when it hits my inbox.
    Ruben Bartelink

    I'm using a current version of the .NET AWSSDK.DynamoDBv2 nuget.

    I'm using preconditions on PutItem and UpdateItem requests.

    Two questions:

    1. Given I expect and am ready to handle an anticipated conflict, is there any way to avoid the ConditionalCheckFailedException being thrown?
    2. Given the data has already been retrieved in order to run the condition check, is there any way to obtain it when I know there is a conflict (I'd examine it and use it to deduplicate my request without incurring another roundtrip). Or is this a truly hard-baked service-side limitation (the docs dont say for sure its not possible but don't suggest this is catered for either)
    Ruben Bartelink
    (reads :point_up: and realises this is /dev/null and I'm probably just Screaming In The Cloud here - will repost to stack overflow in a bit and paste the links to that instead)
    Ruben Bartelink
    reworded the above as: https://stackoverflow.com/questions/71622525/dynamodb-conditionalcheckfailedexception-obtaining-the-item-content-that-faile - would very much appreciate any leads as its costing an extra roundtrip compared to what I was able to achieve on Azure CosmosDB
    tushar pandey
    Hey Guys. I am beginner, building a self project. I need help taking Redis Cluster Backup through Elasticache API. Please help!
    Hi. It's possibile to use AWS SDK with .Net 6 ?
    Pawan Sharma
    How to configure SQSClient to similar to withMaxConnections(v1 sdk) for use with multi thread in v3.3?
            AmazonSQSConfig amazonSQSConfig = new AmazonSQSConfig();
            amazonSQSConfig.MaxConnectionsPerServer = 10;