How to write Terraform code