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

Prevent keepers triggering an in-place update following import #384

Closed
1 task done
bendbennett opened this issue Mar 13, 2023 · 1 comment · Fixed by #385
Closed
1 task done

Prevent keepers triggering an in-place update following import #384

bendbennett opened this issue Mar 13, 2023 · 1 comment · Fixed by #385
Labels

Comments

@bendbennett
Copy link
Contributor

Terraform CLI and Provider Versions

Provider version: v3.4.3

Terraform Configuration

resource "random_id" "server" {
    byte_length = 4
}

resource "random_integer" "integer_1" {
    min  = 1
    max  = 3
}

resource "random_uuid" "basic" { 
}

Expected Behavior

  • Importing random_id using terraform import random_id.server p-9hUg and then running terraform apply using the configuration supplied should result in a no-op.
  • Importing random_integer using terraform import random_integer.integer_1 2,1,3 and then running terraform apply using the configuration supplied should result in a no-op.
  • Importing random_uuid using terraform import random_uuid.main aabbccdd-eeff-0011-2233-445566778899 and then running terraform apply using the configuration supplied should result in a no-op.

Actual Behavior

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:

  # random_id.server will be updated in-place
  ~ resource "random_id" "server" {
        id          = "p-9hUg"
      - keepers     = {} -> null
        # (5 unchanged attributes hidden)
    }

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

Steps to Reproduce

  1. Run the steps described in "Expected Behaviour".

How much impact is this issue causing?

Low

Logs

No response

Additional Information

No response

Code of Conduct

  • I agree to follow this project's Code of Conduct
Copy link

I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues.
If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators May 23, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
2 participants