Terraform apply fails with cd: Test&Test/prod: No such file or directory

Hi.
I made a mistake(probably) by adding “&” in the name of the folder while splitting the main ping_config.csv in my project into dedicated separate folders/files.
Now I`m trying to delete this folder that contains “&” but TF plan fails each time on gihub with the same not-very-descriptive error:

Blockquote
/home/runner/work/_temp/aec3ae85-297e-40aa-980d-e5b972464981.sh: line 7: cd: Test&Test/prod: No such file or directory

Can someone point me:

  • Any kind of documentation with the list of restricted/forbidden characters.
  • Any article/thread that will help me to delete this folder from my project.
    P.S. in Test&Test I have two folders:
    prod
    non-prod

Each folder includes two files - main.tf(this one surprisingly I can remove) and ping_config.csv.

Can you explain if this problem occurs on terraform cloud or in local environment?

Hello Clayton.
We are using TF cloud.

Seems tfcloud had limitation about caracters out of this range [a-z][A-Z][0-9].-_, so i recommend to evict, not for problem with terraform, but problem with their internal ci/cd process.

Do you tried to remove this workspace from tfcloud ui?

Hi @claytonsilva, we tried removing from git UI and also by cloning the repo locally but both the PRs failed during terraform Plan step, with error : No such file or directory.

Can you guide me on how to delete this directory from tfcloud ui ?