Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
    Garry Polley
    @garrypolley
    Google is not helping me out.
    Steven Kang
    @sstevenkang
    @garrypolley how are you exposing your preferred region? Are you exposing it via appsettings.json?
    Garry Polley
    @garrypolley
    I think I figured it out. I didn't have the appsettings.json (and the various environment versions of that file) being added to the build directory.
    Really the output directory.
    Steven Kang
    @sstevenkang
    neat!
    Garry Polley
    @garrypolley
    Thanks for the help.
    Developing on the Mac, there seems to be a few things left out of a lot of the AWS tutorials. Seems to assume a windows development enviornment.
    Renato Golia
    @Kralizek
    This message was deleted
    bobrov82
    @bobrov82
    Hi. Trying to get started with DynamoDB and .NET core. I can't get the example code from the documentation to compile. Compiler complains about every method call I'm trying to make on my instance of AmazonDynamoDBClient. Everything up to that point compiles for example creation of AmazonDynamoDBClient, PutItemRequest etc but trying to execute client.PutItem(request1); where client is an instance of AmazonDynamoDBClient fails with AmazonDynamoDBClient.PutItem(PutItemRequest)' is inaccessible due to its protection level. Of course this method is public so I really struggle with coming up with an explanation to this.
    Norm Johanson
    @normj
    @bobrov82 In .NET Core only async operations are supported. The example you must be following in the docs must be for .NET Framework which supports both sync and async. .NET Core only supports async because that is all the underlying HttpClient supports.
    Raymond Sanchez
    @agileraymond
    @bobrov82 I have a github project with examples on how to use DynamoDB with .NET Core. Take a look at www.github.com/agileraymond/dotnetdeployments
    Rafael Hernández Larios
    @rafaeh1
    Hi, I'm trying to refresh token from Cognito user using "CognitoAuthentication Extension Library" with "StartWithRefreshTokenAuthAsync" and always get this response: "User is not authenticated", Does anyone have an idea why? Or Which is the best way to refresh the token
    Curiosity
    @LaviLaza
    Hi everyone, I'd like to write a tool using @aws-sdk-net and I noticed AWS license does not allow redistribution, meaning I can't have aws-sdk-net libraries as part of the code. Is this really the case? (In GitHub the included license is Apache but in AWS MSI download page the license limits redistribution). Any insights will be much appreciated.
    Norm Johanson
    @normj
    @LaviLaza Interesting, that you are seeing that. The SDK is under Apache 2 except for the Cognito SyncManager which is under Amazon Software License. Both licenses allow redistribution. So short answer is yes go make tools and spread them around :smile: I'm assuming the license you are seeing with the MSI is for the AWS Toolkit for Visual Studio which is included in the MSI.
    Curiosity
    @LaviLaza
    Thank you for the inputs @normj. I'll have another look into it. Thanks again.
    reza-esfandyari
    @reza-esfandyari
    Richard Hoberman
    @rhoberman
    Is decrypting S3+KMS supported by SDK 3.1.17.2? Docs say it is (https://docs.aws.amazon.com/sdk-for-net/v3/developer-guide/kms-keys-s3-encryption.html) but we get "cannot decrypt 'AES/GCM/NoPadding' SES messages" (https://github.com/aws/aws-sdk-net/issues/748). We have the StorageMode set to ObjectMetadata.
    vellozzi
    @vellozzi
    The .NET SDK doesn't support AES/GCM/NoPadding in the S3 client KMS feature. I don't recognize that as an SDK error message. Can you open a GitHub issue at https://github.com/aws/aws-sdk-net/issues with the full usage scenario and a code sample?
    mipnw
    @mipnw

    I'm experimenting with AWSSDK.Extensions.CognitoAuthentication (https://aws.amazon.com/blogs/developer/cognitoauthentication-extension-library-developer-preview/) because I need Cognito User Pool authentication in C# and AWS SDK for .NET does not support that out-of the box.

    Unfortunately that extension seems to be flawed. It does not seem to provide a way to pass the User Pool Client Secret (or it's hash), I get "NotAuthorizedException: Unable to verify secret hash for client" when I call CognitoUser.StartWithSrpAuthAsync

    Any ideas?

    mipnw
    @mipnw
    Nevermind, I was providing a secret hash when the API expects a secret. It works.
    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?