banyansecurity / terraform-aws-banyan-accesstier2

Apache License 2.0
1 stars 8 forks source link

Need to way to lock the AMI ID #4

Open tdesikan opened 1 year ago

tdesikan commented 1 year ago

We are using latest Ubuntu for the VMs, which is cool.

However, this causes a terraform apply to constantly provision new VMs which is hella annoying.

gabemarchan commented 1 month ago

I don't see it in the official documentation in the Terraform Registry, but it looks like they added an optional variable called "ami_id" that you can pass to the module and specify an AMI to use. In theory, you should be able to plug in your current AMI ID and prevent Terraform from trying to re-provision everything on latest version during each run.