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

The televisit deployment fails #151

Open
simmkyu opened this issue Feb 11, 2022 · 1 comment
Open

The televisit deployment fails #151

simmkyu opened this issue Feb 11, 2022 · 1 comment

Comments

@simmkyu
Copy link
Collaborator

simmkyu commented Feb 11, 2022

Demo
Specify the name of the demo that you encountered the bug.

Describe the bug

Running the ./deploy.sh script failed with the following errors:

Deploy this changeset? [y/N]: y

2022-02-11 15:18:03 - Waiting for stack create/update to complete

CloudFormation events from changeset
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
ResourceStatus                                 ResourceType                                   LogicalResourceId                              ResourceStatusReason                         
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
CREATE_IN_PROGRESS                             AWS::CloudFront::CloudFrontOriginAccessIdent   CloudFrontDistributionAccessIdentity           -                                            
                                               ity                                                                                                                                        
CREATE_IN_PROGRESS                             AWS::S3::Bucket                                createWebSiteS3Bucket                          -                                            
CREATE_FAILED                                  AWS::S3::Bucket                                createWebSiteS3Bucket                          frontenddeploy already exists                
CREATE_FAILED                                  AWS::CloudFront::CloudFrontOriginAccessIdent   CloudFrontDistributionAccessIdentity           Resource creation cancelled                  
                                               ity                                                                                                                                        
ROLLBACK_IN_PROGRESS                           AWS::CloudFormation::Stack                     chime-sdk-televisit-frontend                   The following resource(s) failed to create:  
                                                                                                                                             [createWebSiteS3Bucket,                      
                                                                                                                                             CloudFrontDistributionAccessIdentity].       
                                                                                                                                             Rollback requested by user.                  
DELETE_COMPLETE                                AWS::S3::Bucket                                createWebSiteS3Bucket                          -                                            
DELETE_COMPLETE                                AWS::CloudFront::CloudFrontOriginAccessIdent   CloudFrontDistributionAccessIdentity           -                                            
                                               ity                                                                                                                                        
ROLLBACK_COMPLETE                              AWS::CloudFormation::Stack                     chime-sdk-televisit-frontend                   -                                            
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Error: Failed to create/update the stack: chime-sdk-televisit-frontend, Waiter StackCreateComplete failed: Waiter encountered a terminal failure state: For expression "Stacks[].StackStatus" we matched expected path: "ROLLBACK_COMPLETE" at least once

Copying Files to S3
upload failed: dist/chat-bundle.js to s3://None/chat-bundle.js An error occurred (NoSuchBucket) when calling the CreateMultipartUpload operation: The specified bucket does not exist
upload failed: dist/chat.html to s3://None/chat.html An error occurred (NoSuchBucket) when calling the PutObject operation: The specified bucket does not exist

The frontend stack failed in the CloudFormation console. The last status is ROLLBACK_COMPLETE.

To Reproduce
Steps to reproduce the behavior:

  1. Clone https://github.com/aws-samples/amazon-chime-sdk/tree/main/apps/televisit-demo
  2. Run the deployment script:
    cd apps/televisit-demo
    ./deploy.sh
    

Expected behavior
A clear and concise description of what you expected to happen.

The deployment should succeed without any error.

Desktop (please complete the following information):

  • OS: macOS 11.6.2
  • Browser: N/A
  • Version: N/A
@simmkyu
Copy link
Collaborator Author

simmkyu commented Feb 11, 2022

The issue is that the default frontend bucket name is frontenddeploy.

  • We should append random strings or let CF choose the name if a builder does not provide it.
  • If a builder provides a duplicated bucket name, the deployment step should warn and let them choose a new name. Currently, the frontend stack's deployment is automatically rolled back for duplicate name errors. A builder needs to delete all stacks and buckets to try again.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant