Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve error message of missing CDK bootstrap resources #921

Closed
kgopelo-dot opened this issue Jan 16, 2024 · 3 comments
Closed

Improve error message of missing CDK bootstrap resources #921

kgopelo-dot opened this issue Jan 16, 2024 · 3 comments
Labels
console Issues related to Amplify console UI/UX feature-request New feature or request p2 sandbox Related to the sandbox experience

Comments

@kgopelo-dot
Copy link

Environment information

null

Description

AmplifyGen2 uses a one-time bootstrap setup for account and region before it can start deploying resources per docs. However, if one of the deployed resources are removed e.g cdk-hnb659fds-deploy-role-XXX-us-west-2, AmplifyGen2 cannot detect and the application will not deploy and fail with error:

This CDK deployment requires bootstrap stack version '6', but during the confirmation via SSM parameter /cdk-bootstrap/hnb659fds/version the following error occurred: AccessDeniedException

Steps to reproduce:

  1. Run npx amplify sandbox on new region.
  2. Wait for one time bootstrapping and deploy application.
  3. Remove CDKToolkit resources e.g cdk-hnb659fds-deploy-role-XXXXX-us-west-2
  4. Try to deploy again.
@kgopelo-dot kgopelo-dot added the pending-triage Incoming issues that need categorization label Jan 16, 2024
@ykethan
Copy link
Member

ykethan commented Jan 16, 2024

Hey @kgopelo-dot, thank you for reaching out. The issue appears to be similar to aws/aws-cdk#17942, the comment here further explains the working. In this case as the CDK toolkit was removed we should be able to run cdk bootstrap and update the toolkit.
Marking this as feature-request to update the error message and consider auto-upgrading the tool kit versions.

@ykethan ykethan added feature-request New feature or request sandbox Related to the sandbox experience and removed pending-triage Incoming issues that need categorization labels Jan 16, 2024
@edwardfoyle edwardfoyle changed the title Include all required permissions to deploy Gen2 application in AmplifyBackendDeployFullAccess policy or similar Improve error message of missing CDK bootstrap resources Jan 17, 2024
@ykethan ykethan added the p2 label Jan 24, 2024
@arundna arundna added the console Issues related to Amplify console UI/UX label Jan 26, 2024
@Milan-Shah
Copy link

Milan-Shah commented Feb 9, 2024

We are working on enhancing the experience for Bootstrap experience in Console, specifically addressing the issue you called out above. It is in progress and will update the this ticket once our changes are deployed in production.

@Milan-Shah
Copy link

This issue has been fixed and rolled out to all regions. If you are still having any issues, please let us know.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
console Issues related to Amplify console UI/UX feature-request New feature or request p2 sandbox Related to the sandbox experience
Projects
None yet
Development

No branches or pull requests

4 participants