Skip to content
This repository has been archived by the owner on Mar 25, 2022. It is now read-only.

Importing Private Image crashes terraform #26

Closed
nagulako opened this issue Jul 6, 2017 · 1 comment
Closed

Importing Private Image crashes terraform #26

nagulako opened this issue Jul 6, 2017 · 1 comment

Comments

@nagulako
Copy link

nagulako commented Jul 6, 2017

Hi there,

Terraform Version

0.9.11

Affected Resource(s)

Please list the resources as a list, for example:

  • opc_compute_image_list_entry

Terraform Configuration Files

none. Just the credentials and then a test to import the image resource.


### Debug Output
https://gist.github.com/nagulako/dd89c2360f00b4503c92ec1e2beb1d0d

### Panic Output
https://gist.github.com/nagulako/316d8c90bd3847fd27b503d453e4b986

### Expected Behavior
Should have created a resource inside terraform i.e imported existing resource.

### Actual Behavior
crash

### Steps to Reproduce
Please list the steps required to reproduce the issue, for example:
1.  Create a private image from the console (in this case, it was SUSE Linux 11.4
2.  Use terraform import to import that image entry.  Entry crashes.

@scross01
Copy link
Contributor

@nagulako just out of interest, why be are you trying to import an opc_compute_image_list_entry? Doing an import will bring the resource under Terraform control, and a subsequent terraform destroy will delete the image list entry completely. If you are just trying to reference some details of an existing image list entry elsewhere in your config then I suspect what is really needed is a opc_compute_image_list_entry Data Source

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

3 participants