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
20
votes
14 answers

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 old repo. Now when i do amplify push i get Resource…
Harsha
  • 343
  • 1
  • 3
  • 6
20
votes
4 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
  • 41,793
  • 59
  • 191
  • 359
20
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:…
honkskillet
  • 3,007
  • 6
  • 31
  • 47
19
votes
7 answers

'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 Amplify push npm install aws-amplify…
TheD2000
  • 213
  • 1
  • 2
  • 7
19
votes
1 answer

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 to use the power of IaaS and do it with…
19
votes
3 answers

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 visit localhost:3000/foo/bar/id the page renders…
rocketlobster
  • 690
  • 7
  • 18
18
votes
6 answers

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 and I can't seem to find anything in the…
Tim Hutchison
  • 3,483
  • 9
  • 40
  • 76
18
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
  • 4,295
  • 7
  • 37
  • 39
18
votes
5 answers

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 libraries even if I do not use the CLI? Yes. The…
Jeremy
  • 625
  • 8
  • 12
18
votes
3 answers

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? I can easily get the client_id, JWT's, and…
Preston
  • 3,260
  • 4
  • 37
  • 51
18
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
  • 803
  • 1
  • 8
  • 24
18
votes
4 answers

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 is configured to allow sign in by email only:…
Mike Patrick
  • 10,699
  • 1
  • 32
  • 54
18
votes
7 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…
17
votes
5 answers

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 declaration file for module…
ch-ru
  • 449
  • 1
  • 4
  • 14
17
votes
1 answer

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 token generation" trigger. We do this by adding a clientMetadata…
bhm
  • 171
  • 1
  • 3