Can you test against resource recreation?

I would like to write a TF unit test that confirms whether a resource will be recreated (or deleted and then created) based on a condition. Gemini https://g.co/gemini/share/52a5fea58d47, unsure how accurate that is.

How could I accomplish this?

Hi @zapatoshoe-google, unfortunately this isn’t currently supported within the native terraform test command. This is being tracked as a feature request in this issue. You can help get it prioritised by giving it a :+1:, and you could share thoughts and proposed syntax if you had an idea about how exactly you’d want it to work. Thanks!

1 Like