terraform: fixing all the panics