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

Allow importing members #32

Merged
merged 1 commit into from
Oct 18, 2022
Merged

Allow importing members #32

merged 1 commit into from
Oct 18, 2022

Conversation

laduke
Copy link
Contributor

@laduke laduke commented Oct 14, 2022

re #17 and #29

I'm not sure how to add a test for importing yet. The cool tf harness doesn't support import.

The terraform file I used for testing.

terraform {
  required_providers {
    zerotier = {
      source  = "zerotier/zerotier"
    }
  }
}
resource "zerotier_member" "bob" {}

terraform import zerotier_member.bob 8286ac0e4786b2aa-1122334455 The member needs to already exist

terraform state show zerotier_member.bob

implementation borrowed from bltavares branch

re #17 and #29

I'm not sure how to add a test for `import`ing yet.
The cool tf harness doesn't support `import`.

The terraform file I used for testing.

```
terraform {
  required_providers {
    zerotier = {
      source  = "zerotier/zerotier"
    }
  }
}
resource "zerotier_member" "bob" {}
```

`terraform import zerotier_member.bob 8286ac0e4786b2aa-1122334455` The member needs to already exist

`terraform state show zerotier_member.bob`

implementation borrowed from bltavares  branch
@someara
Copy link
Contributor

someara commented Oct 15, 2022 via email

@laduke laduke requested a review from someara October 18, 2022 00:41
@someara someara merged commit fea5549 into master Oct 18, 2022
@someara someara deleted the tl-member-import branch January 6, 2023 14:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants