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

spaces: Validate input for region. #618

merged 2 commits into from Apr 19, 2021


Copy link

@andrewsomething andrewsomething commented Apr 19, 2021

Do some input validation on the region for Spaces operations as the no such host error message is not helpful. The new error would be:

Error: expected region to be one of [nyc3 sfo2 sfo3 ams3 sgp1 fra1], got ny2

  on line 21, in resource "digitalocean_spaces_bucket" "i-dont-exist":
  21:   region = "ny2"

Fixes: #617

Copy link

@scotchneat scotchneat left a comment


@andrewsomething andrewsomething merged commit 605d31d into main Apr 19, 2021
3 checks passed
@andrewsomething andrewsomething deleted the issues/617/spaces-region-validate branch Apr 19, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
None yet
None yet

Successfully merging this pull request may close these issues.

3 participants