Where communities thrive

  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
    Nick Robinson
    [August 16, 2019, 1:37 PM] Robinson, Nick: I am attempting to use the following code to setup my Analytics client and then use subsequent Analytic.record calls later in my app. The problem I am having is that no userId is ever included in the request. Any ideas?
        AWSPinpoint: {
          // Amazon Pinpoint App Client ID
          appId: CONFIG.PinpointAppId,
          // Amazon service region
          region: 'us-east-1',
          endpoint: {
            userId: 'foo',
    William Rust

    Having trouble merging multiple environments.
    Followed the docs here: https://aws-amplify.github.io/docs/cli-toolchain/quickstart#setting-up-master-and-dev-environments

    $ git checkout master
    $ amplify env checkout master
    $ git merge dev
    $ amplify push
    $ git push -u origin master

    Seems simple enough, except that git merge dev doesn't change team-provider-info.json. Any why would it? That file has 2 environment level nodes "dev" and "master". Categories added while working in the 'dev' env are added to the 'dev' node. So a git merge is never going to move them down into the 'master' node. What am I missing here?

    @johnbwilliams it would be great if you do a writeup and share with the team on how you use Cloud9 with AppSync. I would love to know the tips and tricks. Also what frontend - React / React Native / Angular etc... you use. Thanks in advance
    Darshan Gondaliya
    I need display facebook and google button in login screen

    I have angularjs 8 project and I have added

    in app/login/login.component.html

    Darshan Gondaliya
    john williams
    @pspanchal: Good idea. ... eIther I or someone else will publish a tutorial once the kinks are worked out
    anyone know if its possible to have the login page be a popup rather than a redirect? I am working within an iframe and cannot load the amplify login within an iframe
    hi everyone
    I am trying to implement Amplify javascript in ionic 4 project
    When i am trying to signout user then i am getting undefined in response.
    anyone know about this
    Daniel Jimenez
    @J-L thanks so much! your response really helps!
    How do you convert the AWS GraphQL API response to a local model object type in Swift
    If you anyone knows if there is an AWS way of doing this, you asistance would be highly appreciated.
    Thank You
    input UserInput {
      preferredLanguage: lang
    enum lang {
    In this GraphQL schema, lang enum type haven't used PascalCase. So while i take the CodeGen, amplify by default take enum type Lang(PascalCase) instead of lang. do we require PascalCase of enum type or that can be different error?
    Xavi Colomer
    Ok, quick question. If I use a mongodb instead of DynamoDB using a global resolver / function, will I lose the subscriptions?
    Jeevan Deshmukh
    Rakan Nimer
    Is anyone here using Amplify mock api in CI tests ?
    Hi I'm trying to access groups assigned to a user in AWS cognito from Android App, i could not find a way to do that can any one help me here
    Hello. Can use Auth.federatedsignin by opening the facebook application and the users appear in the user pool?
    Josh Parrett
    hello, i'm signing in using Auth.signIn within a react native app. And then I want to display a react js web-app within a web view, how can I inject the current auth session into the web view?
    Mohmmed Abuhasna
    Hello ,iam using Graphql and using for cashing => cash and network. , but this is return tow response so the data its repeated ,can and one expliand or suggustion any solution
    Sorry using fro response fetch => cash and network
    Ricardo Ribas
    Hello everyone. There is any exposed api for cognito users? I am building an app where some entities (for instance a TODO) can allow other users to read and update the TODOs?
    I saw the documentation and digged into the code but no sign of an API that could be useful. Another approach that I tought about was to have a lambda trigger that will create a User into the dymamoDb
    But I don't have tokens to access it. Some tips are welcome. In the meantime I added some logic in the app startup after the with authenticator HOC
    Roberto Wesley Overdijk

    We're using migrations from our old system to cognito, which works fine on iOS. For android we need to set the auth type to USER_PASSWORD, which I got working. The problem with that is that cognito seems to then not know what the user's identity is. When I use .signIn() it does (but then I can't set USER_PASSWORD to disable SRP).

    So I guess my question ius...

    How can I either set the USER_PASSWORD authenticationType for .signIn() or persist the session in my custom authenticationHandler?

    Abishek R Srikaanth
    Nam Jaegeun
    Hi. I have a question. What is "NoSQL Database" when input command 'amplify add storage'?
    I cannot found about it in guide docs.
    Dan Coman
    NoSQL Database is DynamoDB
    I have a question about 'Environment variables' on the amplify console not being available to a node.js lambda function.
    The function is setup through amplify cli. The function is accessed via a REST API and it is connected to a AUTH pool. not sure why the Environment variables refuse to be available/accessible in the function? I log out process.env to if they are there and... well... not there. Not even the variables that are supposed to be available by default.
    anyone have any ideas or understanding as to why this happening?
    Chris Anderson
    I have an AppSync api backed by DynamoDB, all provisioned via Amplify. I would like to call a Lambda function when one of my DynamoDB tables has a change. The most important thing is that I'm able to deploy all this with amplify push. Is there a way to specify the DynamoDB stream event as the trigger for an Amplify-created Lambda function. I'm OK with editing files like "backend/api/stacks/CustomResources.json" or creating new files like that, as long as they can be deployed using amplify push. Can you help me get started / point me to an example?
    Alternatively, can I provision a Lambda function that runs on a cron-style schedule? Polling isn't ideal but it's better than nothing.
    Chris Anderson
    it looks like amplify storage now supports triggers, but my storage was provisioned as part of add api so it doesn't list when I run amplify update storage https://aws.amazon.com/blogs/mobile/amplify-framework-adds-supports-for-aws-lambda-triggers-in-auth-and-storage-categories/
    Chris Anderson
    alternatively, can I set up an AppSync subscription to trigger a lambda?
    Hi, I'm working on Amplify prediction service to convert text to speech with Polly, with React Native but every time i'm getting 'Cannot create URL for blob!' Anyone have any idea on this? Please help out
    Chris Anderson
    is there a way to have more than one instance of the amplify graphql client in the same script? I am running queries against my AppSync api, but also against a 3rd party api

    Hi all. I'm seeking some guidance to access the details (username, email address) of an authenticated user from a lambda function.

    My API created through Amplify passes identity details in the req.apiGateway.event.requestContext.identity object including the cognitoIdentityId and the cognitoIdentityPoolId. However, I do not know where to go from here to query the user's data.

    I am trying to use the amazon-cognito-identity-js to avoid the heavier AWS-SDK.

    Matt Paterson
    Hello. I am trying to install Amplify on to my vm (using cloud9) so that I can deploy my first iPhone app. I keep getting an error when running the command "expo init myApp" and the error tells me that the Node.js version 6.15.0 is no longer supported. However, I cannot seem to update to a correct version of Node.js. I'm using the command "npm install -g n latest" to try and do this to no avail. Any suggestions? Thank you.
    William Rust
    Using Amplify API (AppSync) with Aurora, MySQL timestamps are typed to AWSTimestamp in the generated schema.graphql, but using the AppSync console the MySQL timestamp doesn't convert to the AWSTimestamp. Unable to serialize2019-08-22 18:35:08as a valid timestamp
    Anyone have guess as to what's wrong here?
    Liz the Code Witch 🔮
    @willrust Maybe it needs to be an iso timestamp in the format YYYY-MM-DDTHH-MM-SS.MMZ ex:2019-08-23T17:52:36Z
    William Rust
    @lizcodes_twitter Thank you, I think you're right. I think it's that AWSTimestamp is expecting either an INT or another format. I guess that MySQL stores the TIMESTAMP as an INT, but outputs a date string in the format YYYY-MM-DD HH:MM:SS and that doesn't work for AWSTimestamp. Which seems odd since AWS automatically maps MySQL TIMESTAMP to AWSTimestamp when it creates the graphql.schema based on a MySQL database. Anyway, I got it to work out by updating the resolvers to use UNIX_TIMESTAMP(). Thanks again.
    john williams
    @MattPat1981 Using C9 on an m4.large EC2 type (recommened for development). The first two commands of my setup are:
    npm install npm@latest -g
    npm install node@latest -g
    john williams
    @pspanchal: check out the amplify community or the @aws.amplify facebook page for many excellent tutorials from AWS developer advocates

    I have a question. I am using DynamoDB, AppSync, and Amplify to connect my app and use it with AWS. I want to do a search operation across multiple DynamoDB tables using Appsync's GraphQL API (search input will be given from app). Should I use pipeline resolvers? Can I do this with Batch resolvers? Please let me know what the best route to follow is and if you need any more info.

    Graphql Schema (I used codegen to generate Graphql functions in Appsync):

    `type VendorProfile @model {
      id: ID!
      name: String!
      categoryOfService: String!
      img: String!
      locations: [Locations] @connection(name: "Locations")
      ratings: [Ratings] @connection(name: "Ratings")
      services: [Services] @connection(name: "Services")
    type Locations @model {
      id: ID!
      address: String!
      city: String!
      zipCode: Int!
      vendorLocations: VendorProfile @connection(name: "Locations")
    type Services @model {
      id: ID!
      serviceName: String!
      imgOfService: String!
      vendorServices: VendorProfile @connection(name: "Services")
      ratings: [Ratings] @connection(name: "ServiceRatings")
    type Ratings @model {
      id: ID!
      stars: Float!
      comment: String
      customerName: String!
      vendorRatings: VendorProfile @connection(name: "Ratings")
      serviceRatings: Services @connection(name: "ServiceRatings")
    My stack overflow question is here: How can I search across multiple DynamoDB tables?
    Help please. i uninstalled my amplify cli on my window 8. and after that i have been trying to install it back but is not working.
    john williams
    @chikason: you are better off using the Windows Subsystem for Linux for amplify development