resource "influxdb_continuous_query" "${myResourceName}" {
         name = "my-${myResourceName}"
         description = "my-description-${myResourceName}"
         database = "\${}"
         query = "SELECT min(mouse) INTO min_mouse FROM zoo GROUP BY time(30m)"

      Terraform language logo

      Terraform snippets

      This code will create a continuous query that will query the zoo database every 30 minutes. The name of the query is "min_mouse", and the database it will query is "".

      Shortcut: tf_influxdb_continuous_query


        Add Comment

        Log in to add a comment

        Codiga - All rights reserved 2022.