confetti-clj / confetti

🎉 A tool to help creating and deploying static sites with AWS
Mozilla Public License 2.0
101 stars 6 forks source link

create-site never finishes #27

Closed pesterhazy closed 7 years ago

pesterhazy commented 8 years ago
$ boot -d confetti create-site --domain domain.name --access-key $AWS_ACCESS_KEY_ID --secret-key $AWS_SECRET_ACCESS_KEY --dns
Reporting events generated while creating your stack.
Be aware that creation of CloudFront distributions may take up to 15min.

 - [create-in-progress] AWS::CloudFormation::Stack - User Initiated
 - [create-in-progress] AWS::S3::Bucket
 - [create-in-progress] AWS::Route53::HostedZone
 - [create-in-progress] AWS::S3::Bucket - Resource creation Initiated
 - [create-in-progress] AWS::Route53::HostedZone - Resource creation Initiated
 - [create-complete] AWS::S3::Bucket
 - [create-in-progress] AWS::S3::BucketPolicy
 - [create-in-progress] AWS::CloudFront::Distribution
 - [create-in-progress] AWS::IAM::User
 - [create-in-progress] AWS::S3::BucketPolicy - Resource creation Initiated
 - [create-in-progress] AWS::IAM::User - Resource creation Initiated
 - [create-in-progress] AWS::CloudFront::Distribution - Resource creation Initiated
 - [create-complete] AWS::S3::BucketPolicy
 - [create-complete] AWS::Route53::HostedZone
 - [create-complete] AWS::IAM::User
 - [create-in-progress] AWS::IAM::AccessKey
 - [create-in-progress] AWS::IAM::AccessKey - Resource creation Initiated
 - [create-complete] AWS::IAM::AccessKey

The command has been stuck at this point for more than 30 minutes. The cloudfront distribution seems to have finished in the meantime.

martinklepsch commented 8 years ago

This has happened to me once when the network was down while checking for status updates.

If you want to retrieve the secrets and other data that would've otherwise ended up in the edn file you can get that from the stack outputs in the AWS console.

Probably the reporting should fail if there's some sort of interruption.

I think there also is a ticket about making a task that retrieves the output after creation to ease the pain In those cases. On Sun, 31 Jul 2016 at 21:18, Paulus Esterhazy notifications@github.com wrote:

$ boot -d confetti create-site --domain domain.name --access-key $AWS_ACCESS_KEY_ID --secret-key $AWS_SECRET_ACCESS_KEY --dns Reporting events generated while creating your stack. Be aware that creation of CloudFront distributions may take up to 15min.

  • [create-in-progress] AWS::CloudFormation::Stack - User Initiated
  • [create-in-progress] AWS::S3::Bucket
  • [create-in-progress] AWS::Route53::HostedZone
  • [create-in-progress] AWS::S3::Bucket - Resource creation Initiated
  • [create-in-progress] AWS::Route53::HostedZone - Resource creation Initiated
  • [create-complete] AWS::S3::Bucket
  • [create-in-progress] AWS::S3::BucketPolicy
  • [create-in-progress] AWS::CloudFront::Distribution
  • [create-in-progress] AWS::IAM::User
  • [create-in-progress] AWS::S3::BucketPolicy - Resource creation Initiated
  • [create-in-progress] AWS::IAM::User - Resource creation Initiated
  • [create-in-progress] AWS::CloudFront::Distribution - Resource creation Initiated
  • [create-complete] AWS::S3::BucketPolicy
  • [create-complete] AWS::Route53::HostedZone
  • [create-complete] AWS::IAM::User
  • [create-in-progress] AWS::IAM::AccessKey
  • [create-in-progress] AWS::IAM::AccessKey - Resource creation Initiated
  • [create-complete] AWS::IAM::AccessKey

The command has been stuck at this point for more than 30 minutes. The cloudfront distribution seems to have finished in the meantime.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/confetti-clj/confetti/issues/27, or mute the thread https://github.com/notifications/unsubscribe-auth/AAF82ASitDTunM62gFZxyXnSjmoEs78tks5qbPTrgaJpZM4JZGYP .

martinklepsch commented 7 years ago

There's now fetch-outputs which can be used to fetch Cloudformation outputs if the progress reporting gets stuck.