Feature/packer jenkins (#31)

* packer jenkins update
This commit is contained in:
Edward Viaene
2020-03-17 21:21:40 +01:00
committed by GitHub
parent 50df73f39a
commit ef34e41349
10 changed files with 99 additions and 37 deletions
+1 -1
View File
@@ -1,6 +1,6 @@
resource "aws_key_pair" "mykeypair" {
key_name = "mykeypair"
public_key = file(var.PATH_TO_PUBLIC_KEY)
public_key = fileexists(var.PATH_TO_PUBLIC_KEY) ? file(var.PATH_TO_PUBLIC_KEY) : var.DUMMY_SSH_PUB_KEY
lifecycle {
ignore_changes = [public_key]
}