> For the complete documentation index, see [llms.txt](https://developer.harness.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://developer.harness.io/continuous-delivery/troubleshooting-and-resources/armory/general/terraform-invalid-character-error.md).

# Terraform 'Invalid character' Error

### Issue <a href="#issue" id="issue"></a>

When executing a Terraform Pipeline, the following error can occur upon execution. This error can be found in the Deck UI when investigating the failure, in the `Source` portion of the `Execution Details` Example error: Error: Invalid character on ses.tf line 57, in resource "aws\_iam\_role\_policy\_attachment" "eks\_workers\_send\_email": 57: role = data.terraform\_remote\_state.eks.outputs.eks\_cluster.worker\_iam\_role.name This character is not used within the language.

Error: Missing newline after argument on ses.tf line 57, in resource "aws\_iam\_role\_policy\_attachment" "eks\_workers\_send\_email": 57: role = data.terraform\_remote\_state.eks.outputs.eks\_cluster.worker\_iam\_role.name An argument definition must end with a newline.

### Cause <a href="#cause" id="cause"></a>

2 potential causes:

* This can be due to a `string limit error` (e.g. it tries to load it from `http`, store in a string, write to file, and hits a limit, for example, a character limit)\* Bug where multiple references to one resource are not working correctly \*\*Note: \*\*Issue is being investigated by our Engineering team. If you are also encountering the same issue, please open a ticket so that we can associate it with the same open investigation
