Skip to content

Commit

Permalink
Added initial code (#1)
Browse files Browse the repository at this point in the history
* Added initial code

* Address PR comments
  • Loading branch information
goruha authored Jun 29, 2017
1 parent 9dd9951 commit 63517bc
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 0 deletions.
9 changes: 9 additions & 0 deletions main.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
resource "null_resource" "default" {
triggers = {
id = "${lower(format("%v-%v-%v", var.namespace, var.stage, var.name))}"
}

lifecycle {
create_before_destroy = true
}
}
3 changes: 3 additions & 0 deletions outputs.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
output "id" {
value = "${null_resource.default.triggers.id}"
}
3 changes: 3 additions & 0 deletions variables.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
variable "namespace" {}
variable "stage" {}
variable "name" {}

0 comments on commit 63517bc

Please sign in to comment.