azure::key-vault-secret

Creates a key vault secret.

Example

azure::key-vault-secret vault-secret-example
    name: "secret-example"
    value: "secret-value"
    vault: $(azure::key-vault vault-example-secret)

    attribute
        enabled : true
        expires : "2020-04-04T15:54:12.000Z"
        not-before : "2020-04-02T15:54:12.000Z"
    end

    tags: {
        Name: "vault-secret-examples"
    }
end

Attributes

Attribute Description
name The name of the secret. (Required)
vault The key vault under which the secret is going to be created. (Required)
value The value of the secret. (Required)
attribute subresource

The attribute config for the secret. (Required)

enabled
Enable or Disable the secret for use. (Required)
expires
A date time value in UTC specifying when the secret expires. Format YYYY-MM-DDTHH:MM:SS.sssZ. Example 2020-04-03T15:54:12.000Z.
not-before
A date time value in UTC specifying the not-before time. Format YYYY-MM-DDTHH:MM:SS.sssZ. Example 2020-04-03T15:54:12.000Z.
content-type The content type for the secret.
tags map Tags for the secret.

Outputs

Attribute Description
id The Id of the secret.
kid The KID of the secret.
identifier The identifier of the secret.