Open beyang opened 8 years ago
Weird, I deleted the bucket and user multiple times in testing and never encountered that error. Did you wait 1-2 seconds before running it? Maybe their system was still in the process of deleting the bucket or user...
(Also, ideally checkup provision would proceed with subsequent steps in the provisioning if the user already exists.)
Yeah, it probably would be better this way.
@beyang I suspect this is just AWS taking time to delete the S3 bucket (as @mholt suggested) and that you tried to recreate the bucket too quickly after deleting it. You can see other people having the issue here. See especially the comments about it taking up to 1 - 1.5 hours before they could recreate the bucket.
I'm also not sure how to assert that the error is one of "user already exists" as opposed to something else -- at least not without a separate API request.
@mholt I think the http error response might work? They have a few different error responses anyway. Below taken from the AWS IAM docs.
EntityAlreadyExists The request was rejected because it attempted to create a resource that already exists. HTTP Status Code: 409
I get the following error when going through the install instructions.
I was trying to use an existing S3 bucket and initially got an error saying that the bucket already existed. I then deleted the bucket and the IAM user that checkup creates, and when I try to re-run provision, I get the above error. (Also, ideally
checkup provision
would proceed with subsequent steps in the provisioning if the user already exists.)I can work around this by just manually provisioning the bucket and using the created user, so not super urgent.