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

[Bug]: vault_audit import inconsistent on local=true #2347

Open
pritho opened this issue Oct 30, 2024 · 0 comments
Open

[Bug]: vault_audit import inconsistent on local=true #2347

pritho opened this issue Oct 30, 2024 · 0 comments
Labels

Comments

@pritho
Copy link

pritho commented Oct 30, 2024

Terraform Core Version

1.9.8

Terraform Vault Provider Version

4.4.0

Vault Server Version

1.9.8

Affected Resource(s)

vault_audit

Expected Behavior

importing the existing resource should be working without changes needed

Actual Behavior

import shows a diff and requires a replace on local = true

Relevant Error/Panic Output Snippet

13:46:57.420 STDOUT terraform: -/+ resource "vault_audit" "this" {
13:46:57.420 STDOUT terraform:       ~ id          = "file" -> (known after apply)
13:46:57.420 STDOUT terraform:       + local       = true # forces replacement
13:46:57.420 STDOUT terraform:       ~ path        = "file" -> (known after apply)
13:46:57.420 STDOUT terraform:         # (3 unchanged attributes hidden)
13:46:57.420 STDOUT terraform:     }

Terraform Configuration Files

resource "vault_audit" "this" {
type = "file"
local = true
description = "Local audit logging"

options = {
file_path = "/var/log/vault/vault_audit.log"
mode = "0000"
}
}

Steps to Reproduce

terraform import vault_audit.this "file"

Debug Output

in the state, after doing the import:
local = null

Panic Output

No response

Important Factoids

No response

References

No response

Would you like to implement a fix?

No

@pritho pritho added the bug label Oct 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant