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
1
vote
2 answers

Mixed content error between ReactJS on AWS Amplify and Spring boot service on EC2

I've deployed a ReactJS application in AWS Amplify. That ReactJS app calling a Spring boot service that runs in same AWS EC2 instance. I am getting the following error from ReactJS App that calls EC2 instance. Mixed Content: The page at…
Stella
  • 1,728
  • 5
  • 41
  • 95
1
vote
1 answer

How to increase timeout of Amplify in Nextjs? (504 code)

I'm new to AWS and hosted a NextJS using Amplify where my application does have an API that takes 20-30 seconds to complete (App script connected). Right now, every request of this function return 504. My fetch duration: Tried reading the…
1
vote
1 answer

Provisioning AWS Amplify using Terraform

I am trying to provision the AWS amplify using Terraform and when I do terraform init and terraform plan there is no error but when applying (terraform apply) it is giving me error Error: creating Amplify App (nextjs_app_amplify):…
1
vote
0 answers

Can't setup Aws amplify Authentication with SSR, on Next js 13

I am trying to setup aws amplify on my next js app, with app directory to run on server side. Here is my setup code: import { Amplify } from "aws-amplify"; interface Props { children: React.ReactNode; } const awsconfig = { region:…
1
vote
1 answer

AWS Amplify React Javascript Auth.currentAuthenticatedUser() error because user has not signed-up. (Exact error is "The user is not authenticated")

I'm learning AWS Amplify React Javascript and building a basic UI chatbot app. I'm a python programmer and new to javascript and React. I have an awesome backend (AWS lambda functions in python with AWS Lex etc) and now trying to build a basic UI.…
Tim Manns
  • 11
  • 2
1
vote
0 answers

How to resolve CORS error between FastAPI and Vuejs?

I have this problem: Access to XMLHttpRequest at 'https://blabla.execute-api.blabla.amazonaws.com/prod/sondage/croisement/test/' from origin 'https://master.test.amplifyapp.com' has been blocked by CORS policy: Request header field content-type is…
1
vote
1 answer

Missing Build settings in AWS Amplify Hosting for Flutter Web Apps deployment

I'm trying to use AWS Amplify Hosting to deploy my Flutter Web App. as you may know amplify is supporting flutter web apps now, but looks like there is something missing in build settings. after I finished attaching my GitHub repository, the build…
Reza
  • 193
  • 1
  • 2
  • 19
1
vote
0 answers

Accessing process.env.secrets in Amplify Build Commands

I'm following these docs on Environment Secrets and am trying to access my secret in a build command to provide an api key for my Next.js app. The docs say: Accessing an environment secret during a build is similar to accessing environment…
av0000
  • 1,917
  • 6
  • 31
  • 51
1
vote
0 answers

Is it possible to sync data at specific intervals in react native using AWS Amplify DataStore

I'm using AWS Amplify DataStore in my react native application. It seems as if at every moment DataStore is trying to sync data, this has however slowed down the performance of my application. I wanted to know if there's a way to sync data only at…
1
vote
0 answers

AWS Amplify python backend auth with frontend auto

Since withAuthenticator helps handling the frontend portion of authentication, I wonder if there are still needs to add extra wrappers to python backend? The Lambda functions for the backend does not have public access. Also, there is no plan to…
1
vote
1 answer

Amplify `authState` stays `unauthenticated` after successful login - need to force-refresh useAuthenticator authState [React]

I am using Amplify auth to handle authentication. However, after I do the Auth.signIn() and Auth.confirmSignIn() (for the user to enter the 6-digit code), the value returned from the hook useAuthenticator for authStatus is 'unauthenticated' and for…
1
vote
1 answer

Getting Error: CredentialsError: Missing credentials in config, if using AWS_CONFIG_FILE, set AWS_SDK_LOAD_CONFIG=1 in production nextjs app

I have the following code to upload files received by my API (sent using a formidable form), which works perfectly fine in my dev environment: const product = { post: async (req, res) => { await dbConnect() const form = new…
1
vote
0 answers

Handling Multi-Model Conflicts in AWS Amplify

Most AWS Amplify/AppSync tutorials and examples explain how conflict resolution is usually automatic with this tech stack, and in extreme examples show how to custom handle a conflict when saving an instance of a single Model. What happens when you…
jdowdell
  • 1,578
  • 12
  • 24
1
vote
0 answers

How to debug AWS Amplify REST API with lambda layers

I created the most mundane API in amplify and want to debug it with browser dev tools like you would do with node --inspect. Problem: Amplify mock doesn't support lambda layers and the docs don't mention any way of local backend development. Is that…
Simon Dubek
  • 156
  • 1
  • 8
1
vote
0 answers

AWS Amplify libraries break Expo app with TypeErrors

I have an expo react native project that uses Amplify for Authentication. When I include any Amplify library I start getting the bellow errors. ERROR TypeError: Super expression must either be null or a function, js engine: hermes at…
Nikola-Milovic
  • 1,393
  • 1
  • 12
  • 35
1 2 3
99
100