Questions tagged [aws-amplify]

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

Filter by
Sorted by
Tagged with
57 votes
4 answers
22k views

How to use Amazon Cognito without Amplify

I'm just now diving into Cognito. The AWS setup has been fairly straight-forward, easy. We have a variety of apps, webapps, and services and we'd like those to make use of the Cognito service. I've ...
Michael Prescott's user avatar
52 votes
9 answers
41k views

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....
Slohrsh's user avatar
  • 745
48 votes
12 answers
39k views

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 ...
Sahan Amarsha's user avatar
48 votes
6 answers
54k views

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/...
spencewine's user avatar
34 votes
8 answers
42k views

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 ...
NeXtMaN_786's user avatar
28 votes
3 answers
13k views

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 ...
Yasser Shaikh's user avatar
28 votes
4 answers
44k views

how handle refresh token service in AWS amplify-js

In my react project I am using AWS Cognito user pool for user management, for user authentication, I am using AWS Cognito idToken. after 90min the session will expire, then I need to refresh with new ...
user avatar
28 votes
1 answer
21k views

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 ...
Telenoobies's user avatar
25 votes
8 answers
27k views

How to add environment variables to AWS amplify?

I have a React/Node app which i am trying to host on AWS amplify. first try, my app deployed but i saw some pages are not loading due to lack of the environment variables. i have added them to the AWS ...
A Zarqam's user avatar
  • 398
25 votes
1 answer
35k views

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 ...
Joseph D.'s user avatar
  • 12k
