turnkeylinux / tracker

TurnKey Linux Tracker
https://www.turnkeylinux.org
70 stars 16 forks source link

Hub - custom domain (i.e. hosted zone) removed via AWS console can not be removed from Hub #1207

Open JedMeister opened 6 years ago

JedMeister commented 6 years ago

A Hub user has just reported the following: A domain configured within the Hub via the Hub's custom domains feature, was removed via the AWS console.

However the domain still shows in the Hub. If the user tries to remove it from the Hub (via the "Destroy" button) the Hub responds with an error (AWS account ID and hosted zone ID redacted):

AccessDenied: 
User: arn:aws:sts::xxxxxxxxxxxx:assumed-role/turnkeyhub/hub is not authorized to perform:
DeleteHostedZone on resource: arn:aws:route53:::hostedzone/Zxxxxxxxxxxxxx
jeff-dagenais commented 6 years ago

Hitting the "refresh" button on the domain causes a oops page, but returning to the domains page cleared up the stale domain.

So refresh fixes the problem, albeit not so elegantly.

JedMeister commented 6 years ago

Thanks for the info @jeff-dagenais - good to know that there is a (somewhat clunky) workaround. Better than nothing.