null_resource_provisioner

    0

    0

    lucycodes42

    Terraform snippets

    This code defines a null_resource resource in the cluster named "cluster". The resource has the following properties:

    1. The resource has a triggers clause that sets cluster_instance_ids to the IDs of all instances in the cluster.

    2. Changes to any instance of the cluster require re-provisioning.

    Shortcut: tf_null_resource_provisioner

    resource "null_resource" "${cluster}" {
       # Changes to any instance of the cluster requires re-provisioning
       triggers {
           cluster_instance_ids = "\${join(
    , aws_instance.cluster.*.id)}"
       }
    }
    Codiga Logo
    Codiga Hub
    • Rulesets
    • Explore
    • Cookbooks
    • Playground
    soc-2 icon

    We are SOC-2 Compliance Certified

    G2 high performer medal

    Codiga – All rights reserved 2022.