Skip to content

TF Plan directory issue #10

@amolsp777

Description

@amolsp777

Hello Piyush,

I followed the video and steps but got this below error in TF Plan

/usr/local/bin/terraform providers
╷
│ Error: No configuration files
│ 
│ The directory /home/vsts/work/1/s contains no Terraform configuration
│ files./usr/local/bin/terraform plan -out /home/vsts/work/1/s/tfplanfile -detailed-exitcode
╷
│ Error: No configuration files
│ 
│ Plan requires configuration to be present. Planning without a configuration
│ would mark everything for destruction, which is normally not what is
│ desired. If you would like to destroy everything, run plan with the
│ -destroy option. Otherwise, create a Terraform configuration file (.tf
│ file) and try again.##[warning]Can't find loc string for key: TerraformPlanFailed
##[error]Error: TerraformPlanFailed 1
Finishing: TF plan

FYI.. I didn't execute the tf code using a manual process but imported it in the ADO repo and tried from there the first time, will that impact? guess no.
Please assist with how to come out of it.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions