bitte icon indicating copy to clipboard operation
bitte copied to clipboard

Have a "stateVersion" setting for instance AMIs

Open jonringer opened this issue 4 years ago • 0 comments
trafficstars

Terraform will do destructive updates when the ami differs. We should probably allow for individuals to pin the default ami chosen so that updates to the amis don't cause unnecessary replacement of cloud resources.

E.g:

cluster = {
  defaultAMIRelease = "21.05";
  ....
  
# for instances
ami = (import (nixpkgs.path + /nixos/modules/virtualisation/ec2-amis.nix)."${cluster.defaultAMIRelease}"."${instance.region".hvm-ebs;

jonringer avatar Oct 07 '21 05:10 jonringer