How to fix Error: Cannot use element on an empty tuple in Terraform | DevErrors