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/

2523 questions
22
votes
5 answers

aws-amplify Authentication...how to access tokens on successful Auth.signIn?

I'm trying to figure out how to access the accessToken, refreshToken, and idToken that I receive back from aws-amplify using the Auth library. example in docs: https://aws.github.io/aws-amplify/media/authentication_guide.html example of my…
spencewine
  • 230
  • 1
  • 2
  • 6
21
votes
1 answer

AWS GraphQL: Variable 'input' has coerced Null value for NonNull type 'Input!'

I'm using ReactJS and aws-amplify to execute graphql operations. CODE: import { API, graphqlOperation } from 'aws-amplify'; import { UpdateInput } from './mutations.js'; // Call mutation const input = { /* some values */…
Joseph D.
  • 10,071
  • 3
  • 21
  • 54
20
votes
1 answer

AWS amplify deploy failure due to aws-exports

I am trying to deploy my reactJs app to Amplify. I have my Github connected to Amplify. During deployment it shows the following error at Build step: 2020-01-07T19:35:22.127Z [INFO]: Failed to compile. 2020-01-07T19:35:22.129Z [INFO]:…
Telenoobies
  • 756
  • 2
  • 9
  • 30
19
votes
2 answers

AWS Amplify - AppSync & Multiple DynamoDB Tables

When initializing a new GraphQL backend via the Amplify CLI, the sample schema defines multiple types with the @model annotation. For example... type Blog @model { id: ID! name: String! posts: [Post] @connection(name: "BlogPosts") } type Post…
18
votes
4 answers

AWS Amplify, how to check if user is logged in?

I've been using the aws-amplify library with ionic and was wondering how I would check if a user is logged in? I'm coming from a firebase background so this is quite different. This is so that I can grant access to certain pages based on the user's…
17
votes
2 answers

React Router DOM not working correctly on Amplify Console AWS

I have deployed react app on Amplify Console following their documentation. The site is deployed and running fine, I am able to navigate using links but when I try to land to any url directly I get redirected to my configured 404 page. Below is the…
Yasser Shaikh
  • 44,064
  • 44
  • 190
  • 271
17
votes
3 answers

How to change Node Version in Provision Step in Amplify Console

I'm facing the problem that I cant build my Angular app through the AWS Amplify Console: "You are running version v8.12.0 of Node.js, which is not supported by Angular CLI 8.0+. The official Node.js version that is supported is 10.9 or…
Slohrsh
  • 233
  • 2
  • 7
17
votes
3 answers

AWS Amplify/CLI vs AWS mobile hub

I'm new with AWS mobile hub and today I just notice there is a new AWS Amplify/CL, now I'm super confused with these two libs. My understanding was AWS mobile cli is a tool that create aws backend service, and amplify js just client library that…
Yi Zhou
  • 758
  • 6
  • 24
16
votes
6 answers

Does API Gateway behind CloudFront not support AWS_IAM authentication?

It seems that it is impossible to call a REST API that has AWS_IAM protection enabled through a CloudFront Distribution. Here is how to reproduce this: create a REST API with API Gateway protect a REST API method with AWS_IAM authentication create…
15
votes
3 answers

Creating process.env variables using AWS Amplify?

With serverless we can add process.env variables by creating a configuration file entry like this: environment: STRIPE_SECRET_KEY: ${self:custom.secrets.stripeSecretKey} # Stripe secret API key And we can access it in our lambda function like…
Ole
  • 29,797
  • 32
  • 110
  • 232
15
votes
5 answers

AppSync: Get user information in $context when using AWS_IAM auth

In AppSync, when you use Cognito User Pools as your auth setting your identity you get identity: { sub: 'bcb5cd53-315a-40df-a41b-1db02a4c1bd9', issuer: 'https://cognito-idp.us-west-2.amazonaws.com/us-west-2_oicu812', username:…
14
votes
1 answer

How does AWS Amplify cloudformation parameter.json work?

I recently started using AWS Amplify and I've had experience using vanilla cloudformation. Most of it makes sense except for the parameters.json part. It seems that Amplify generates cloudformation templates for the resources we use, but it also…
Khon Lieu
  • 3,795
  • 7
  • 31
  • 38
14
votes
1 answer

Difference between AWS Amplify & Apollo Client for GraphQL?

I agree Apollo Client is a pain to set up because of lots of boilerplate (although it becomes simple after reading the docs) & things like AWS Amplify, URQL, Apollo Boost & Micro GraphQL React makes it easy to work with GraphQL on the client. I am…
deadcoder0904
  • 3,758
  • 1
  • 27
  • 91
13
votes
2 answers

AWS-Amplify API module: how to make GraphQL fields unique?

AWS-Amplify provides a couple of directives to build an GraphQL-API. But I haven't found out how to ensure uniqueness for fields. I want to do something like in GraphCool: type Tag @model @searchable { id: ID! label: String! @isUnique } This is…
Philip Claren
  • 1,972
  • 1
  • 17
  • 28
12
votes
4 answers

AuthError - Error: Amplify has not been configured correctly

First I have successfully completed configuring my react application using amplify configure. I did that with the help of AWS Amplify docs. Then I have successfully added authentication to my amplify project, using amplify add auth and amplify push.…
Sahan Amarsha
  • 752
  • 6
  • 13
1
2 3
99 100