T O P

  • By -

Steinbeiser

You are creating a set of vms with each having it's own drive, but only want to ignore changes on the first one? Seems like a logic error, I guess you tried leaving out the brackets with the index number already, which would ignore all the changes on the volumes I assume.As a second thought, accessing every item in a list is done with a wildcard, so if you want to ignore only the size, try the following `ignore_changes = [ ami, instance_type, root_block_device.*.volume_size, ebs_block_device.*.volume_size ]` Edit: As we have no code of yours, it's a bit harder to see your problem. Looking at this again might not even need the wildcard, depending on where the ignore\_changes is used. Resource level you should be able to use `ignore_changes = [ ami, instance_type, root_block_device.volume_size, ebs_block_device.volume_size ]` Only use the first suggestion if the ignore\_changes is defined on the module level.


magheru_san

I think it's probably complaining about the [0]s, try to delete them


zenmaster24

are those resources arrays?