diff --git a/Azure/terraform/hcl/lamp/lamp.tf b/Azure/terraform/hcl/lamp/lamp.tf index 0f514f33..2f29ffb7 100644 --- a/Azure/terraform/hcl/lamp/lamp.tf +++ b/Azure/terraform/hcl/lamp/lamp.tf @@ -61,6 +61,10 @@ variable "user_public_key" { # Deploy the network resources ######################################################### resource "random_id" "default" { + keepers = { + # Generate a new id each time we switch to a new AMI id + ami_id = "${var.ami_id}" + } byte_length = "4" }