Open nikolai-kosolapov opened 5 days ago
We had a similar issue and kinda fixed it by adding AmazonSSMFullAccess
🙈 in IAM to the user we use for running npx ampx pipeline-deploy
:
However now I am stuck with:
❌ Deployment failed: Error: amplify-xxx-deploy-branch-xxx: SSM parameter /cdk-bootstrap/xxx/version not found. Has the environment been bootstrapped? Please run 'cdk bootstrap' (see https://docs.aws.amazon.com/cdk/latest/guide/bootstrapping.html)
at Deployments.validateBootstrapStackVersion (/home/test-project/node_modules/.pnpm/aws-cdk@2.147.0/node_modules/aws-cdk/lib/index.js:454:12210)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async Deployments.buildSingleAsset (/home/test-project/node_modules/.pnpm/aws-cdk@2.147.0/node_modules/aws-cdk/lib/index.js:454:10975)
at async Object.buildAsset (/home/test-project/node_modules/.pnpm/aws-cdk@2.147.0/node_modules/aws-cdk/lib/index.js:454:197349)
at async /home/test-project/node_modules/.pnpm/aws-cdk@2.147.0/node_modules/aws-cdk/lib/index.js:454:181491
amplify-xxx-deploy-branch-xxx: SSM parameter /cdk-bootstrap/xxx/version not found. Has the environment been bootstrapped? Please run 'cdk bootstrap' (see https://docs.aws.amazon.com/cdk/latest/guide/bootstrapping.html)
Hey @anbraten @nikolai-kosolapov, does the service role attached to the app have the AmplifyBackendDeployFullAccess attached?
I have to create a new app. In old one I cannot set the role even if ui says it is set up successfully.
@nikolai-kosolapov @anbraten Can you confirm if these are the accurate reproduction steps for the issue you're facing. If not, feel free to provide any additional details or clarifications to ensure we have a clear understanding of the problem:
ampx pipeline-deploy
.General settings
-> Edit
-> Select the service role -> Save
.I had my react native repo without amplify app. I created an Amplify app from that repo. Then I added Amplify code locally (authentication) I added backend section to the build configuration.
Environment information
Description
I'm trying to add Amplify to my existing Expo React Native app.
I was trying to add Authentication but nothing happened. Then I noticed that in build section there is no backend section. A added the following:
but now I have errors during the deployment: