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

Add support for importing VM resources #29

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

seanhoughton
Copy link

This draft PR allows users to import VM resources with something like this:

$ terraform import proxmox_virtual_environment_vm.myvm host123/qemu/100

Community Note

  • Please vote on this pull request by adding a 👍 reaction to the original pull request comment to help the community and maintainers prioritize this request
  • Please do not leave "+1" or other comments that do not add relevant new information or questions, they generate extra noise for pull request followers and do not help prioritize the request

Closes #25

Release note for CHANGELOG:

Add support for importing VM resources

@danitso-dp danitso-dp added this to the v0.5.0 milestone May 21, 2020
State: func(d *schema.ResourceData, m interface{}) ([]*schema.ResourceData, error) {
parts := strings.Split(d.Id(), "/")
if len(parts) != 3 {
return nil, fmt.Errorf("Malformed import ID: use <host>/quemu/<id>")
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is quemu a typo? I don't think it really matters, but figured I'd ask.

@magikid-sourceability
Copy link

Has there been any progress on this? I'd really like to import my existing infra into terraform.

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

Successfully merging this pull request may close these issues.

[FEATURE] Support resource import
5 participants