ignition_audit_profile Resource
ignition_audit_profile (Resource)
Manages an Audit Profile in Ignition.
Example Usage
resource "ignition_audit_profile" "example" {
name = "ProductionAudit"
type = "database"
database = "ProductionDB" # Reference to a database connection
retention_days = 365
auto_create = true
}
Schema
Required
name(String) The name of the audit profile.type(String) The type of the audit profile (database, remote, edge, local).
Optional
auto_create(Boolean) If true, the table schema will be automatically created (for ‘database’ type). Default: true.database(String) The database connection to use to store audit events (for ‘database’ type).description(String) The description of the audit profile.enable_store_and_forward(Boolean) If enabled, audit events will be stored through the store and forward system (for ‘remote’ type).enabled(Boolean) Whether the audit profile is enabled.prune_enabled(Boolean) If false, this audit profile will never prune records (for ‘database’ type). Default: false.remote_profile(String) The audit profile on the remote system to log events into (for ‘remote’ type).remote_server(String) The remote system to send audit events to (for ‘remote’ type).retention_days(Number) How long (in days) should audit records be kept? If set to 0, pruning will be disabled. Default: 90.table_name(String) The name of the table to store audit events (for ‘database’ type). Default: ‘audit_events’.
Read-Only
id(String) The ID of this resource.signature(String) The signature of the resource, used for updates and deletes.