Cannot update EC2 instance AMI version
Hello,
I'de like to upgrade some of my EC2 instances created using this module. To do that, I'd like to change the SAFRAN AMI used to upgrade OS version. However, this is not possible because of the lifecycle
set in main.tf
for aws_instance
resource (https://git.cloud.safran/safrangrp/publiccloud/landingzone/shared-modules/terraform-aws-ec2/-/blob/main/main.tf#L65).
Is there an explanation to disable such change when using this module?
Emmanuel