Skip to content
This repository has been archived by the owner on Dec 5, 2020. It is now read-only.

Invalid credentials causes TF segfault with import command #89

Open
solocommand opened this issue Nov 13, 2018 · 0 comments
Open

Invalid credentials causes TF segfault with import command #89

solocommand opened this issue Nov 13, 2018 · 0 comments

Comments

@solocommand
Copy link

Terraform Version

Terraform v0.11.10

Terraform Configuration Files

# Configure the Rancher provider
provider "rancher" {
  api_url    = "https://rancher.mydomain.com"
  access_key = "MY_ACCESS_KEY"
  secret_key = "MY_SECRET_KEY"
}

resource "rancher_stack" "existing-stack-name" {

}

Debug & Crash Output

https://gist.github.com/solocommand/3b41715835a196da7e1ff77c37669069

Expected Behavior

Rancher provider should handle an authentication failure and throw a handled error

Actual Behavior

401/3 returned from rancher API caused empty response and segfault in TF process

Steps to Reproduce

  1. terraform init
  2. terraform import rancher_stack.existing-stack-name [ENV_ID]/[STACK_ID]

Additional Context

The access key and secret key provided in the config are environment keys, specific to another environment.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants