influxdb_user

    0

    0

    lucycodes42

    Terraform snippets

    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"
       }
    }
    Codiga Logo
    Codiga Hub
    • Rulesets
    • Playground
    • Snippets
    • Cookbooks
    Legal
    • Security
    • Privacy Policy
    • Code Privacy
    • Terms of Service
    soc-2 icon

    We are SOC-2 Compliance Certified

    G2 high performer medal

    Codiga – All rights reserved 2022.