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

instances terraform creation - inconstitent state #43

Closed
jbdevopscz opened this issue Jul 22, 2021 · 5 comments
Closed

instances terraform creation - inconstitent state #43

jbdevopscz opened this issue Jul 22, 2021 · 5 comments

Comments

@jbdevopscz
Copy link

jbdevopscz commented Jul 22, 2021

After succesfull "terraform apply" command coressponding instances are created. But after running "terraform apply" again - it will still wants to update something.

Terraform used the selected providers to generate the following execution plan. Resource actions are indicated with the following symbols:
  ~ update in-place

Terraform will perform the following actions:

  # civo_instance.funnel1 will be updated in-place
  ~ resource "civo_instance" "funnel1" {
        id                 = "ca39e1b2-9c95-4215-bb17-994b171cb904"
        tags               = []
      + template           = "a4204155-a876-43fa-b4d6-ea2af8774560"
        # (17 unchanged attributes hidden)
    }

  # civo_instance.funnel2 will be updated in-place
  ~ resource "civo_instance" "funnel2" {
        id                 = "3eaea460-4781-4e07-a05e-d731a74246a1"
        tags               = []
      + template           = "a4204155-a876-43fa-b4d6-ea2af8774560"
        # (17 unchanged attributes hidden)
    }

Plan: 0 to add, 2 to change, 0 to destroy.

@alejandrojnm
Copy link
Member

Hi @jbdevopscz thanks for report this, can you share you config, the terraform version, the provider version in that way we can try to reproduce this error

@andyjeffries
Copy link
Contributor

@alejandrojnm it might be worth setting up an issue template if this sort of information will generally be required. Let me know if you don't have permissions to do it and I'll sort that out.

@jbdevopscz
Copy link
Author

Hi @jbdevopscz thanks for report this, can you share you config, the terraform version, the provider version in that way we can try to reproduce this error

you can use just the template as example on the web, i am using terraform version 0.12.12 but also the last version. The provider version is 0.10.4. - 6

@jbdevopscz
Copy link
Author

jbdevopscz commented Jul 22, 2021

also, if you not specify your own firewall (so the Default is used) the next terraform apply still aplying update in firewall_id

` ~ update in-place

Terraform will perform the following actions:

  # civo_instance.funnel1 will be updated in-place
  ~ resource "civo_instance" "funnel1" {
      - firewall_id        = "f5915384-63a8-4c54-9fa1-5c11a5c4d400" -> null
        id                 = "ff70c51d-7c62-42f9-9296-ff36215cc563"
        tags               = []
      + template           = "a4204155-a876-43fa-b4d6-ea2af8774560"
        # (16 unchanged attributes hidden)
    }

  # civo_instance.funnel2 will be updated in-place
  ~ resource "civo_instance" "funnel2" {
      - firewall_id        = "f5915384-63a8-4c54-9fa1-5c11a5c4d400" -> null
        id                 = "f150603c-00a4-4396-8bb0-56964500f8e7"
        tags               = []
      + template           = "a4204155-a876-43fa-b4d6-ea2af8774560"
        # (16 unchanged attributes hidden)
    }
`

@alejandrojnm
Copy link
Member

Ta i will check this in the night

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

No branches or pull requests

3 participants