4,944 questions
0
votes
0
answers
26
views
Next.js + AWS Amplify Middleware not redirecting after first login until refresh
I am working on a project using Next.js (App Router) and AWS Amplify Auth. I have implemented middleware to restrict access and redirect users based on a custom Cognito attribute (custom:...
0
votes
1
answer
42
views
Amplify Flutter + Cognito Identity Pool works via AWS CLI but fails in app (“No identity pool registered for this account”)
I’m integrating AWS IoT Core with a Flutter app that already uses Amplify Auth (Cognito User Pool).
To allow IoT connections, I added a Cognito Identity Pool section to my amplifyconfiguration.dart (...
0
votes
1
answer
31
views
AWS Amplify Long type to Int64 with Swift and GraphQL
I have issue where I cannot map Long type in Swift.
E.g. schema.graphql
scalar Long
input TableLongFilterInput {
between: [Long]
contains: Long
eq: Long
ge: Long
gt: Long
le: Long
lt: ...
8
votes
2
answers
1k
views
Next.js App Build Fails on AWS Amplify with Missing deploy-manifest.json Error
I'm trying to deploy a Next.js application on AWS Amplify, and it builds fine locally. However, when I push my changes to Amplify, the build fails with an error stating that deploy-manifest.json ...
Advice
0
votes
6
replies
50
views
Display line of code in AWS CloudWatch for Amplify NodeJS written in typescript
I have the following resource in Amplify v2:
export const myFunction = defineFunction({
name: 'my-function',
layers: {
sharp: "sharp_arm64:1",
},
environment: {
BUCKET_NAME: ...
0
votes
0
answers
18
views
Customising incorrect and broken domain from amplify's build notification on sns
We've a 3 envs for our amplify project, one of being dev, from the branch dev/main, but, the actual domain it's for / that we're interested in is https://dev.seaders.com. The notification that comes ...
0
votes
0
answers
54
views
How to Eagerly Load Related Model Without TypeScript Error
I want to eagerly load a related aws-amplify gen 2 model and pass it on, but it seems to cause a typescript error no matter what I try. How do I do this without causing a typescript error?
For ...
0
votes
2
answers
2k
views
AWS Amplify with Next.js how to access environment variables in api?
I have an Amplify app (frontend only) serving my Next.js app. In side my /api/ folder I have a file that creates the stripe session to redirect the user to Stripe in order to pay.
In order to create ...
1
vote
1
answer
276
views
Getting error while deploying into AWS Amplify - Error: Cannot find module '../lightningcss.linux-x64-gnu.node'
I'm trying to deploy Next.js application in AWS Amplify - But I'm getting this error
I tried solutions mentioned on gitub, which was having the solution for similar error, but it didn' resolve.
...
0
votes
0
answers
27
views
Client of Amplify Gen 2 is not being properly generated for subscription
Logging const client = generateClient<Schema>(); results in the following, which shows that the client is improperly generated:
{
"models": {},
"enums": {},
"...
1
vote
1
answer
589
views
AWS-Amplify is not updating my index.html file in public folder
I've changed the meta tags in my index.html. But this is not updating in amplify. I have a git connection that auto-builds...why is not pulling these changes from git when it builds and deploys?
1
vote
0
answers
57
views
Unable to complete Amplify v6 Cognito OAuth flow in my Next.js App
I am using Amplify and Cognito's hosted UI Login page to handle my user authentication. I am able to redirect to the cognito hosted page, enter my user credentials, and redirect page to my sign in ...
-1
votes
1
answer
86
views
(Amplify Gen 2) Bedrock AI Generation Produces ValidationException (Mapping Error) [closed]
I'm following the AWS Amplify Gen 2 documentation here: https://docs.amplify.aws/react-native/ai/generation/ exactly as it is written. Our ./amplify/data/resource.ts looks like this:
const schema = a....
0
votes
1
answer
61
views
NextAuth Google Login Redirect to Localhost instead of Production Domain
I am doing a project which will use Google Login in NextJs
This is my setting in OAuth 2.0
and in amplify environment variables
After I deployed the app and try to login
It redirect me to http://...
0
votes
1
answer
144
views
Changing the UI/UX of the Authentication package
I used the AWS Authentication package in Flutter, but I want to change the UI/UX. How do I alter the custom sign-in, sign-up, forgot password and sign-out forms in the package?
0
votes
0
answers
26
views
AWS Amplify signInWithRedirect integration with Azure AD (Entra ID) App Registration. Can't set Application ID URI to "urn:amazon:cognito:..." anymore
To integrate my apps with Active Directory I add the following to amplify/auth/resource.ts:
externalProviders: {
saml:
{
name: 'MyApp',
...
1
vote
0
answers
46
views
Process is not defined / process.binding is not supported error after deployment, but works locally
I have a Next.js 15 project that uses AWS Amplify (Cognito) for authentication.
Here’s a simplified version of my config file:
"use client"
import { Amplify, type ResourcesConfig } from &...
0
votes
1
answer
87
views
Nextjs 15+ on aws amplify
I'm deploying a nextjs app router project on AWS Amplify, not my personall preference but the client wants it on AWS
When deploying, I found that the Amplify enforces minimal edge runtime on all of my ...
3
votes
6
answers
3k
views
CustomerError: Can't find required-server-files.json in build output directory
I have an issue when I deploy our next js app to AWS amplify the build done but CustomerError occurs that blocks my deployment: here are my logs
2024-01-25T20:11:31.852Z [INFO]:
2024-01-25T20:11:31....
0
votes
1
answer
39
views
How to wire AWS amplify resources together
In an AWS Amplify backed application, I can define two data models Inventory and Order. Then Amplify generates a GraphQL API and underlying DynamoDB tables for these models.
Then I can create a ...
1
vote
0
answers
128
views
Expo SDK 54 + AWS Amplify Auth (Cognito v5) → TypeError: Cannot read property 'computeModPow' of null on login
After upgrading my React Native project to Expo SDK 54 (React Native 0.81.4), the login flow using AWS Amplify Auth (Cognito v5) stopped working.
When calling Auth.signIn(username, password) I get ...
0
votes
0
answers
27
views
Does Amplify AWS does not generate device token on V6 for Push Notification?
According to the latest documentation of Aws Amplify V6 ,to generate token we have to use onTokenReceived from aws-amplify/push-notification for implementing push-notifications on Mobile using react-...
0
votes
1
answer
56
views
AWS IoT MQTT test client with Amplify GEN 1
I’m trying to connect my React webapp (Vite + TypeScript) to AWS IoT Core over MQTT WebSocket using Amplify GEN 1 with AWSIoTProvider. I've been following this docs
I configured Amplify and PubSub ...
0
votes
1
answer
383
views
Nuxt build fails on AWS Amplify: Failed to find the deploy-manifest.json file in the build output
I'm trying to deploy nuxt app on the AWS Amplify, but for some reason at the end of the build, I'm getting this error:
CustomerError: Failed to find the deploy-manifest.json file in the build output. ...
0
votes
0
answers
72
views
How to properly use "limit" in AWS Amplify Gen2 list-function?
Please help me to understand how to properly and correctly use the list-function of AWS Amplify.
After running into many issues of existing data not being found/retrieved, I found out that if no "...
0
votes
1
answer
56
views
AWS Amplify Gen 2 runtime env vars not available at SSR, causing undefined errors
Major issues
I have a Next.js application that previously ran without issues on Vercel. However, upon deploying it to AWS Amplify, I encountered a 500 Internal Server Error. Based on the CloudWatch ...
1
vote
1
answer
113
views
Google external provider redirect is coming from a different origin error
I have an Amplify Gen 2 app with Google SSO.
When developing locally and when using AWS generated domains like https://dev.app_id.amplifyapp.com Google SSO works great.
On Google Cloud credentials ...
0
votes
0
answers
28
views
Bundling files with a lambda function in Amplify Gen2
I am trying to reference a directory of files in a lambda function using Amplify Gen2. I have created the folder in /functions/validateJsonAgainstSchema with the handler.ts file
import Ajv2020 from '...
1
vote
1
answer
57
views
Add a Policy Statement to a Trigger in Amplify
I'm writing a Gen2 Amplify application and I want to implement a post-confirmation trigger to call an external service and save part of the response as a custom attribute of the user's profile. My /...
26
votes
9
answers
39k
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 ...
1
vote
1
answer
56
views
404 in DevTool Console for website on AWS Amplify/Vue
I’m running into an issue with my AWS Amplify-hosted website, which is built using Vue 3 and Vite.
When I load the main page (e.g., https://url.de/) and navigate to sub-pages (e.g., https://url.de/...
0
votes
1
answer
1k
views
How to fix aws amplify push causing cloudformation errors saying UPDATE_COMPLETE_CLEANUP_IN_PROGRESS
I am stuck on what to do with this amplify push error. I made changes in dev and pushed to amplify and it worked. Then I merged the changes to main and pushed the main amplify environment, but this ...
0
votes
3
answers
2k
views
Next.js 13 + AWS CDK v2, amplify. 500 Internal Server Error in dynamic routing SSR
Made a small next.js13 project with amplify and CDKv2. When I go to url -> item/[id] it gives me 500 internal Server error. This issue is only after I deploy to production. Everything works in ...
16
votes
4
answers
16k
views
How to deploy an AWS Amplify app from GitHub Actions?
I want to control Amplify deployments from GitHub Actions because Amplify auto-build
doesn't provide a GitHub Environment
doesn't watch the CI for failures and will deploy anyways, or
requires me to ...
0
votes
1
answer
81
views
How to use two authmodes in AWS amplify gen2
I want to use both userPool and identityPool auth modes in my Amplify Gen 2 app. I need unauthenticated users to have read-only access, and authenticated users to have full access. But currently, I ...
0
votes
0
answers
35
views
Nextjs Amplify images gives 404
Using the Nextjs 15 app router-based project and deploying on AWS Amplify.
The project is a turborepo setup, and the configuration files are
next.config.ts
import { withSentryConfig } from "@...
3
votes
2
answers
2k
views
Amplify Flutter: how to implement Auto Login and obtain authToken
I'm using Amplify Flutter to implement user authentication in my Flutter app and can't figure out the following two things:
Auto-login: How do I implement auto-login so that users remain logged in ...
0
votes
0
answers
526
views
Deploying nextjs turbopack application returns 404 error
I have a Next.js 15 application that builds successfully on AWS Amplify but returns a 404 error when accessing the deployed site. The build completes without errors, but the homepage and other routes ...
4
votes
3
answers
5k
views
AWS Amplify Connecting to GoDaddy - Documentation Unclear - Redirects Too Many Times
I am trying to connect my Amplify app to a GoDaddy website and the AWS instructions are not clear on how to do this.
Following these instructions I created a CNAME record to point to my Amplify app.
...
4
votes
2
answers
2k
views
Unable to assume specified IAM Role when deploying with AWS Amplify using GitHub
I was trying to deploy my application with AWS Amplify using github and I got this error :
2020-07-03T10:39:32.225Z [ERROR]: !!! Unable to assume specified IAM Role. Please ensure the selected IAM ...
0
votes
0
answers
60
views
NextJS (15.4.3) deploy to Amplify - keeps failing, seems to be a paths issue
Deploys to Vercel just fine, but fails on the build in Amplify every time.
Error: Cannot find module '@tailwindcss/postcss'
Module not found: Can't resolve '@/auth'
Module not found: Can't resolve '...
5
votes
1
answer
1k
views
AWS Amplify Environment secrets not showing up on the front end
I'm running a React App, the frontend code is stored in my GitHub repo, and I am running a deployment using AWS Amplify
I'm trying to store an API key using AWS Systems Manager (SSM) Parameter Store ...
0
votes
1
answer
213
views
Amplify deployments are failing due to error saying Unable to assume specified IAM Role (Backend app)
I have been using AWS Amplify Gen 2 without any issues until 1 month back. But Yesterday when I pushed some code and tried to deploy it, it failed. The error I got was:
2025-07-24T00:22:12.992Z [ERROR]...
58
votes
10
answers
57k
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....
0
votes
0
answers
22
views
Handling user social provider sign in Amplify Gen2
I'm trying to fetch the user's attributes in my react app, after he signed in through Google as a social provider.
I successfully sign in/up the user using the signInWithRedirect({provider: 'Google'});...
1
vote
0
answers
63
views
Trigger Lambda function backend onChange AWS Amplify Gen 2
I couldn't find any instructions on how to add listeners or ways to trigger a lambda function when events fire. I have a few lambdas set up as part of the sign-up/auth flow but I am struggling to get ...
1
vote
3
answers
758
views
Using AWS Amplify, I'm trying to find the table name for the dynamodb table that is created with the data/resource. How Can I find that?
I'm trying to find the table name to use the dynamo db that is auto generated using AWS Amplify after creating a schema using 'data'. How can I find that?
Here is what I've tried:
resource.ts file
...
2
votes
2
answers
1k
views
AWS-Amplify DataStoreStateError: Tried to execute DataStore.query() while DataStore was "Stopping"
JavaScript Framework
React Native
Amplify APIs
DataStore
Amplify Categories
api
Environment information
Details
Describe the bug
DataStoreStateError: Tried to execute DataStore.query() while DataStore ...
0
votes
1
answer
124
views
AWS Amplify Authentication Configuration Error in Vite + React Application Problem
I'm getting the following error when trying to configure AWS Amplify authentication in my Vite + React application:
`Uncaught TypeError: Cannot read properties of undefined (reading 'loginWith')
...
10
votes
6
answers
6k
views
AWS amplify auth How to remove redirect uri
How can I remove a redirect uri using amplify.
Running amplify auth update gives no option for removing a redirect uri, there is only a 'add/edit' option. I have tried to look through the ...