Questions tagged [aws-amplify]

AWS framework for rapidly developing backends for mobile and web applications.

AWS Amplify provides the greatest common denominators for mobile backends, including authentication, analytics, notifications, storage, and offline realtime database AWS AppSync.

It works for Android, iOS, and Web clients, and provides integration with popular client runtimes such as React Native, React, Angular, and Ionic.

AWS Amplify provides a modern toolchain, including a powerful CLI and codegen.

See more at their website: https://docs.amplify.aws/

4787 questions
8
votes
6 answers

AWS Amplify REST API cannot find the API

I'm playing with AWS Amplify since I've to introduce some of its feature in a legacy application that has no framework (no React, no Angular: just vanilla JS). I used successfully the Auth module so I recreated a simple sign up/in/out strategy. What…
BAD_SEED
  • 4,840
  • 11
  • 53
  • 110
8
votes
1 answer

Create AWS Amplify Resources with Terraform

Is it possible to create an AWS Amplify project containing auth and storage resources using Terraform? The goal is to link an Android client project with Amplify resources created using a Terraform template. For example: I want to amplify pull from…
S-S
  • 81
  • 1
  • 3
8
votes
0 answers

Amplify Auth and Android: how to get guest session token?

I have an Android app using Amplify Auth. I am able to use guest access and secret keys, but not the session token. Postman requires a session token when using temporary credentials. As per the Amplify documentation, I use this code to get the…
8
votes
2 answers

GraphQL AWS AMplify @connection not bringing in connected data

I would like to have in the League tables all of the seasons and divisions as you can see with data > seasons. I have set it up as I believe would work using @connection. So the question is, how would I have to change my division schema so that…
Jamie Hutber
  • 26,790
  • 46
  • 179
  • 291
8
votes
2 answers

AWS Cognito/Amplify returning empty refresh token

I have a userpool in cognito which uses Google as the identity provider. Now, using Amplify, we do a FederatedSign with provider as 'Google' as shown below. Auth.federatedSignIn({ provider: "Google" });. This gives me back the access token, id…
8
votes
3 answers

AWS Amplify: After confirmSignUp, what is the best practice to automatically Sign In a user?

Overview: After the user receives a Verification Code, the user enters the Verification Code, and the Account Status becomes CONFIRMED. Now that the sign up process is completed, I want to automatically sign in the user in after. It seems…
8
votes
1 answer

AWS Amplify GraphQL Unknown Directive in Android Studio

I have been experimenting with AWS Amplify to generate a GraphQL API and backend. I can create a working backend using the guided schema creation. I chose the Todo example. I can call it from an app built in Android Studio. Queries and mutations…
8
votes
2 answers

Appsync Update and Delete mutation not working

I am using AppSync for my APP. Here is a quick look of my Schema.graphql file type Item @model @auth(rules: [ { allow: public, provider: apiKey, operations: [read] }, { allow: groups, groups: ["admin"] } ]) { id: ID! name: String! …
8
votes
3 answers

How to get Cognito Identity ID given the Cognito User Pool ID?

In AWS Amplify's Storage Documentation, there's a section on how to get other users' objects... Storage.get('test.txt', { level: 'protected', identityId: 'xxxxxxx' // the identityId of that user }) Where can I get the identityId of…
Noel Llevares
  • 15,018
  • 3
  • 57
  • 81
8
votes
1 answer

Error: Invalid AST Node: {"input":"** } on graphql mutation (Amplify client)

I tried to use example schema on api doc("https://aws-amplify.github.io/docs/cli-toolchain/graphql?sdk=js") like below on Many-To-Many Connections type Post @model { id: ID! title: String! editors: [PostEditor] @connection(keyName: "byPost",…
MinLoveSu
  • 243
  • 1
  • 2
  • 15
8
votes
1 answer

AWS Amplify GraphQL Schema that is linked to Cognito User Pool

I am using the AWS Amplify to create a website platform that functions mostly as a directory of its registered users with various attributes relating to the business domain. The two primary users for the platform will be registered users and normal…
8
votes
6 answers

Amplify w/Cognito: How do I get the Current User's Email?

I am using AWS Amplify, with Cognito for user Auth. Users go into a user pool, and register and sign in just with email address and password. When a user that has signed in through Cognito navigates to a certain page, I want to be retrieve their…
SeanRtS
  • 1,005
  • 1
  • 13
  • 31
8
votes
1 answer

How to override rails configurations in regard to pluralized tables and snake cased columns

So, I'm building an app where I have a backend written in Rails and a client written in Vue with Amplify. My database is MySQL and I'm using AWS AppSync with a GraphQL as data source (pointing to my database). The AWS Amplify has a framework that…
Amanda Ferrari
  • 1,168
  • 5
  • 17
  • 30
8
votes
2 answers

AWS AppSync + React-Apollo Query/useQuery raising exception this.currentObservable.query.getCurrentResult is not a function

I'm new to GraphQL/Apollo thing and I'm having a hard time to setup it with a React application. I have a React component that loads a list from a GraphQL API built using Amplify/AppSync. If I call manually to fetch the items, i.e: const…
dfranca
  • 5,156
  • 2
  • 32
  • 60
8
votes
2 answers

Passing current time in Javascript to GraphQL AWSDateTime column

I have a GraphQL table Channel with the column dateOn of the type AWSDateTime In my React app I am calling a mutation to create a new Channel. Here's the relevant code: const createChannel = ` mutation createChannel { createChannel(input:{ …
pejmanjohn
  • 1,057
  • 3
  • 12
  • 26