Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
    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.
    Kros21
    @Kros21
    @dantasfiles
    how are you today?
    Craig Janik
    @got879
    OK
    I already have an AWS account - I don't see a login page on the Amplify Framework page
    Frank Phillips
    @frank-amplify_gitlab
    Hi, Does anyone have inside information about the Amplify Week in San Fransisco from 16th March? The event is list here https://amplify.aws/community/events/2020/03/16/amplify-week-sf but there is no information on the expected page!
    bbop
    @bishonbopanna
    @dantasfiles - Thanks Daniel. I tried out your recommendation, also mentioned in the "hasMany" section in https://aws-amplify.github.io/docs/cli-toolchain/graphql?sdk=js and the referenced data was NOT loading due to the query having nextToken. Let me elaborate, in the attached screen shot, the query gets generated as : comments {
    nextToken
    } which I had to change to below to get the data. Why does this - "nextToken" happen ? what am i missing ?
    comments {
    items{
    content
    }
    }
    image.png
    Jeff Finley
    @quickliketurtle
    nextToken is used as there is a limit on the number of records that can be scanned with each API request (this is specific to DynamoDB though). So when you make a request, you get back results and a nextToken, you then use the nextToken in your next request to tell the query where you left off. So you would recursively call this until there was no more nextToken.
    When Amplify generates your queries for you, it defaults to just asking for nextToken for relationship. (not sure why though). So your options are what you did, which is update the query. Or what I would do is write a custom query. That way your changes are not overwritten on your next push.
    @bishonbopanna :point_up:
    Jeff Finley
    @quickliketurtle
    @frank-amplify_gitlab I just shot an email to the SF Loft asking for them to add info to their page and included a link to the Amplify Event page… Hopefully will get more info soon.
    bbop
    @bishonbopanna
    @quickliketurtle - Thanks Jeff. Makes sense. +1 to custom query. However it was interesting that in my case the next token was coming back as null - not entirely sure what I did to goof up. For now I made progress with custom query.
    Roni Yosofov
    @RoniFinTech

    Hi,
    I run a GraphQL mutation using the AWS AppSync Queries page. Now, the first time I try this mutation, everything works fine and the first time, but if I try to submit the mutation again without changing anything, I get an error...

    This is my mutation:

    mutation {
    createStore(
    input: {
    storeName: "SomeStoreNYC",
    geoLocation: {
    latitude: 0.73,
    longitude: 0.45
    },
    address: {
    city: "New York",
    country: "USA",
    state: "NY",
    address: "555 W 55th Street",
    zipcode: "10010"
    },
    logoUrl: {
    key: "logo-key",
    bucket: "logo-bucket",
    region: "usa-1"
    },
    phoneNumber: "999-999-3333"
    }
    ){
    id
    }
    }

    This is the error that I get if I try the mutation above two times:

    {
    "data": {
    "createStore": null
    },
    "errors": [
    {
    "path": [
    "createStore"
    ],
    "data": {
    "id": "2c03a100-f992-4f20-a6db-799d98dc3d6c"
    },
    "errorType": "DynamoDB:ConditionalCheckFailedException",
    "errorInfo": null,
    "locations": [
    {
    "line": 2,
    "column": 5,
    "sourceName": null
    }
    ],
    "message": "The conditional request failed (Service: AmazonDynamoDBv2; Status Code: 400; Error Code: ConditionalCheckFailedException; Request ID: A4NNQQ0SR2U23FSHO0EK7AM5BJVV4KQNSO5AEMVJF66Q9ASUAAJG)"
    }
    ]
    }

    Any suggestions??
    Thanks

    Frank Phillips
    @frank-amplify_gitlab
    @quickliketurtle Thanks
    eliasericsson
    @eliasericsson
    Can anyone explain how the ModelTodoFilterInput in a GraphQL query is supposed to be constructed?
    eliasericsson
    @eliasericsson
    Maybe there is some other way, what I'm trying to do is to retrieve a record where the field guid matches a specific value. I just want one record.
    Steve Daly
    @spdaly
    Hello all...extending an application with a GraphQL API. It's based on an existing DynamoDB table, so I setup a separate AppSync API and exported the schema in imported it into the amplify add api CLI as an annotated schema. Everything setup in the backend. But, it doesn't look like auth is correct. The run schema is disabled after I login.
    Daniel S. Dantas
    @dantasfiles
    @eliasericsson modeltodofilterinput in listTodos is a filter that runs after dynamodb returns the data requested, see Query and Scan. if you just want one record, do getTodo graphql which does a dynamodb getitem