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

[Docs]: vault_config_ui_custom_message incorrect arguments #2352

Closed
pvickery-ParamountCommerce opened this issue Nov 4, 2024 · 4 comments · Fixed by #2356
Closed

[Docs]: vault_config_ui_custom_message incorrect arguments #2352

pvickery-ParamountCommerce opened this issue Nov 4, 2024 · 4 comments · Fixed by #2356

Comments

@pvickery-ParamountCommerce

Documentation Link

https://registry.terraform.io/providers/hashicorp/vault/latest/docs/resources/config_ui_custom_messages#message

Description

The argument message should be message_base64

❯ terraform apply        
╷
│ Error: Missing required argument
│ 
│   on <path> line 121, in resource "vault_config_ui_custom_message" "this":
│  121: resource "vault_config_ui_custom_message" "this" {
│ 
│ The argument "message_base64" is required, but no definition was found.
╵
╷
│ Error: Unsupported argument
│ 
│   on <path> line 123, in resource "vault_config_ui_custom_message" "this":
│  123:   message       = base64encode("Message")
│ 
│ An argument named "message" is not expected here.
╵

References

Would you like to implement a fix?

None

@pvickery-ParamountCommerce
Copy link
Author

Possibly related, but after fixing the argument name, I get the following error:

module.vault.vault_config_ui_custom_message.this: Creating...
╷
│ Error: config_ui_custom_message is not supported by this version of vault

I am using registry.terraform.io/hashicorp/vault v4.4.0

@fairclothjm
Copy link
Contributor

@pvickery-ParamountCommerce Thanks for reporting the docs issue. I have opened #2356 to address that.

In regards to the recent error you posted, can verify what version of the Vault Server you are running? It looks like Custom UI messages were introduced in Vault v1.16 and require Vault Enterprise.

@pvickery-ParamountCommerce
Copy link
Author

pvickery-ParamountCommerce commented Nov 11, 2024

Thanks @fairclothjm! Ah that would explain it, we are using the open source version.

Could a note be added to the documentation to indicate that it is a Enterprise feature? For example, vault_namespace has one.

@fairclothjm
Copy link
Contributor

Will add a note, Thanks!

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

Successfully merging a pull request may close this issue.

2 participants