Created
July 14, 2017 19:00
-
-
Save daveadams/1ba4828220911a126dbdf93629c037a1 to your computer and use it in GitHub Desktop.
Hacky consul-acl Terraform module
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
variable "name" {} | |
variable "policy" {} | |
resource "null_resource" "acl" { | |
triggers { | |
name = "${var.name}" | |
policy = "${var.policy}" | |
} | |
provisioner "local-exec" { | |
command = "${path.module}/manage-acl.rb create '${var.name}' '${var.policy}'" | |
} | |
provisioner "local-exec" { | |
when = "destroy" | |
command = "${path.module}/manage-acl.rb delete '${var.name}'" | |
} | |
} |
Hi, how do you pass the ACL into it? what format is it?
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Pairs with https://gist.github.com/daveadams/7f088e3ac338b54551a5124ad34baed2