diff --git a/main.tf b/main.tf index cf32907..2535cd0 100644 --- a/main.tf +++ b/main.tf @@ -18,6 +18,10 @@ resource "aws_instance" "bastion" { var.additional_vpc_security_group_ids, ) + lifecycle { + ignore_changes = [ami] + } + # https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-instance-connect-set-up.html#ec2-instance-connect-install user_data = <