Loading...
Loading...
### Terraform Version ```shell 1.0.10 ``` ### Terraform Configuration Files ``` plugin_cache_dir = "C:/Users/a18.kaushik/AppData/Roaming/terraform.d/plugin-cache" ``` ### Debug Output Initializing provider plugins... - terraform.io/builtin/terraform is built in to Terraform - Finding latest version of hashicorp/aws... 2023-03-29T10:22:55.997+0530 [DEBUG] Service discovery for registry.terraform.io at https://registry.terraform.io/.well-known/terraform.json 2023-03-29T10:22:55.997+0530 [TRACE] HTTP client GET request to https://registry.terraform.io/.well-known/terraform.json 2023-03-29T10:22:57.533+0530 [DEBUG] GET https://registry.terraform.io/v1/providers/hashicorp/aws/versions 2023-03-29T10:22:57.534+0530 [TRACE] HTTP client GET request to https://registry.terraform.io/v1/providers/hashicorp/aws/versions 2023-03-29T10:22:58.963+0530 [TRACE] providercache.fillMetaCache: scanning directory .terraform\providers 2023-03-29T10:22:58.963+0530 [TRACE] getproviders.SearchLocalDirectory: failed to resolve symlinks for .terraform\providers: CreateFile .terraform\providers: The system cannot find the file specified. 2023-03-29T10:22:58.963+0530 [TRACE] providercache.fillMetaCache: error while scanning directory .terraform\providers: cannot search .terraform\providers: CreateFile .terraform\providers: The system cannot find the file specified. 2023-03-29T10:22:58.963+0530 [TRACE] providercache.fillMetaCache: scanning directory C:/Users/a18.kaushik/AppData/Roaming/terraform.d/plugin-cache - Using hashicorp/aws v4.60.0 from the shared cache directory 2023-03-29T10:22:58.965+0530 [TRACE] getproviders.SearchLocalDirectory: found registry.terraform.io/hashicorp/aws v4.60.0 for windows_amd64 at C:\Users\a18.kaushik\AppData\Roaming\terraform.d\plugin-cache\registry.terraform.io\hashicorp\aws\4.60.0\windows_amd64 2023-03-29T10:22:58.965+0530 [TRACE] providercache.fillMetaCache: including C:\Users\a18.kaushik\AppData\Roaming\terraform.d\plugin-cache\registry.terraform.io\hashicorp\aws\4.60.0\windows_amd64 as a candidate package for registry.terraform.io/hashicorp/aws 4.60.0 2023-03-29T10:22:58.968+0530 [TRACE] providercache.Dir.LinkFromOtherCache: linking registry.terraform.io/hashicorp/aws v4.60.0 from existing cache C:/Users/a18.kaushik/AppData/Roaming/terraform.d/plugin-cache/registry.terraform.io/hashicorp/aws/4.60.0/windows_amd64 to .terraform/providers/registry.terraform.io/hashicorp/aws/4.60.0/windows_amd64 ╷ │ Error: Failed to install provider from shared cache │ │ Error while importing hashicorp/aws v4.60.0 from the shared cache directory: failed to create directory │ C:\Users\a18.kaushik\Desktop\.terraform\providers\registry.terraform.io\hashicorp\aws\4.60.0\windows_amd64: │ mkdir │ C:\Users\a18.kaushik\Desktop\.terraform\providers\registry.terraform.io\hashicorp\aws\4.60.0\windows_amd64: │ Cannot create a file when that file already exists.. ╵ ### Expected Behavior terraform init execute successfully with cache provider ### Actual Behavior Error: Failed to install provider │ │ Error while installing hashicorp/aws v4.60.0: failed to create directory │ C:\Users\a18.kaushik\Desktop\.terraform\providers\registry.terraform.io\hashicorp\aws\4.60.0\windows_amd64: │ mkdir │ C:\Users\a18.kaushik\Desktop\.terraform\providers\registry.terraform.io\hashicorp\aws\4.60.0\windows_amd64: │ Cannot create a file when that file already exists. ### Steps to Reproduce 1. make terraform.rc file with above configuration file settings 2. create "plugin-cache" folder in "C:\Users\a18.kaushik\AppData\Roaming\terraform.d" 3. run terraform init ### Additional Context followed documentation for provider plugin cache : https://developer.hashicorp.com/terraform/cli/config/config-file#provider-installation ### References _No response_
Click on a version to see all relevant bugs
Terraform Integration
Learn more about where this data comes from
Bug Scrub Advisor
Streamline upgrades with automated vendor bug scrubs
BugZero Enterprise
Wish you caught this bug sooner? Get proactive today.