aws-amplify / amplify-backend

Home to all tools related to Amplify's code-first DX (Gen 2) for building fullstack apps on AWS
Apache License 2.0
164 stars 56 forks source link

First deployment of vite app failed #1953

Open swaminator opened 2 weeks ago

swaminator commented 2 weeks ago

Environment information

Vite-react 1-click deploy

Describe the bug

Customer tweeted here: https://x.com/davidefish/status/1829206390080188445. They have the role assigned but they get the following error:

image

Reproduction steps

Deploy Vite-React sample

Jay2113 commented 1 day ago

👋 I just tested the Vite-React quickstart guide and was able to deploy the backend without any errors. The outlined error can typically occur if the IAM role is missing permissions to deploy the necessary backend resources.

From the discussion on the X thread, it seems that the IAM role is using the correct managed IAM policy so that can be ruled out.

As next steps, I will recommend reviewing the Service Control Policies that could be enforced on the IAM user/role on an account level within the organization. The SCPs are used to guardrail permissions and can lead to such build failures due to missing permissions.