Repository: gruntwork-io/terragrunt (language: go)

Issue:
[MacOS] terragrunt console - Setctty set but Ctty not valid in child
While trying to invoke the `terraform console` command via `terragrunt console`, 

I get the following error:

```
[terragrunt] 2020/09/07 14:30:52 Running command: terraform console
[terragrunt] 2020/09/07 14:30:52 Error closing pty: invalid argument
[terragrunt] 2020/09/07 14:30:52 Hit multiple errors:
fork/exec /usr/local/bin/terraform: Setctty set but Ctty not valid in child
[terragrunt] 2020/09/07 14:30:52 Unable to determine underlying exit code, so Terragrunt will exit with error code 1
```

But this seems to work fine on Ubuntu.

---

**Versions:**

```
terragrunt version v0.23.40
Terraform v0.13.2
MacOS Catalina 10.15.6
```


Discussion / hints:
On checking this further, this seems to be a regression. Terraform console works perfectly with terragrunt `v0.23.33`
Thanks for reporting! If anyone has some time to [browse what changed between the two versions](https://github.com/gruntwork-io/terragrunt/compare/v0.23.33...v0.23.40) and help us spot the bug, that would be much appreciated!
I've hit this same error recently on terragrunt `v0.24.1`. Is there something else I should be looking at here?
This issue got resolved in `v0.26.1` for me
After upgrading to version 0.26.7, I still see the same issue.  

```
$ terragrunt --version
terragrunt version v0.26.7

... 

[terragrunt] 2020/12/01 15:57:08 Error closing pty: invalid argument
[terragrunt] 2020/12/01 15:57:08 Hit multiple errors:
fork/exec /usr/local/bin/terraform: Setctty set but Ctty not valid in child
```

I downgraded to 0.23.33 to solve the bug on the current version.
Upgrading to creack/pty to 1.1.10 should do the trick. Tested on my local build and it fixed the problem.

More at https://github.com/creack/pty/issues/96.
Any progress on getting this in to the next release?
also getting same error on v0.28.2 (on linux)
Still seeing this in terragrunt 0.28.8 on MacOS 10.15.7

Fix patch:
diff --git a/go.mod b/go.mod
index 64cd5cc9e1..086e181f8c 100644
--- a/go.mod
+++ b/go.mod
@@ -5,7 +5,7 @@ go 1.13
 require (
 	cloud.google.com/go/storage v1.10.0
 	github.com/aws/aws-sdk-go v1.37.7
-	github.com/creack/pty v1.1.9
+	github.com/creack/pty v1.1.11
 	github.com/fatih/structs v1.1.0
 	github.com/go-errors/errors v1.0.2-0.20180813162953-d98b870cc4e0
 	github.com/gruntwork-io/terratest v0.30.26
@@ -26,5 +26,4 @@ require (
 	golang.org/x/sync v0.0.0-20200625203802-6e8e738ad208
 	golang.org/x/sys v0.0.0-20200930185726-fdedc70b468f
 	google.golang.org/api v0.35.0
-	gotest.tools v2.2.0+incompatible
 )
diff --git a/go.sum b/go.sum
index 63f64cf47a..cbc85b7587 100644
--- a/go.sum
+++ b/go.sum
@@ -186,8 +186,8 @@ github.com/cpuguy83/go-md2man/v2 v2.0.0-20190314233015-f79a8a8ca69d/go.mod h1:ma
 github.com/cpuguy83/go-md2man/v2 v2.0.0 h1:EoUDS0afbrsXAZ9YQ9jdu/mZ2sXgT1/2yyNng4PGlyM=
 github.com/cpuguy83/go-md2man/v2 v2.0.0/go.mod h1:maD7wRr/U5Z6m/iR4s+kqSMx2CaBsrgA7czyZG/E6dU=
 github.com/creack/pty v1.1.7/go.mod h1:lj5s0c3V2DBrqTV7llrYr5NG6My20zk30Fl46Y7DoTY=
-github.com/creack/pty v1.1.9 h1:uDmaGzcdjhF4i/plgjmEsriH11Y0o7RKapEf/LDaM3w=
-github.com/creack/pty v1.1.9/go.mod h1:oKZEueFk5CKHvIhNR5MUki03XCEU+Q6VDXinZuGJ33E=
+github.com/creack/pty v1.1.11 h1:07n33Z8lZxZ2qwegKbObQohDhXDQxiMMz1NOUGYlesw=
+github.com/creack/pty v1.1.11/go.mod h1:oKZEueFk5CKHvIhNR5MUki03XCEU+Q6VDXinZuGJ33E=
 github.com/davecgh/go-spew v0.0.0-20151105211317-5215b55f46b2/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
 github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
 github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c=


Test patch: