Terraform plan step failing for me


I just started on learning terraform to create assets in AWS cloud. The first hurdle I am facing is the terraform plan step.

I see the error:

Error: error configuring Terraform AWS Provider: Error creating AWS session: LoadCustomCABundleError: failed to open custom 
CA bundle PEM file
│ caused by: open C:\Program Files\Amazon\AWSCLIV2\botocore\cacert.pem: The system cannot find the path specified.
│   with provider["registry.terraform.io/hashicorp/aws"],
│   on main.tf line 1, in provider "aws":
│    1: provider "aws" {

I can see what “might” be going wrong. It is looking for the cacert.pem in:
C:\Program Files\Amazon\AWSCLIV2\botocore
But in my windows machine the folder structure after AWS CLI install is:
C:\Program Files\Amazon\AWSCLIV2\awscli\botocore

Is there any way I can set some environment variables in the VS Code terminal to sort this out?

Software versions:
Terraform: v1.1.4
AWS: aws-cli/2.4.13 Python/3.8.8 Windows/10 exe/AMD64 prompt/off
Environment: VS Code 1.63.2

this might be helpful