Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
    dmwever
    @dmwever
    I am getting this error when I try to install Amplify AWS to my Android Studio project.
    ERROR: C:\Users\dmwev\StudioProjects\LendaHand\LendaHandApp\amplify-gradle-config.json (The system cannot find the file specified)
    I am following the API instructions to the letter, and this happens when I get to the section labeled "(Optional) Add Gradle Plugin to auto generate models"
    FelipeD-FiveTalent
    @FelipeD-FiveTalent
    Is there a way to get email from a user after Auth.federatedSignIn({provider: 'Facebook'}). I have a pre-sign up func thats expecting an email but I dont know if I can get it from the user after they attempt log in
    tedhopps
    @tedhopps
    @FelipeD-FiveTalent it should map onto your cognito attributes
    on thing to keep in mind is that FB allows users to sign up using a phone number so an email is not guaranteed to exist
    Kros21
    @Kros21
    How are you?
    Jeff Finley
    @quickliketurtle
    :wave:
    Kros21
    @Kros21
    $ expo init myAmplifyProject
    [21:15:36] Input is required, but Expo CLI is in non-interactive mode.
    Hello, Jeff.
    Nice to meet you. thanks
    I am getting this error now, in "expo init myAmplifyProject"
    I am testing the sample project now
    Kros21
    @Kros21
    Can you help me?
    Takeshi
    @iwatakeshi
    Hi, would anyone know how I can access the IAM credentials in a Lambda function when using an AppSync client? The docs show how it can be done within an app. However, it doesn't show how to do so for Lambdas.
    Clay Mitchell
    @claym
    hey does anybody know how to make a cognito group where the username is case insensitive? it's an option now i guess, but devil if i can figure out how
    @iwatakeshi you'd probably do that through the AWS SDK API @ https://docs.aws.amazon.com/AWSJavaScriptSDK/latest/AWS/IAM.html
    it's available inside a lambda, i've used it to access cognito pools and use SES
    Daniel S. Dantas
    @dantasfiles
    @Kros21 what are you using to execute the command? linux? windows? git bash? powershell? cmd?
    @claym I've been curious, is the IAM role you get in the lambda the lambda's role, or the authenticated user role? the docs are confusing but I think it's the former? what did you find?
    Takeshi
    @iwatakeshi
    @claym Thanks for the response. I have the same question as @dantasfiles. Also, would it matter if I'm using Amplify?
    Clay Mitchell
    @claym
    @iwatakeshi API makes it look like you can look up whatever IAM role/member/whatever you want. there's a billion methods
    i don't see why it would matter if you're using amplify. i created my lambda via amplify add function, then access the AWS SDK like normal
    Takeshi
    @iwatakeshi
    @claym Great, thanks!
    Clay Mitchell
    @claym
    make sure you grant the role that's executing the lambda the ability to look up the IAM stuff.
    Takeshi
    @iwatakeshi
    Ah, so after I create the function using the cli, I need to give a role to access AppSync. Is that correct?
    FelipeD-FiveTalent
    @FelipeD-FiveTalent
    @tedhopps Thank you!
    Kros21
    @Kros21
    @dantasfiles , thanks
    I passed that process now
    but I am not sure about Graphql now
    How to construct the GraphQL backend?
    Daniel S. Dantas
    @dantasfiles
    @Kros21 amplify add api then amplify push
    praveen kumar
    @praveen4554
    Hi when im trying to signin to aws congito always getting the error like usernotfoundexception
    and the AUTHflow is always custom_auth i am unable to update it to user_password_auth
    can some one help me in that please
    vennela-cheekoti
    @vennela-cheekoti
    amplifyService.config is not updating my authenticationFlowType can you please help me in that
    Kros21
    @Kros21
    API key is...
    Thanks , but I am not clear in every fields now.
    Sorry @dantasfiles
    Daniel S. Dantas
    @dantasfiles
    @Kros21 ?
    Takeshi
    @iwatakeshi

    @claym I've figured out the credentials. Thanks.

    By chance, would you know what the apixxxGraphQLAPIEndpointOutputenv variable to should be when mocking the lambda function? I was having this issue: aws-amplify/amplify-cli#2453 and the last answer given seems to resolve the issue. However, I've tried adding http://[ip address]:20002as the endpoint and it doesn't like the response. It gives me an unexpected token < error...which probably means the endpoint is not correct.

    Armin Broubakarian
    @arminbro
    Is it possible to use Amplify-CLI just for the backend and separate from the frontend codebase?
    Jeff Finley
    @quickliketurtle
    Yep
    Armin Broubakarian
    @arminbro
    Hey Jeff, thanks for the quick reply dude. Can you point me where in the docs I can read more on that?
    Jeff Finley
    @quickliketurtle
    Not sure there is a specific place… So lets say you wanted to create just a cognito pool, you would run amplify init then amplify add auth select your options, then amplify push. Now you have the deployed stack with Auth setup. To keep this backend only, you would just not setup any of the frontend js libs, etc…
    If you wanted to use that resource in another repo / app, you can use the amplify js lib, and configure it ‘manually’ by passing in the values for the pool you created in the backend repo.
    Armin Broubakarian
    @arminbro
    Yeah that makes sense. Here's what I'm confused about. When you run amplify init it asks you to choose a frontend framework like React, Angular or none (aka vanilla JavaScript). I guess what I was asking is if there is a flag to bypass that part of the init.
    Like an official way of telling amplify that this is not running in a frontend project.
    Jeff Finley
    @quickliketurtle
    Ah, that just sets some variables in amplify/.config/project-config.json that are used with the amplify publish command...
    Armin Broubakarian
    @arminbro
    Cool. Thanks for the help.