CloudGuardIaaS icon indicating copy to clipboard operation
CloudGuardIaaS copied to clipboard

error when using the "terraform validate"!

Open raylauhk opened this issue 3 months ago • 0 comments

what is the problem when I used the "terraform validate" ?

terraform validate ╷ │ Error: Module module.gwlb.module.autoscale_gwlb contains provider configuration │ │ Providers cannot be configured within modules using count, for_each or depends_on. ╵ ╷ │ Error: Module module.gwlb.module.management.module.cme_iam_role contains provider configuration │ │ Providers cannot be configured within modules using count, for_each or depends_on. ╵ ╷ │ Error: Module module.gwlb.module.management.module.cme_iam_role_gwlb contains provider configuration │ │ Providers cannot be configured within modules using count, for_each or depends_on. ╵ ╷ │ Error: Module module.gwlb.module.management contains provider configuration │ │ Providers cannot be configured within modules using count, for_each or depends_on. ╵ ╷ │ Error: Cannot override provider configuration │ │ on main.tf line 229, in module "gwlb": │ 229: aws = aws │ │ Provider aws is configured within the module module.gwlb and cannot be overridden. ╵ ╷ │ Error: Cannot override provider configuration │ │ on ../gwlb/main.tf line 39, in module "autoscale_gwlb": │ 39: aws = aws │ │ Provider aws is configured within the module module.gwlb.module.autoscale_gwlb and cannot be overridden. ╵ ╷ │ Error: Cannot override provider configuration │ │ on ../gwlb/main.tf line 72, in module "management": │ 72: aws = aws │ │ Provider aws is configured within the module module.gwlb.module.management and cannot be overridden. ╵ ╷ │ Error: Cannot override provider configuration │ │ on ../management/main.tf line 178, in module "cme_iam_role": │ 178: aws = aws │ │ Provider aws is configured within the module module.gwlb.module.management.module.cme_iam_role and cannot be overridden. ╵ ╷ │ Error: Cannot override provider configuration │ │ on ../management/main.tf line 189, in module "cme_iam_role_gwlb": │ 189: aws = aws │ │ Provider aws is configured within the module module.gwlb.module.management.module.cme_iam_role_gwlb and cannot be overridden.

raylauhk avatar May 09 '24 06:05 raylauhk