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
9
votes
1 answer

In graphql schema, how can I create a parent/child relationship of same model?

I'm needing to create a searchable listing table where some records are of type ORGANIZATION or RESOURCE. The relationshipis one-to-many. So, an Organization can have many Resources. How can I create this relationship under one model? Using AWS…
Chance Smith
  • 1,211
  • 1
  • 15
  • 32
9
votes
1 answer

Appsync & GraphQL: how to filter a list by nested value

I have an Appsync API generated by Amplify from a basic schema. On the Article model, a category field is nested within a metadata field. I want to build a Query that provides a list of Articles filtered by category. It is not clear to me how to…
Kwhitejr
  • 2,206
  • 5
  • 29
  • 49
9
votes
3 answers

Use AWSMobileClient without `awsconfiguration.json`in iOS

I'd like to authenticate an iOS device to use AppSync/S3 services via Cognito user pools. The AWSMobileClient provides some nice conveniences but the initialization requires that you're bundle have an awsconfiguration.json file -- which our…
tgk
  • 3,857
  • 2
  • 27
  • 42
9
votes
3 answers

How to properly handle unauthenticated users and requests in AWS Amplify/AppSync React apps?

I am having a very hard time to figure out how to handle unauthenticated users in a React app which uses AWS Amplify and AWS AppSync. Seems like most docs suggest to wrap the whole app with withAuthenticator HOC from aws-amplify-react but in the…
SaidAkh
  • 1,661
  • 4
  • 15
  • 28
9
votes
1 answer

aws-amplify Auth.currentSession() not giving refreshed token after an hour

Which category is your question related to? AWS amplify auto handling refresh token What AWS Services are you utilizing? aws-amplify Provide additional details e.g. code snippets axios.interceptors.request.use(function(config) { return…
9
votes
1 answer

Display Image from S3 with AWS Amplify in React-Native

I cannot get my image to render. I upload a protected image to S3, no problem. I then use the below code to retrieve the image. When I log imageReturn I get the image URL with token. state = { image: '' } async getImage(image) { let…
BHalvy82
  • 177
  • 1
  • 4
  • 14
9
votes
4 answers

how to await for the aws cognito authenticateUser call (which appears to be a callback)

So we are using await/async calls, but the authenticateUser command provided by aws-amplify appears to use a callback. I am a python coder and have not coded with node in quite a while, so this may be a naive question! I tried converting it to a…
9
votes
5 answers

How can I force a cognito token refresh from the client

I am using aws amplify and I know that the tokens get automatically refreshed when needed and that that is done behind the scenes. What I need to do is change a custom attribute on the user in the cognito user pool via a Lambda backend process. …
Dan Herman
  • 1,395
  • 1
  • 15
  • 26
8
votes
1 answer

How to solve AWS Amplify error: CustomerError Framework Web not supported

I have an AWS Amplify application (next.js, node v16.18.1) with two builds (dev & prod branch). One week ago the prod build failed with the following error message without any code being modified: !!! CustomerError Framework Web not supported The…
JJ Fran
  • 81
  • 2
8
votes
2 answers

NEXTJS Amplify slow server response

I've a SSR App Nextjs 12 installed on AWS Amplify that's too slow. Logging the getServerSideProps() this is the result: It takes 9 seconds to load page but the code inside getServerSideProps takes less than 0.5 second. This is the server log: START…
8
votes
1 answer

Amplify: Lambda@Edge for Next CloudFront + DynamoDB permissions problem

I am deploying a Next.js app to Amplify with the amplify-cli. I've connected my amplify app to a couple of existing (created with terraform) DynamoDB tables. I've managed to modify the attached amplify app's Service role adding in the…
8
votes
3 answers

RequestHeaderSectionTooLarge: Your request header section exceeds the maximum allowed size

We are using AWS Amplify for our NextJS web app and keep receiving error when ever I try to load the application once deployed to Amplify. Locally there is no issue. I am using Amplify's default Auth configuration, with basic email and password…
georgeperry
  • 184
  • 2
  • 4
  • 13
8
votes
2 answers

AWS Auth update failed stuck on UPDATE_ROLLBACK_FAILED state

I've added the google sign in to my app and tried to push the modifications, however I didn't have permissions to do that. After I got the permissions, I tried to amplify push but I get this…
8
votes
0 answers

Add existing AppSync API to AWS Amplify

The problem When I run CodeBuild inside of Amplify, my AppSync credentials are overwritten, breaking the build. Details I'm building a ReactJS site using AWS Amplify as the backend. The project is being deployed using the Amplify built-in CodeBuild.…
8
votes
2 answers

Get Cognito user attributes in Lambda function

I'm using AWS Amplify to create a Lambda function, REST API, and Cognito user pool. I want to retrieve the Cognito user who made the request to the endpoint so I can access their user attributes. I selected the serverless Express template for the…