0
0
llucycodes42
The code creates an InfluxDB user with the name "my-resource-name" and sets its properties. The user has a password and a grant that allows write access to the database "green.name" in the InfluxDB instance.
Shortcut: tf_influxdb_user
resource "influxdb_user" "${myResourceName}" {
name = "my-${myResourceName}"
description = "my-description-${myResourceName}"
password = "super-secret"
grant {
database = "\${influxdb_database.green.name}"
privilege = "write"
}
}