I Attempted Terraform Remote and Imploded VS Code — Here’s How I Fixed It.

Morgan Lucas
2 min readJun 8, 2022

--

What is Terraform Remote?

Terraform remote (tf remote) is when you do terraform apply and the tfstate file is copied both offsite and on your local machine.

It’s used more when there are multiple developers working on one thing, so someone’s state isn’t totally overwritten.

Why Did You Try It?

To see if I could!

What Did You Do?

The code worked — It was my S3 bucket permissions that were a little off, and did not allow me to place anything in there unless I went into the GUI and did it myself — which is time intensive and defeats the purpose of this project a bit.

What Happened Afterward?

Uh, well, VS Code suddenly had a lot of issues with permissions — It seems to have imploded the executable on my machine. I couldn’t start it, (’The location of this file could not be found’), but it wasn’t in my list of programs to uninstall — It was a ghost program.

Could You Delete the Files?

In theory — My permissions had gone screwy as well, and no amount of adjusting or using 3rd party, but Microsoft Approved tools worked.

Is It Fixed?

Yes! Read on…

Solved:

  • I took a break
  • Ate a snack
  • Went outside
  • Showered
  • Got a new mug in the mail
  • Went back to Binging and found the following;

So, there are many places where VS Code files hide — Local folder, Roaming folder, Programs Folder — and while some of them can be deleted, not the one that needed to be.

Now, while the program is not in the Program and Features program, VS Code did come with an uninstaller, which does end up working. Shout out to alshafi on StackOverflow who knew the multiple hidey-holes this program has.

Find me on Twitter, or my blog. You can Buy Me A Coffee and help me keep writing!

Sign up to discover human stories that deepen your understanding of the world.

Free

Distraction-free reading. No ads.

Organize your knowledge with lists and highlights.

Tell your story. Find your audience.

Membership

Read member-only stories

Support writers you read most

Earn money for your writing

Listen to audio narrations

Read offline with the Medium app

--

--

No responses yet

Write a response