r/Amplify • u/TheChaosPaladin • Dec 06 '25
Currently Facing A Weird Amplify Error! My App Fails To Deploy to Sandbox but not to Production. Any clues?
Hi y'all, as the title says. I am trying to spin a React Amplify app. I have a working version of my backend and I was attempting to deploy sandbox + localhost. I have been able to push and deploy successfully through the Amplify CI/CD hook to my github repo but when deploying to sandbox I got this error.
✔ Backend synthesized in 9.08 seconds
✔ Type checks completed in 18.16 seconds
✔ Built and published assets
[ERROR] [AccessDeniedError] Unable to deploy due to insufficient permissions
Resolution: Ensure you have permissions to call dynamodb:DescribeTable for arn:aws:dynamodb:us-east-2:***********:table/amplify-farmvault-prototype-sandbox-85d6650-amplifyDataIoTDeviceNestedStackIoTDeviceNe-GDQ06H30H4KQ-IoTDeviceTable-1J8WJH1I7SYN8
I dont understand it since I am running with AWS admin creds so there should not be anything that it would be unable to create. Any ideas or input?
1
u/mrbeaterator Dec 06 '25
There’s probably a service control policy in your sandbox; those are set in organization s. You can confirm this via policy simulator
1
u/No_Specific3882 Dec 07 '25
Your backend might require an IAM policy for that resource? Are there any custom functions accessing that table?
1
u/No-Show8750 Dec 08 '25
Hello u/TheChaosPaladin , did you follow the instruction here: https://docs.amplify.aws/react/start/account-setup/ to setup SSO that's used for sandbox auth?