Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

terraform init #3

Open
foxyhodge opened this issue Oct 10, 2023 · 4 comments
Open

terraform init #3

foxyhodge opened this issue Oct 10, 2023 · 4 comments

Comments

@foxyhodge
Copy link

when I am running terraform init command also trying to create ai landing zone, it show like below mention error:

Filename too long
│ error: unable to create file
│ modules/archetypes/lib/role_definitions/role_definition_es_security_operations.tmpl.json:
│ Filename too long
│ error: unable to create file
│ tests/modules/test_lib/policy_assignments/policy_assignment_es_deny_rsg_locations.json.tftpl:
│ Filename too long
│ error: unable to create file
│ tests/modules/test_lib/policy_assignments/policy_assignment_test_policy_set_definition.json:
│ Filename too long
│ fatal: unable to checkout working tree
│ warning: Clone succeeded, but checkout failed.
│ You can inspect what was checked out with 'git status'
│ and retry with 'git restore --source=HEAD :/'

please help in this case to rectify the error.

@foxyhodge
Copy link
Author

terraform init
Initializing modules...
Downloading registry.terraform.io/Azure/caf-enterprise-scale/azurerm 4.2.0 for connectivity.enterprise_scale...
Downloading registry.terraform.io/Azure/caf-enterprise-scale/azurerm 4.2.0 for core.enterprise_scale_core...
Downloading registry.terraform.io/Azure/caf-enterprise-scale/azurerm 4.2.0 for management.enterprise_scale_management...

│ Error: Failed to download module

│ Could not download module "enterprise_scale" (connectivity\main.tf:34) source code from
│ "git::https://github.com/Azure/terraform-azurerm-caf-enterprise-scale?ref=v4.2.0": error downloading
│ 'https://github.com/Azure/terraform-azurerm-caf-enterprise-scale?ref=v4.2.0': C:\Program Files\Git\cmd\git.exe exited with 128: Cloning into
│ '.terraform\modules\connectivity.enterprise_scale'...
│ error: unable to create file examples/400-multi-with-orchestration/modules/core/lib/policy_assignment_es_deploy_vmss_monitoring.tmpl.json.tftpl: Filename too long
│ error: unable to create file modules/archetypes/lib/policy_assignments/policy_assignment_es_deny_databricks_public_ip.tmpl.json: Filename too long
│ error: unable to create file modules/archetypes/lib/policy_assignments/policy_assignment_es_deploy_private_dns_zones.tmpl.json: Filename too long
│ error: unable to create file modules/archetypes/lib/policy_definitions/policy_definition_es_append_redis_disablenonsslport.json: Filename too long
│ error: unable to create file modules/archetypes/lib/policy_definitions/policy_definition_es_audit_disks_unusedresourcescostoptimization.json: Filename too long
│ error: unable to create file modules/archetypes/lib/policy_definitions/policy_definition_es_audit_machinelearning_privateendpointid.json: Filename too long
│ error: unable to create file modules/archetypes/lib/policy_definitions/policy_definition_es_audit_publicipaddresses_unusedresourcescostoptimization.json: Filename
│ too long

@foxyhodge
Copy link
Author

Hi Freddy,

"AzureAIServicesLandingZone-main\AzureAIServicesLandingZone-main\Modules\Core\linux_web_app" is empty.

When I am running "Terraform init" command to run the "Workload" it is showing error like this,

terraform init -reconfigure
Initializing modules...

  • cognitive_search in ....\Modules\AI\cognitive_search
  • cognitive_services in ....\Modules\AI\cognitive_services
  • linux_web_app in
  • openai in ....\Modules\AI\open_ai
    Downloading registry.terraform.io/andrewCluey/private-endpoint/azurerm 2.0.4 for private_endpoint...
  • private_endpoint in .terraform\modules\private_endpoint
    Downloading registry.terraform.io/andrewCluey/private-endpoint/azurerm 2.0.4 for private_endpoint_ai...
  • private_endpoint_ai in .terraform\modules\private_endpoint_ai
  • service_plan in ....\Modules\Core\AppService
    Downloading registry.terraform.io/Azure/subnets/azurerm 1.0.0 for vnet_ai...
  • vnet_ai in .terraform\modules\vnet_ai

    │ Error: Unreadable module directory

    │ Unable to evaluate directory symlink: CreateFile ....\Modules\Core\linux_web_app\modules: The system cannot find the file specified.


│ Error: Failed to read module directory

│ Module directory does not exist or cannot be read.

@radhey-0603
Copy link

@FreddyAyala can you give response , for above error. On Linux webapps folder is empty

@radhey-0603
Copy link

@FreddyAyala can you please help us with this issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants