Where communities thrive

  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
Repo info
    Niraj Bhatt
    solved above issue by making sure to create new CognitoAWSCredentials instance for each CognitoSyncManager
    Niraj Bhatt
    I am facing more or less similar issue for unauthenticated call.
    It seems during multiple login user, it tries to access previous user identity data that was cached. So I think I need to clear credentials
    I have found 3 methods of CognitoAWSCredentials to clear cache:
    Only Clear seems to work. However I have read documents and it mentions that we should use ClearCredentials or ClearIdentityCache.
    Please let me know if anyone has faced this issue
    Sachin Dole
    Hello, I have a question. I need to sign requests using SigV4 in a Lambda function, on my workstation and in CodeBuild. The mechanism to obtain credentials varies a bit in each environment. My question is, how can I get access to credentials without writing environment aware code. In other words, is there any method or property(ies) in the SDK that will give the access key, secret key and session token? Thanks! I appreciate it.
    Hi guys, I'm trying to integrate AWS API to my asp.net mvc4 project and I'm not sure what type of credential I should use. Manually i log-in to AWS using the third-party app (okta), so I don't have credentials directly from AWS. Can I get\generate access key or smth else for login throught API ? Or I should ask my AWS admin anyway to provide some creds ?
    hello, may I ask whether Visual Studio Community for Mac version supports AWS Toolkit? If yes, how to install it? Thanks.

    I am developing an app with UNITY 2017.2.3f1 and the aws-sdk-unity_3.3.396.2
    S3 works fine which means that many elements are OK. The code works fine for MAC and Android
    However when I try to post an element on DynamoDB with the following code

    var rec = new Document();
    rec["id"] = 1;//recName;
    rec["Lat"] = 2;//Input.location.lastData.latitude;
    rec["Long"] = 3;//Input.location.lastData.longitude;
    rec["Time"] = 4;//recTime;

                table.PutItemAsync(rec, (r) => {
                    Debug.Log("\n rec has been poted " + r.Exception + " *222444*****************");
                    textnotification.text = "Archivo subido con éxito";
                    Invoke("cleanText", 3);
                    butSender.interactable = false;
                    butPlayer.interactable = true;
                    butRecorder.interactable = true;
                    hasnotbeensent = false;

    it complains with the following error.

    System.InvalidOperationException: No converter configured for type System.String
    at Amazon.DynamoDBv2.ConverterCache.GetConverter (System.Type type) [0x00000] in <filename unknown>:0
    at Amazon.DynamoDBv2.DynamoDBEntryConversion.ConvertToEntry (System.Type inputType, System.Object value) [0x00000] in <filename unknown>:0
    at Amazon.DynamoDBv2.DocumentModel.UnconvertedDynamoDBEntry.ConvertToAttributeValue (Amazon.DynamoDBv2.DocumentModel.AttributeConversionConfig conversionConfig) [0x00000] in <filename unknown>:0
    at Amazon.DynamoDBv2.DocumentModel.Document.ToAttributeMap (Amazon.DynamoDBv2.DynamoDBEntryConversion conversion, IEnumerable1 epochAttributes) [0x00000] in <filename unknown>:0 at Amazon.DynamoDBv2.DocumentModel.Table.PutItemHelper (Amazon.DynamoDBv2.DocumentModel.Document doc, Amazon.DynamoDBv2.DocumentModel.PutItemOperationConfig config) [0x00000] in <filename unknown>:0 at Amazon.DynamoDBv2.DynamoDBAsyncExecutor+<>c__DisplayClass1_01[T].<ExecuteAsync>b__0 (System.Object state) [0x00000] in <filename unknown>:0 * *

    I think it is a Bug but I am not sure.

    Hippie Techie

    Hello fellow devs,

    Am facing a problem with the delimiter parameter of the request object for listing objects in the s3 bucket.

    it returns NOT IN results instead of in.

    Anyone faced this problem before can lead me to another possible direction to solve this?

    Hippie Techie
    Jan Chvojka

    Hi all, I have one question and I can't find answer for it (SO, google, numerous tries my own code). How can I instantiate AmazonCognitoIdentityProviderClient?
    I'm using .net core 2 and the code is really simple:

    var credentials = new EnvironmentVariablesAWSCredentials();
    CognitoProvider = new AmazonCognitoIdentityProviderClient(credentials, RegionEndpoint.EUCentral1);

    But AmazonCognitoIdentityProviderClient throws exception
    System.IO.FileNotFoundException: 'Could not find file 'C:\Users\USER\.aws\credentials'.'
    I know what it means, but why is it throwing that exception? I want to use environment credentials and they are all right (EnvironmentVariablesAWSCredentials doesnt complain and Environment.GetEnvironmentVariable on AWS_ACCESS_KEY_ID and AWS_SECRET_ACCESS_KEY returns correct values).
    I can provide the file on my local environment but I can't do that on production. How am I suppose to pass credentials to cognito client? Am I missing something?

    Can new AmazonS3Client(); use configurations from appsettings.json ?
    I have in my appsettings.json: "AWS": { "Region": ..., "AccessKeyId": ..., "SecretAccessKey":... }, but I cannot create a s3 client
    nvm...this is not a feature
    Hi All, I'm trying to work with Glacier to files from a vault with thousands of files.. not ideal, but that's the job..
    I'm using the ArchiveTransferManager with DownloadAsync
    and as you can imagine 4+ hours per file is too slow.
    Is there a way to initiate the DownloadAsync method using the Expedited Tier?
    Omer Katz
    Hi guys
    I'm trying to list all the tables of a dynamodb instance using the sdk but I'm getting 'AmazonDynamoDBClient.ListTables()' is inaccessible due to its protection level
    This directly contradicts the documentation
    I'm using dot net core 2.1
    On AWS lambda
    Norm Johanson
    @thedrow For .NET Core you need to use the async version of the API because that is all the underlying HttpClient for .NET Core supports.
    @jaeckyl Can you open a GitHub issue for the expedited tier so we can add the feature request to our backlog. The ArchiveTransferManager high level abstraction hasn't been updated for that Glacier feature
    Hi guys, i am trying to do a QueryAsync in DynamoDb with a bool filter. I am getting no result back from the sdk. Are there some problem with filters on bool values?
    For other values it works
           opConfig.QueryFilter =
                new List<ScanCondition>
                    new ScanCondition("Status", ScanOperator.Equal, 10),
                    new ScanCondition("Status", ScanOperator.Equal, 4),
                    new ScanCondition("PlanType", ScanOperator.Equal, "SML"),
                    //new ScanCondition("NormalRoadConditions", ScanOperator.Equal, true)
    The last one gives 0 result count even thou there should be results
            List<string> partionKeys = new List<string>() { "52049E96-14FA-4960-B3CE-F7400C4AC6CD", "01F3DF08-4D0F-4E92-BBE3-8E46BA77E73B", "52117BC1-7256-4C36-868E-465DB2178286" };
            if (!string.IsNullOrEmpty(TableName))
                AWSConfigsDynamoDB.Context.TypeMappings[typeof(Plan)] = new Amazon.Util.TypeMapping(typeof(Plan), TableName);
            var start = DateTime.Now;
            int totalCount = 0;
            var config = new DynamoDBContextConfig { Conversion = DynamoDBEntryConversion.V2 };
            var client = new AmazonDynamoDBClient(new StoredProfileAWSCredentials("sandbox"), RegionEndpoint.EUWest1);
            DbContext = new DynamoDBContext(client, config);
            var opConfig = new DynamoDBOperationConfig { IndexName = "OrganizationId-Created-index" };
            opConfig.QueryFilter =
                new List<ScanCondition>
                    new ScanCondition("Status", ScanOperator.Equal, 10),
                    new ScanCondition("Status", ScanOperator.Equal, 4),
                    new ScanCondition("PlanType", ScanOperator.Equal, "SML"),
                    //new ScanCondition("NormalRoadConditions", ScanOperator.Equal, true)
            foreach (var partionKey in partionKeys)
                var result = Program.DbContext.QueryAsync<Plan>(partionKey.ToLower(), opConfig);
                while (!result.IsDone)
                    var plans = result.GetNextSetAsync().Result;
                    totalCount += plans.Count;
    Here is the whole code
    I should maybe also say it works fine with the "raw stringy concat" model
    well this place was dead. i guess i will try my luck on github
    Victor Frank
    Has anyone used DI for aws lambda functions? I was wondering if there was a recommended way. currently i am just using the built in dotnetcore DI
    public async Task<string> FunctionHandler(S3Event evnt, ILambdaContext context)
                var serviceCollection = new ServiceCollection();
                // service provider 
                var serviceProvider = serviceCollection.BuildServiceProvider();
                // entry to run app 
                var service = serviceProvider.GetService<ApplicationService>();
                return await service.LocalFunctionHandler(evnt, context);
            public void ConfigureServices(IServiceCollection services)
                services.AddSingleton<IAmazonS3>(s3 => new AmazonS3Client(Amazon.RegionEndpoint.USEast1));
                services.AddSingleton<IAmazonBatch>(batch => new AmazonBatchClient(Amazon.RegionEndpoint.USEast1));
    Hi there, I just post on Github regarding Unity support. With Unity supporting a newer version of Mono (finally), I was wondering if it would be possible/easy to get the aws-sdk-net running in Unity. I had a look, and it looks like the biggest blocker is the use of System.Configuration which is not supported, but should otherwise be fine, right? :)
    Anyway, I am trying to decide a backend, and I love AWS's offerings but the Unity SDK being so outdated is a real bummer. Google/Google Cloud has recently partnered with Unity to provide a complete multiplayer solution for unity. I think AWS can easily rival them.
    Hi, is it possible to build an app to manage s3 for uploading file using username and password instead of access id and key?
    @Gkanda80 not sure you can do it using IAM accounts. What are you trying to do? Perhaps you can tie usernames and passwords to keys within your app?
    Is anyone else having problems uploading pdf docs to s3? It seems that when the key ends with .pdf PutObject doesn’t return ie it hangs. If I change the extension to .txt or -pdf it works perfectly. I’m guessing the api is doing something extra when it detects the application/pdf ContentType.
    Hey, I have created a user pool on Cognito and am able to authenticate the user using the _signInManager.PasswordSignInAsync() in a .netcore app that has both razor pages and API. Now i want to access the ID token so that i can pass it for any subsequent calls to the API from the client. once i have signed in how to i access the ID token?
    M J Khan
    @gopinathrimc I am trying the same thing
    var token = await HttpContext.GetTokenAsync("access_token").ConfigureAwait(false);
    var token1 = await HttpContext.GetTokenAsync("id_token").ConfigureAwait(false);
    var accesToken = Request.Headers["Authorization"];
    var refreshToken = await HttpContext.GetTokenAsync("refresh_token").ConfigureAwait(false);
    return null
    @jobairkhan dont know if the approach am taking is correct, but what i ended up doing is after _signInManager.PasswordSignInAsync() , i made a separate call using SrpAuth to get to the token.
            AuthFlowResponse authResponse = await user.StartWithSrpAuthAsync(new InitiateSrpAuthRequest { Password = inPassword });
            string idToken = authResponse.AuthenticationResult.IdToken;
    Shawn Black
    @sstevenkang What is the process for approving pull requests?
    Royi Namir
    Hi. I'm currently sending a message to an SQS queue with success.
    However I've noticed that when I GET/read a message , it says "List of messages" ?
    In other words , how come I send a single message but it shows me a List of messages when I want to get a message .....?
    Mike Mahon
    anyone have an example of using AWSSDK.AWSHealth in c#?
    Alexey Ashurok
    Hi, is any maintainers here? Issue #1196 was closed, but the problem still exists.
    We reword it to match root case better but have no response from @klaytaybai =(
    Can someone reopen it?
    There is not possible to make PutObjectRequest with key ending with whitespaces.
    Hi @aotd1, both PutObject and GetObject allow keys with whitespaces--as they should. Using a VersionId with whitespace at the end is not supported by the SDK because it is not supported by the S3 service. If we were to reopen this, it would probably be very low priority for some time unless the service started supporting VersionIds with whitespace at the end.
    Alexey Ashurok

    @klaytaybai VersionId with whitespace is only our problem, I understand it.
    The common problem is that this code crashes too:

    var client = new AmazonS3Client(bucketRegion);
    var request = new PutObjectRequest
                        Key = "test ",
                        BucketName = "bucket",
                        ContentBody = "test"
    using (var response = await client.PutObjectAsync(request))

    with SignatureDoesNotMatch.