Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
    Renato Golia
    @Kralizek
    image.png
    @normj I'm working on a XRay handler for WCF... is it something of interest for you or should I just publish it a repo of my own?
    niraj-bpsoftware
    @niraj-bpsoftware
    Hi Guys, I am working on Xamarin App with AWS Cognito and wants to use CognitoSync. However CognitoSyncManager is missing in AWSSDK.CognitoSync 3.3.1.29, AWSSDK Core (3.3.21.20). Any pointer?
    Norm Johanson
    @normj
    @Kralizek Yes, a WCF handler would be a good thing to have. Use the https://github.com/aws/aws-xray-sdk-dotnet repo for submitting pull requests or opening issues to ask questions.
    Renato Golia
    @Kralizek
    @normj I already added it here https://github.com/Kralizek/xray-wcf
    There are a lot of corner cases left to be handled and x-ray being so strongly focused on REST APIs isn't really helping. Ex. the HTTP method or result of a call made across a raw TCP socket (net.tcp) binding?
    Norm Johanson
    @normj
    @niraj-bpsoftware CognitoSyncManager is still in the package. Can you describe your project setup, like what the target frameworks are. My guess is something about your project is pulling in the .NET Standard version instead of the portable class version which is what we use for Xamarin. The .NET Standard version does not have the CogntioSyncManager.
    Norm Johanson
    @normj
    @Kralizek Cool, I help advice the X-Ray team about .NET but I don't do much with the code itself. That is why I recommend opening issues on their repository. With my limited understanding though you should be able to do non REST things for example there is the System.Data.SqlClient handler.
    Dustin Venegas
    @DustinVenegas
    Is there an AWSSDK component that adds the Secure Token Service (STS) as authorization or authentication middleware in .NET Core?
    Norm Johanson
    @normj
    @DustinVenegas STS vends AWS credentials it doesn't authorize users. What we don't have but I would like for us to look into is use AWS Cognito as part of ASP.NET Core identity and authentication framework
    jamhart
    @jamhart
    I don't want to speak for @DustinVenegas, but I think he's asking this: "I want service "C" to call another service "S" such that C can authenticate via STS and S can verify the authentication. Similar to C calling S3 or SQS. At least that's what I was going to ask about :sparkles:
    niraj-bpsoftware
    @niraj-bpsoftware
    @normj Yes found it in PCL. Thanks.
    Renato Golia
    @Kralizek
    Hi all! I just wanted to drop a line here about a small utility I just created. It allows to use Secrets Manager in the new Configuration stack in .NET Core applications. I will add some samples during the weekend, in the meanwhile you can peak at the code here
    Norm Johanson
    @normj
    @Kralizek Nice!
    Daniel McKnight
    @drmcknight
    I am unable to retrieve a secret from Secrets Manager using the SDK while the CLI works fine. I get “An existing connection was forcibly closed by the remote host”.
    Has anyone been able to retrieve secrets using the .NET SDK?
    Daniel McKnight
    @drmcknight
    Steven Kang from the SDK team responded to my SO post. Upgrading from .NET 4.5.2 to 4.6.1 solved my problem.
    nikhilintegration
    @nikhilintegration

    I am trying to get list of ListTranscriptionJobs or StartTranscriptionJob using Amazon.TranscribeService but getting exception Authentication failed because the remote party has closed the transport stream.

    At the same time from same PC and using same key I am able to access above methods from amazon cli and python code.

    Daniel McKnight
    @drmcknight
    What version of .NET are you running?
    nikhilintegration
    @nikhilintegration
    I tried .net framework from 4.5 to 6.1
    nikhilintegration
    @nikhilintegration
    same code is working fine on other PC's also but throwing Exception on my PC
    Norm Johanson
    @normj
    We pushed out version 3.3.22 of AWSSDK.Core a couple hours ago which should fix this problem. If you updated to 3.3.1.1 of AWSSDK.TranscribeService that was also released today that will pull in the latest AWSSDK.Core.
    nikhilintegration
    @nikhilintegration
    Perfect Norm ....Thanks a lot working fine now
    Norm Johanson
    @normj
    Awesome! Glad to hear things are working for you now, sorry for the inconvenience.
    niraj-bpsoftware
    @niraj-bpsoftware
    Hi, I am kind of lost on serverless. I want to create a cloudformation stack for lambda functions without API Gateway. 1) Can I use AWS SDK project template AWS Serverless Application to upload all functions? 2) How can I achieve automation in .NET environment?
    Norm Johanson
    @normj
    @niraj-bpsoftware I would start with the EmptyServerless. By default the serverless.template will have one function with one using API Gateway as the event source. You can replace the Api event source with other events sources like S3
    niraj-bpsoftware
    @niraj-bpsoftware
    Hi @normj , thank you for reply. I still haven't figured out high-level steps and would be grateful if you can let me know. So I will have .NET SAM EmptyServerless where I will list down all the Lambda functions.
    1) Do I create 3 s3 buckets DEV, QA and PROD where I will publish these functions?
    2) I am planning to input environment name like DEV, QA and PROD to SAM template to create all lambda functions and DynamoDB with name starting as DEV,QA or PROD. That way, I don't need to use Lambda versions and aliases. Is this a good strategy? Is there any simpler, better strategy?
    3)I believe only my Lambda function handler would be going to DEV, QA and PROD environment? Since I will have single SAM and CloudFormation template, how should I manage this template in a Code Source repository like Git?
    niraj-bpsoftware
    @niraj-bpsoftware
    Hi @normj , 4) I am planning to have different Cognito cloudformation template and 2 SAM templates, one for Lambda and one for DynamoDB. I want to make sure that only authorized user of User Pool that is created in Cognito cloudformation template gets access to related Lambda and DynamoDB resources mentioned in 2 SAM templates. I am already exporting userpool and identitypool arn as Outpout in cloudformation template. but not sure how I can make it as input parameter to SAM templates?
    niraj-bpsoftware
    @niraj-bpsoftware
    @normj , sorry for bombarding so many questions. 5) I need to write a policy to restrict DEV lambda functions execution according to authenticated users of a particular environment. For example, DEV identity pool authenticated users can execute only DEV lambda functions. QA identity pool authenticated users can only execute QA lambda functions. PROD identity pool authenticated users can only execute PROD lambda functions. Is this possible?
    Lukas Sinkus
    @LUS1N

    Hi, I submitted a pull request about adding a ServiceCollection extension method for supporting TryAddAWSService (aws/aws-sdk-net#935) Could I get some feedback on it?

    If it's something that you don't want in the library for one reason or another, or maybe I could see the functionality merged in in the future?

    It would be very useful to have this functionality for me personally, so would be good to know if I could potentially get it from the SDK or should I just implement it in my own apps.

    Neil Bostrom
    @Muppets
    Hey guys, I've created an ASP.NET Core Data Protection Repository backed by AWS Secrets Manager for my project. Is this something people would be interested in seeing as a PR? It's an implementation of IXmlRepository taking most of its implementation from AzureBlobXmlRepository
    W2K
    @W2K

    Hello. I have an issue with refreshing tokens on Cognito User Pool. I use the example from documentation to log - in. After a successful login (SessionTokens of user object is filled) I try to refresh the token using :
    user.StartWithRefreshTokenAuthAsync(new InitiateRefreshTokenAuthRequest()
    {
    AuthFlowType = AuthFlowType.REFRESH_TOKEN_AUTH,

                });

    Unfortunately the call results in Invalid RefreshToken exception. This is in my test application, In which i do it immedietly after login, in a production app I will be refreshing the token only if needed.
    Am I doin sth wrong here, or this is a bug ?

    Jarrett Vance
    @jarrettv
    I need to process a CSV file from S3 and convert it to a JSON file and put back into S3. The files could be larger than 16MB so I want to stream this data without saving to disk or holding it all in memory. I plan to do the work with a Lambda. My trouble is the S3 client (and TransferUtility) relies on HashStream which requires prior knowledge of content length. I won't know the length ahead of time. Any suggestions?
    Jarrett Vance
    @jarrettv
    My stream can't be seekable because I don't want to keep the whole thing in memory. I've tried wrapping my stream in both PartialReadOnlyWrapperStream and ReadOnlyWrapperStream
    Jarrett Vance
    @jarrettv
    {System.Net.Http.WinHttpException (0x80070057): The parameter is incorrect}
    Jarrett Vance
    @jarrettv
    working on a solution using multpart upload. however, if my sizes are all greater than 5MB I'm still getting an error Amazon.S3.AmazonS3Exception: Your proposed upload is smaller than the minimum allowed size
    Jarrett Vance
    @jarrettv
    Figured out that with PutObjectRequest, it auto-resets the stream but UploadPartRequest does not
    Jarrett Vance
    @jarrettv
    I got this working! Please improve TransferUtility to support streams of unknown length so you don't have to drop to the low level multipart API :thanks:
    Jarrett Vance
    @jarrettv
    I opened an issue to encourage discussion around .NET 2.1 improvements: aws/aws-sdk-net#971
    niraj-bpsoftware
    @niraj-bpsoftware

    Any tips on how to make lambda handler c# code more efficient from .NET perspective?
    Some of the example questions I am trying to address:
    1) WIll making lambda functions static increase reuse of Lambda context and improve performance?
    2) If I make Functions class ( which has all lambda handlers) singleton class, will it improve performance?
    3) If I make constant/readonly variables and share it across lambda functions, will it improve performance?

    If anyone has any information, please suggest

    Taras Romanyk
    @RredCat
    @niraj-bpsoftware
    1) I don't think that static variables are good way to keep any information. Container of Lambda function could be restarted and you lose your data. AFAIK it must be restarted each 4 hours. Google "cold start" for more information.
    Try to use key-value storage (like Redis) to persist shared information. But in this case it will not be REST architecture (REST should not keep a client state on the server, be stateless).
    2) It doesn't look as good idea also. At least, you will have to think about locking and state sharing between calls in this case. Make a test and write your results. It is interesting.
    3) I guess - no. Changes will be unseen and doesn't worth efforts. But I am doing like for simplifying development process.
    freseco
    @freseco
    Hi, I would like to build aws sdk for Unity but it shouldn't use the google class GoogleCloudMessaging (AWSUnityGCMWrapper), I only want it to use S3 service without authentication. How could I have this?
    Jez Reel Maghuyop
    @jezguitarist30

    Hi guys, I'm new to AWS and I've been trying to fix an issue I have with the appsettings.json... been looking for a fix for 3days now ..

    I just wanted to know if there is a way to specify which Appsettings to use when deploying a .Net Core application? I have (Dev, Staging and Production) I'm using the Publish to Elastic Beanstalk in my Visual Studio 2017.

    Jez Reel Maghuyop
    @jezguitarist30
    anyone deployed IdentityServer4 on AWS?
    Stdrovia Blackburn
    @stdrovia
    @W2K Did you ever resolve that invalid token exception?
    Kevin Amditis
    @EliteCAD
    having a problem trying to implement the new CognitoAuthentication Extension in my Standalone Unity Game. If i could get someones attention who is familiar with the subject I would greatly appreciate it. This has been very frustrating over the last week
    taylorECD
    @taylorECD
    I am attempting to follow the "authenticate with SRP" flow for AWS Cognito user pool authorization for .NET in my Unity 2018.2.0 project. I have all the AWS resources in my project and get no errors in VS2017 or Unity. Everything up to the call for await StartWithSrpAuthAsync() works fine. Calling this function however results in no exceptions, results, or errors and never makes it to the next line of code. I cannot find anyone else experiencing this issue. This seems exclusive to Unity and the newer CognitoAuthenticationExtension Library for .Net. The code I'm using was found under "Authenticating with Secure Remote Protocol (SRP)" from Amazon documentation found at: https://aws.amazon.com/blogs/developer/cognitoauthentication-extension-library-developer-preview/
    taylorECD
    @taylorECD
    Are there any plans on adding the CognitoAuthentication extension to the Unity packages?