Terraform plan is failing with local provider type

I have used local resource type but not sure why it is giving error related to AWS.
I have written simple code to create text file in the path showing in the below screenshot.
It got succeeded with terraform init but failed with terraform plan.
I am stuck at this, please suggest what needs to be done in this case.

upon further troubleshooting, I realized to test removing all folders except below one, looks like I am doing something wrong in writing file path, please correct me and here is the latest screenshot.

replace back slash with front slash or try and use double back slash.

1 Like

Hi Ram Sateesh,

I tried to with forword slash, it worked for terraform init. however it is failing with terraform plan. Please see following screenshot and please help, thanks

Hi Ram Sateesh,

No issues, it worked with proper argument name which i have used filename, thanks

1 Like