Terraform AWS provision fails with error: Argument or block definition required on /tmp/props.tfvars line 1: 1: -input = "true" An argument or block definition is required here


Description

Terraform AWS provision fails with error: Argument or block definition required on /tmp/props.tfvars line 1: 1: -input = "true" An argument or block definition is required here

Resolution

The issue may happen if the credentials are hardcoded in the template.

Instead of hardcoding the credentials, it's necessary to make it dynamic.
You may refer to below sample template - https://gitlab.com/ayushrawat18/terraformawssample.