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

[OpenStack] region should not be required #1441

Closed
bpo opened this issue Apr 9, 2015 · 2 comments · Fixed by #1490
Closed

[OpenStack] region should not be required #1441

bpo opened this issue Apr 9, 2015 · 2 comments · Fixed by #1490
Labels

Comments

@bpo
Copy link

bpo commented Apr 9, 2015

Trying out the OpenStack provider, this seemed a bit confusing to me. The region field is required for several resources in the OS provider, e.g. this will fail validation:

resource "openstack_compute_instance_v2" "test-server" {
  name = "tf-test"
  image_id = "${var.imageid}"
  flavor_name = "m1.small"
  key_pair = "${var.keypair}"
  #region = ""
}

I would have expected this value to just default to the empty string. Region specification (and/or the env variable OS_REGION_NAME) is not required by OpenStack or most clients - including nova.

The workaround if you don't have a region is just to uncomment the last line in the config and set the region field to an empty string explicitly on all resources.

@mitchellh
Copy link
Contributor

Fixed by #1490

@ghost
Copy link

ghost commented May 3, 2020

I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues.

If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@ghost ghost locked and limited conversation to collaborators May 3, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants