Azure / wordpress-linux-appservice

MIT License
96 stars 65 forks source link

Terraform: An argument named "docker_image_name" is not expected here. #120

Open tannertechnology opened 9 months ago

tannertechnology commented 9 months ago

Hey there,

I'm attempting to use the Terraform code. With or without modification to dev.tfvars I run the following:

terraform init terraform plan -var-file='dev.tfvars'

And I get the following errors: ╷ │ Error: Unsupported argument │ │ on main.tf line 116, in resource "azurerm_linux_web_app" "wordpress_web_app": │ 116: docker_image_name = "${var.wordpress_container_linux_fx_version}:8.2" │ │ An argument named "docker_image_name" is not expected here. ╵ ╷ │ Error: Unsupported argument │ │ on main.tf line 117, in resource "azurerm_linux_web_app" "wordpress_web_app": │ 117: docker_registry_url = var.app_service_docker_registry_url │ │ An argument named "docker_registry_url" is not expected here.

I am running Terraform 1.6.0 on Windows 11. Same occurs with Terraform 1.5.7. Same happens in Ubuntu 22.04.3 under WSL2 with:

Terraform v1.6.1 on linux_amd64

tannertechnology commented 9 months ago

Reverting this commit https://github.com/Azure/wordpress-linux-appservice/commit/a8c3eb872200afa564e1a30ae903da57cad4333e gets me there by the looks.

Odd though, I'm running terraform 1.6.1