25 votes
2 answers
8k views

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: [...
Kyle Magilavy's user avatar
24 votes
1 answer
7k views

Cannot connect Github organization repository to AWS Amplify app

I am trying to create an AWS Amplify application that is connected to a Github organization repository. When I am asked to select a Github repository to connect the app in AWS Amplify I do not see ...
TheNorth's user avatar
  • 241
24 votes
14 answers
39k views

AWS Amplify: Resource is not in the state stackUpdateComplete

I'm setting up aws-amplify to my project. I am facing a problem in amplify push when I configured for the first time it worked fine. now i changed the repository since i had to do sub-tree from the ...
Harsha's user avatar
  • 383
23 votes
5 answers
15k views

Make API request to HTTP endpoint from AWS Amplify deployed HTTPS (SSL) Client

I have deployed my Backend/API server in a AWS EC2 instance, which is being loaded without SSL and the url is like, 'http://ec2-67-ap-southeast-3.compute.amazonaws.com' And I have deployed my React ...
Muhaimenul Islam's user avatar
22 votes
4 answers
46k views

AWS Amplify: How to delete the environment, when resources are already partially deleted?

TL;DR: How to delete an amplify environment, when some resources of the service have been deleted manually in the console? So, I took a course on egghead to learn the aws amplify CLI. Unfortunately, ...
J. Hesters's user avatar
21 votes
8 answers
19k views

'AmplifySignOut' is not exported from '@aws-amplify/ui-react'

I've run into this issue today, and it's only started today. Ran the usual sequence of installs and pushes to build the app... npx create-react-app exampleapp npm start amplify init amplify add api ...
TheD2000's user avatar
  • 233
21 votes
2 answers
30k views

Getting URL Parameters on GatsbyJS

Is there a way to retrieve url parameters passed on pages of project built on GatsbyJS? I'm trying to implement a password reset function on my page using AWS, but they can only send the parameters ...
Lex's user avatar
  • 329
20 votes
3 answers
7k views

Prevent AWS Amplify From Adding Trailing Slash and Forcing Redirect

I am using AWS Amplify and cannot figure out how to configure my rewrite and redirects or routes.js to prevent trailing slashes from breaking my functionality. When I run my code locally and try to ...
rocketlobster's user avatar
20 votes
1 answer
7k views

Using Amplify and SAM together?

I'm having some confusion here and wanted to see if someone can set me straight. I'm using Amplify for a Vue app. It calls API Gateway which calls Lambda and all of this is set up manually but I want ...
Caleb's user avatar
  • 338
20 votes
5 answers
12k views

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....
honkskillet's user avatar
  • 3,087
20 votes
4 answers
15k views

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 ...
Ole's user avatar
  • 44.4k
19 votes
4 answers
22k views

AWS Cognito - How To Get User's Group From Token Object

I can see the user's assigned User Pool group in the returned user data object in the console after logging in. Everything I've tried to assign the group to a variable has failed. What am I missing? ...
Preston's user avatar
  • 3,350
19 votes
6 answers
9k views

How do I disable the sign up link for the aws amplify vue authenticator?

I'm using the amplify-authenticator component from the aws-amplify-vue library to enable authentication for my app. I'm trying to figure out how to disable the "Create Account" link on the front end ...
Tim Hutchison's user avatar
19 votes
7 answers
5k views

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 ...
Christine's user avatar
  • 3,034
18 votes
5 answers
11k views

Is it possible to use the amplify framework without using the cli?

The amplify FAQ says specifically you can. But the github links now just redirect you to the main amplify page and the instructions only talk about using the cli. Q: Can I use the Amplify Framework ...
Jeremy's user avatar
  • 665
18 votes
3 answers
14k views

How to handle api errors using aws-amplify?

I'm currently trying to POST data to my aws lambda functions triggered by aws api-gateway using the aws-amplify react lib. Here is the code : API.post("snippets","snippets/", { body: data, ...
Sébastien Le Gall's user avatar
18 votes
4 answers
11k views

User Pool allows two users with same email despite configuration

Background I'm using aws-amplify to interact with Cognito. So when a user registers with my app, I call Auth.signUp(). I'm passing only username (email) and password to this function. My user pool ...
Mike Patrick's user avatar
  • 10.9k
18 votes
3 answers
4k views

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 ...
Yi Zhou's user avatar
  • 803
18 votes
1 answer
3k views

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 ...
Khon Lieu's user avatar
  • 4,335
17 votes
4 answers
7k views

aws-amplify js to angular app has error: global is not defined

I am testing AWS Amplify from Angular to Cognito User Pool following: https://docs.amplify.aws/lib/restapi/getting-started/q/platform/js The Angular app has successfully compiled however the ...
beewest's user avatar
  • 4,666
17 votes
5 answers
9k views

declaration (.d.ts) file containing `declare module 'graphql/error/GraphQLError'; in index.d.ts in an angular project

i'm using amplify in an angular project. when I run command ng serve I got this error. Error: node_modules/@aws-amplify/api-graphql/lib-esm/types/index.d.ts:1:30 - error TS7016: Could not find a ...
ch-ru's user avatar
  • 469
17 votes
2 answers
9k views

How to Filter List/Queries With AND/OR operators AWS Amplify JavaScript GraphQL

I am new to using AWS Amplify and GraphQL. Also just started building out React Native App - which is a lot of fun! I have a table called TimePeriods schema for it looks like this type TimePeriod @...
user avatar
17 votes
1 answer
7k views

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 ...
deadcoder0904's user avatar
17 votes
1 answer
5k views

AWS Cognito and Amplify: clientMetadata not sent when session is refreshed

We have a React client that uses AWS Cognito and Amplify ("aws-amplify": "1.1.40"). When a user logs in we want to send some additional data to Cognito, to be used by a "pre ...
bhm's user avatar
  • 171
16 votes
4 answers
16k views

dynamodb PartiQL SELECT query returns ValidationException: Unexpected from source

I am using Amplify to setup a dynamodb with a corresponding lambda using the amplify blueprint for dynamodb. Accessing the dynamodb the "classic" way with KeyConditionExpression etc works ...
user1816142's user avatar
  • 1,329
16 votes
2 answers
8k views

Getting 403 ACCESS DENIED error when deploying React Web app on AWS Amplify

Been racking my brain on this for a couple of days. I am trying to deploy my react app on AWS Amplify. When I launch the application I am correctly directed to a sign in page (Uses Auth0 Universal ...
Zak DeBrine's user avatar
16 votes
8 answers
32k views

Amplify: CORS header ‘Access-Control-Allow-Origin’ missing error even though CORS is enabled in API Gateway and Lambda headers

I'm using Amplify, and have my API Gateway proxying to Lambda. I've enabled CORS on my /{proxy+} and deployed the API. In my Lambda function, I'm setting the appropriate header in my trivial function: ...
Mark Richman's user avatar
  • 29.4k
15 votes
4 answers
11k views

No Amplify backend project files detected within this folder

How can I solve the issue of "No Amplify backend project files detected within this folder. Either initialize a new Amplify project or pull an existing project" Am always having this issue ...
Benjamin Ikwuagwu's user avatar
15 votes
2 answers
7k views

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 @...
Philip Claren's user avatar
14 votes
5 answers
14k views

AWS Cognito/Amplify - have new user sign ups be automatically add to a user group

I am using AWS Amplify library to sign up and perform Auth for an AppSync project. This uses Cognito. However, when a new user signs up via Amplify/Cognito, the new user isn't assigned to any ...
honkskillet's user avatar
  • 3,087
14 votes
1 answer
23k views

AWS Cognito cookie storage

I'm trying to set up Cognito to use cookies instead of localStorage for credentials so that I can keep the user logged in between domains, e.g. x.foo.com and y.foo.com. The first step is to get it ...
Noel Heesen's user avatar
14 votes
2 answers
9k views

How to use AWS Amplify in React Native with Typescript Project?

I'm trying to add Amplify Authentication in my react native project which uses typescript. There is a package given in amplify documentation 'aws-amplify-react-native' which is used as a middleware to ...
radhika thakkar's user avatar
14 votes
3 answers
8k views

Configure Cloudflare to point to AWS Amplify

I use Cloudflare to generate SSL and AWS Amplify to host the project. I would like to configure Cloudflare to point to AWS Amplify project. These are the current DNS records, which points to the ...
Matt's user avatar
  • 8,653
14 votes
1 answer
9k views

What is the best way to secure Firebase API keys in a react app so it is not accessible publicly? [duplicate]

I currently have a React app using Firebase authentication & uses Firestore as the database. I currently have the app deployed using Amazon's Amplify service. My Firebase API keys, including the ...
nkhil's user avatar
  • 1,532
14 votes
2 answers
4k views

"No current user": Isn't it even possible to make unauth calls to AWS AppSync through Amplify with authentication type AMAZON_COGNITO_USER_POOLS?

I have an AWS AppSync schema with the default authorization mode set to Amazon Cognito User Pool. I make calls to this AppSync endpoint from a web app using AWS Amplify GraphQL Client and, coherently, ...
vahdet's user avatar
  • 6,551
13 votes
7 answers
5k views

Amplify React Native - Duplicate Error using amplify add api

I'm using this Amplify guide https://aws-amplify.github.io/docs/js/tutorials/building-react-native-apps/#connect-to-your-backend-1 and when I create an API using "aplify add api" the app fails. I'm ...
j_hen's user avatar
  • 173
13 votes
3 answers
8k views

Cannot find type 'AnyCancellable' in scope from amplify code snippit

import Foundation import SwiftUI import Amplify class MovesAPI: ObservableObject { @Published var todoLIst: [MoveType?] = [nil] init() { listTodos() } ...
Joe Davis's user avatar
  • 611
13 votes
2 answers
13k views

AWS-amplify Including the cognito Authorization header in the request

I have create an AWS mobile hub project including the Cognito and Cloud logic. In my API gateway, I set the Cognito user pool for the Authorizers. I use React native as my client side app. How can I ...
Anson Cen's user avatar
  • 487
13 votes
4 answers
12k views

How to verify accessToken in node/express using aws-amplify?

I am using AWS amplify for user authentication on my front-end React app. My React app directly communicates with amplify without any backend(node server) interaction. I have a REST API written in ...
Waeez's user avatar
  • 309
13 votes
3 answers
24k views

How to run an existing aws amplify project

I have been asked to work on an existing aws amplify reactJs project. Normally I would simply clone the project repo from either github or bitbucket, but this project is am amplify project and ...
hyprstack's user avatar
  • 4,144

1
2 3 4 5
100