2023-10-11T08:30:55.497Z [INFO] aztfexport: aztfexport starts with config: config.Config{CommonConfig:config.CommonConfig{SubscriptionId:"", AzureSDKCredential:(*azidentity.DefaultAzureCredential)(0xc004280738), AzureSDKClientOption:policy.ClientOptions{ClientOptions:policy.ClientOptions{APIVersion:"", Cloud:cloud.Configuration{ActiveDirectoryAuthorityHost:"https://login.microsoftonline.com/", Services:map[cloud.ServiceName]cloud.ServiceConfiguration{"resourceManager":cloud.ServiceConfiguration{Audience:"https://management.core.windows.net/", Endpoint:"https://management.azure.com"}}}, Logging:policy.LogOptions{IncludeBody:true, AllowedHeaders:[]string(nil), AllowedQueryParams:[]string(nil)}, Retry:policy.RetryOptions{MaxRetries:0, TryTimeout:0, RetryDelay:0, MaxRetryDelay:0, StatusCodes:[]int(nil), ShouldRetry:(func(*http.Response, error) bool)(nil)}, Telemetry:policy.TelemetryOptions{ApplicationID:"aztfexport", Disabled:false}, TracingProvider:tracing.Provider{newTracerFn:(func(string, string) tracing.Tracer)(nil)}, Transport:exported.Transporter(nil), PerCallPolicies:[]exported.Policy(nil), PerRetryPolicies:[]exported.Policy(nil)}, AuxiliaryTenants:[]string(nil), DisableRPRegistration:false}, OutputDir:"/home/ewan/test", OutputFileNames:config.OutputFileNames{TerraformFileName:"", ProviderFileName:"", MainFileName:"", ImportBlockFileName:""}, ProviderVersion:"", DevProvider:false, ContinueOnError:false, BackendType:"local", BackendConfig:[]string(nil), ProviderConfig:map[string]cty.Value(nil), FullConfig:false, Parallelism:10, ModulePath:"", HCLOnly:false, TFClient:tfclient.Client(nil), TelemetryClient:telemetry.AppInsightClient{TelemetryClient:(*appinsights.telemetryClient)(0xc0007ebe80), subscriptionId:"", installId:"", sessionId:""}}, ResourceId:"", ResourceGroupName:"testgateway-rg", ARGPredicate:"", MappingFile:"", ResourceNamePattern:"res-", RecursiveQuery:true, TFResourceName:"", TFResourceType:""} 2023-10-11T08:30:55.500Z [INFO] aztfexport: New resource group meta 2023-10-11T08:30:55.508Z [DEBUG] aztfexport: UI update. STATUS: initializing | MSG: tea.WindowSizeMsg{Width:120, Height:30} 2023-10-11T08:30:55.508Z [DEBUG] aztfexport: UI update. STATUS: initializing | MSG: &meta.MetaResourceGroup{baseMeta:meta.baseMeta{subscriptionId:"", azureSDKCred:(*azidentity.DefaultAzureCredential)(), azureSDKClientOpt:policy.ClientOptions{ClientOptions:policy.ClientOptions{APIVersion:"", Cloud:cloud.Configuration{ActiveDirectoryAuthorityHost:"https://login.microsoftonline.com/", Services:map[cloud.ServiceName]cloud.ServiceConfiguration{"resourceManager":cloud.ServiceConfiguration{Audience:"https://management.core.windows.net/", Endpoint:"https://management.azure.com"}}}, Logging:policy.LogOptions{IncludeBody:true, AllowedHeaders:[]string(nil), AllowedQueryParams:[]string(nil)}, Retry:policy.RetryOptions{MaxRetries:0, TryTimeout:0, RetryDelay:0, MaxRetryDelay:0, StatusCodes:[]int(nil), ShouldRetry:(func(*http.Response, error) bool)(nil)}, Telemetry:policy.TelemetryOptions{ApplicationID:"aztfexport", Disabled:false}, TracingProvider:tracing.Provider{newTracerFn:(func(string, string) tracing.Tracer)(nil)}, Transport:exported.Transporter(nil), PerCallPolicies:[]exported.Policy(nil), PerRetryPolicies:[]exported.Policy(nil)}, AuxiliaryTenants:[]string(nil), DisableRPRegistration:false}, outdir:"/home/ewan/test", outputFileNames:config.OutputFileNames{TerraformFileName:"terraform.tf", ProviderFileName:"provider.tf", MainFileName:"main.tf", ImportBlockFileName:"import.tf"}, tf:(*tfexec.Terraform)(nil), resourceClient:(*armresources.Client)(0xc0044c8e80), providerVersion:"3.65.0", devProvider:false, backendType:"local", backendConfig:[]string(nil), providerConfig:map[string]cty.Value(nil), fullConfig:false, parallelism:10, hclOnly:false, tfclient:tfclient.Client(nil), moduleAddr:"", moduleDir:"/home/ewan/test", importBaseDirs:[]string(nil), importModuleDirs:[]string(nil), importTFs:[]*tfexec.Terraform(nil), originBaseState:[]uint8(nil), baseState:[]uint8(nil), tc:telemetry.AppInsightClient{TelemetryClient:(*appinsights.telemetryClient)(0xc0007ebe80), subscriptionId:"", installId:"", sessionId:""}}, resourceGroup:"testgateway-rg", resourceNamePrefix:"res-", resourceNameSuffix:""} 2023-10-11T08:30:55.511Z [INFO] aztfexport: Init Terraform 2023-10-11T08:30:55.598Z [INFO] aztfexport: Find terraform binary at /bin/terraform 2023-10-11T08:30:55.598Z [INFO] aztfexport: Init provider 2023-10-11T08:30:55.598Z [INFO] aztfexport: Output directory doesn't contain provider setting, create one then 2023-10-11T08:30:55.598Z [INFO] aztfexport: Output directory doesn't contain terraform block, create one then 2023-10-11T08:30:55.598Z [DEBUG] aztfexport: Run "terraform init" for the output directory /home/ewan/test 2023-10-11T08:31:22.072Z [DEBUG] aztfexport: Run "terraform init" for the import directory /tmp/aztfexport-621534354 2023-10-11T08:31:22.072Z [DEBUG] aztfexport: Run "terraform init" for the import directory /tmp/aztfexport-609721172 2023-10-11T08:31:22.072Z [DEBUG] aztfexport: Run "terraform init" for the import directory /tmp/aztfexport-3887997287 2023-10-11T08:31:22.072Z [DEBUG] aztfexport: Run "terraform init" for the import directory /tmp/aztfexport-612391132 2023-10-11T08:31:22.073Z [DEBUG] aztfexport: Run "terraform init" for the import directory /tmp/aztfexport-2501119961 2023-10-11T08:31:22.073Z [DEBUG] aztfexport: Run "terraform init" for the import directory /tmp/aztfexport-2617089329 2023-10-11T08:31:22.074Z [DEBUG] aztfexport: Run "terraform init" for the import directory /tmp/aztfexport-760037800 2023-10-11T08:31:22.084Z [DEBUG] aztfexport: Run "terraform init" for the import directory /tmp/aztfexport-3668745059 2023-10-11T08:31:22.091Z [DEBUG] aztfexport: Run "terraform init" for the import directory /tmp/aztfexport-2490561832 2023-10-11T08:31:22.100Z [DEBUG] aztfexport: Run "terraform init" for the import directory /tmp/aztfexport-3268536668 2023-10-11T08:33:55.600Z [DEBUG] aztfexport: UI update. STATUS: initializing | MSG: &errors.errorString{s:"initializing provider for the import directories: 3 errors occurred:\n\t* task error: error running terraform init: exit status 1\n\nError: Failed to install provider\n\nError while installing hashicorp/azurerm v3.65.0: unexpected EOF\n\n\n\t* task error: error running terraform init: exit status 1\n\nError: Failed to install provider\n\nError while installing hashicorp/azurerm v3.65.0: unexpected EOF\n\n\n\t* task error: error running terraform init: exit status 1\n\nError: Failed to install provider\n\nError while installing hashicorp/azurerm v3.65.0: unexpected EOF\n\n\n\n"} 2023-10-11T08:35:31.073Z [DEBUG] aztfexport: UI update. STATUS: error | MSG: tea.KeyMsg{Type:3, Runes:[]int32(nil), Alt:false} 2023-10-11T08:35:31.307Z [DEBUG] aztfexport: UI update. STATUS: quitting | MSG: aztfexportclient.QuitMsg{} 2023-10-11T08:35:31.308Z [INFO] aztfexport: aztfexport ends