vault_policy

    0

    0

    lucycodes42

    Terraform snippets

    The following code defines a vault policy with the name "myPath". The policy defines a path to a secret directory and specifies that the vault should write to this path.

    Shortcut: tf_vault_policy

    resource "vault_policy" "vault_policy_id" {
       name = "myPath"
       policy = <<EOT
    path "secret/my_app" {
       policy = "write"
    }
    EOT
    }
    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.