diff --git a/terraform/environments/ccms-ebs/ccms-ec2-clamav.tf b/terraform/environments/ccms-ebs/ccms-ec2-clamav.tf index 0608c2dc631..44cfc5118db 100644 --- a/terraform/environments/ccms-ebs/ccms-ec2-clamav.tf +++ b/terraform/environments/ccms-ebs/ccms-ec2-clamav.tf @@ -13,7 +13,12 @@ resource "aws_instance" "ec2_clamav" { # Due to a bug in terraform wanting to rebuild the ec2 if more than 1 ebs block is attached, we need the lifecycle clause below lifecycle { - ignore_changes = [ebs_block_device, root_block_device] + ignore_changes = [ + ebs_block_device, + root_block_device, + user_data, + user_data_replace_on_change + ] } user_data_replace_on_change = false user_data = <