terraform-provider-oci
terraform-provider-oci copied to clipboard
Is oci_vault_secret resource supported?
The documentation for the oci_vault_secret resource says
This operation is not supported by the Oracle Cloud Infrastructure Terraform Provider.
However, the page goes on to define the resource with an example usage and argument/attribute reference. So, is this an error in the documentation or is there some features/limitations that the terraform provider cannot do?
https://github.com/oracle/terraform-provider-oci/blob/c8d3fea9310ae6e9309889afebceb538a5ef5c6a/website/docs/r/vault_secret.html.markdown
where do you see that document? I think it is a document error, please point to that location so we can make the fix. The office document should be here https://registry.terraform.io/providers/oracle/oci/latest/docs/resources/vault_secret
@jotruon It's on that page that you linked in the official documentation on the third line of intro section. I just linked the git repo markdown page that generates the official documentation.
I also noticed in the argument reference section, in the secret content sub-block that the 'content_type' variable has the same description as the 'content' variable. From my terraform engine error, content_type should be 'BASE64'
secret_content - (Required) (Updatable) The content of the secret and metadata to help identify it. content - (Optional) (Updatable) The base64-encoded content of the secret. content_type - (Required) (Updatable) The base64-encoded content of the secret.
Error for content_type indicating it only supports BASE64 encoding
Error: expected secret_content.0.content_type to be one of [BASE64], got SGVsbG9Xb3JsZA==
right, let me open a ticket to fix document
@jotruon we need some clarification on this. Are creating secrets via Terraform fully supported now?
OCI is supposed to be an enterprise product, and you support Terraform as that's what the resource manager uses. We need enterprise level documentation, without statements that introduce confusion such as "not supported."
let me follow up with the service team to fix the document
@jotruon can you fix the docs? And also, key_id
is a required field yet it's listed as optional.
Jumping on this.
content
(under secret_content
) is shown as Optional, however this is required.
@jotruon @ravinitp what’s happening with this? Hit the required: key_id
, secret_content.content
items while playing around.