Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
    incolor2
    @incolor2
    Here is the whole code
    incolor2
    @incolor2
    I should maybe also say it works fine with the "raw stringy concat" model
    incolor2
    @incolor2
    well this place was dead. i guess i will try my luck on github
    Victor Frank
    @vfrank66
    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();
                ConfigureServices(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<Logger>();
                services.AddSingleton<IAmazonS3>(s3 => new AmazonS3Client(Amazon.RegionEndpoint.USEast1));
                services.AddSingleton<IAmazonBatch>(batch => new AmazonBatchClient(Amazon.RegionEndpoint.USEast1));
                services.AddTransient<ApplicationService>();
            }
    prodigga
    @prodigga
    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.
    Gkanda80
    @Gkanda80
    Hi, is it possible to build an app to manage s3 for uploading file using username and password instead of access id and key?
    mj-mon
    @mj-mon
    @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.
    gopinathrimc
    @gopinathrimc
    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
    @jobairkhan
    @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
    gopinathrimc
    @gopinathrimc
    @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
    @shawnallen85
    @sstevenkang What is the process for approving pull requests?
    Royi Namir
    @RoyiNamir
    @Royi_Namir_twitter
    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" ?
    image.png
    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
    @jetstreamin
    anyone have an example of using AWSSDK.AWSHealth in c#?
    Alexey Ashurok
    @aotd1
    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.
    klaytaybai
    @klaytaybai
    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
    @aotd1

    @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.

    It's because signing request don't use TrimEnd(), but CanonicalizedResource use.
    So we send http://blablabla/?key=test, but sign
    http://blablabla/?key=test%20
    klaytaybai
    @klaytaybai
    @aotd1, let's move this conversation back to the issue. Could you please provide a link to a repro solution so I can see if there are other configurations that may be involved? I have been able to get this request to work consistently using the same style of parameters (i.e. space at end of key).
    gopinathrimc
    @gopinathrimc
    is there any sample out there for sharing DB Connection between lambda execution?
    John Harcourt
    @fdb-jharcourt

    I'm receiving S3 errors when running a project in Visual Studio 2019, but which works just fine in VS 2017. The error happens when instantiating an AmazonS3Client :

    AmazonS3Client s3Client = new AmazonS3Client(RegionEndpoint.USEast1);

    and getting the error:
    System.ArgumentException HResult=0x80070057 Message=An item with the same key has already been added. Key: System.Collections.Generic.Dictionary2[System.String,System.Collections.Generic.Dictionary2[System.String,System.Object]] Source=System.Private.CoreLib StackTrace: at System.ThrowHelper.ThrowAddingDuplicateWithKeyArgumentException[T](T key)

    Matt Perry
    @dillorscroft
    Anyone know where there are any samples for .net core to pretty much any of the services? Struggling to find examples, especially to Amazon Connect.
    Michael Jan
    @mikaljan
    @dillorscroft same here, I tried looking for examples for .net core and pretty much gave up, the support is very poor for .net core in regards to aws. I ended up using Xamarin with Azure instead.
    klaytaybai
    @klaytaybai
    @dillorscroft, what are you hoping to do with Amazon Connect? If we can get more customer feedback about which services and features need more documentation and samples, we can try to make those a higher priority.
    YoungHappy
    @yh371174229
    Does anybody know how to solve uploading files with Chinese characters name?When I upload them ,I will get a exception SignatureDoesNotMatch.
    YoungHappy
    @yh371174229
    using aws-net-sdk makes me so sad
    Ahmed Zahran
    @azahran007
    Is there active development for the .Net SDK? Some reported issues on the GitHub repository are so old and with little response. That is concerning.
    ayotise
    @ayotise
    Does anyone have any working sample for the KMS (Kafka) configuration using the .Net SDK?
    Phillip Haydon
    @phillip-haydon
    hello
    anyone know what the difference between AWSSDK.CloudSearch and AWSSDK.CloudSearchDomain is?
    klaytaybai
    @klaytaybai
    @phillip-haydon thanks for the feedback on this. We'll get it updated. AWSSDK.CloudSearch is the configuration API for setting up CloudSearch domains. AWSSDK.CloudSearchDomain is the API for both document management (adding, deleting, replacing) within your domain and searching your domain. You can see more details by looking at the code or referencing the service's documentation here: https://docs.aws.amazon.com/cloudsearch/latest/developerguide/api-ref.html. I updated your GitHub issue too.
    qiuxinyidian
    @qiuxinyidian
    after installing AWSToolkitForVisualStudio2010-2012_tk-1.10.0.7 ,create a new project s3 example by vs2010 ,no AWSSDK.core AWSSDK.S3 find
    my computer os is win 10
    Jacob Procee
    @Procee
    I'm kind of new to AWS but I'm trying to get Authentication working as described on this page: https://aws.amazon.com/blogs/developer/introducing-the-asp-net-core-identity-provider-preview-for-amazon-cognito/ But when executing the CreateAsync call I'm getting an OperationCancelledException. I'm using Rider on Arch Linux
    qiuxinyidian
    @qiuxinyidian
    how to build AWS SDK for .NET Net35 ,after importting it into VS2019, Net45 project works well,but NET Net35 seems miss System.dll and so on lib, which also cannot delete change、modify。so how to build NET Net35 project
    qiuxinyidian
    @qiuxinyidian
    does AWS SDK for .NET contains AWSSDK.CoreCLR project ?
    qiuxinyidian
    @qiuxinyidian
    can anyone help me ?
    how to build aws-sdk-net ?
    Sazid Hossain Banna
    @knightfall
    This chat looks dead
    but just in case
    Wondering about how to implement SQS
    Om Prakash
    @prakash32596
    Using AWS elastic beanstalk we r trying to upload file . But It's Throwing exception.
    {
    "Message": "An error has occurred.",
    "ExceptionMessage": "Access to the path 'C:\inetpub\wwwroot\assets\ABC195415319.txt' is denied.",
    "ExceptionType": "System.UnauthorizedAccessException",
    }
    jjfmarket
    @jjfmarket
    Hello friends!
    Ameer Thasthahir
    @ameer-thasthahir
    May I know the average response time of AWS SDK API for .Net?
    ApocDev
    @ApocDev
    How good is your network connection?
    There's very little actual overhead in the SDK. It's mostly just wrapping REST API calls.