Skip to content

Commit

Permalink
ignore version tag
Browse files Browse the repository at this point in the history
  • Loading branch information
badra001 committed Jan 14, 2022
1 parent 8a62944 commit 4f5c520
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,10 @@ resource "aws_iam_role" "role" {
}
}

lifecycle {
ignore_changes = [tags["boc:tf_module_version"]]
}

tags = merge(
var.tags,
local.base_tags,
Expand Down Expand Up @@ -200,10 +204,11 @@ resource "null_resource" "role_ldif" {
provisioner "local-exec" {
command = "echo '${data.template_file.role[0].rendered}' > ${path.root}/setup/${local.role_name}.ldif"
}
provisioner "local-exec" {
when = destroy
command = format("rm -f %v/setup/%v.ldif", path.root, self.triggers.name)
}
# does not work in 0.12
# provisioner "local-exec" {
# when = destroy
# command = format("rm -f %v/setup/%v.ldif", path.root, self.triggers.name)
# }
provisioner "local-exec" {
command = "echo 'Once complete, execute tf-apply again to create LDAP group'"
}
Expand Down

0 comments on commit 4f5c520

Please sign in to comment.