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

No region provided #501

Open
outscale-rce opened this issue Jan 22, 2025 · 0 comments
Open

No region provided #501

outscale-rce opened this issue Jan 22, 2025 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@outscale-rce
Copy link
Collaborator


name: No region provided
about: When a region is not provided, the error message lacks clarity.


Terraform Version

Terraform v1.10.4
on linux_amd64

Terraform Configuration Files

terraform {
  required_providers {
    outscale = {
      source  = "outscale/outscale"
      version = "1.0.1"
    }
  }
}

provider "outscale" {
  access_key_id = var.ak_id
  secret_key_id = var.sk_id
}


resource "outscale_vm" "vm01" {
    image_id                 = var.image_id
    vm_type                  = var.vm_type
    keypair_name             = var.keypair
    placement_subregion_name = var.subregion_name
    placement_tenancy        = "default"
}

Crash Output

Error: Error retrieving OAPIKeyPair: Post "https://api..outscale.com/api/v1/ReadKeypairs": dial tcp: lookup api..outscale.com: no such host

Expected Behavior

It should warn me that I omitted to provide a region.

Actual Behavior

Throwing an error when attempting to access the API endpoint without specifying a region in the URL.

Steps to Reproduce

Do not provide a region at all, then run terraform apply

@outscale-rce outscale-rce added the bug Something isn't working label Jan 22, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Development

No branches or pull requests

2 participants