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: An argument named "docker_image_name" is not expected here. #120

Open
tannertechnology opened this issue Oct 11, 2023 · 1 comment

Comments

@tannertechnology
Copy link

tannertechnology commented Oct 11, 2023

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

  • provider registry.terraform.io/azure/azapi v1.9.0
  • provider registry.terraform.io/hashicorp/azurerm v3.30.0
  • provider registry.terraform.io/hashicorp/random v3.5.1
@tannertechnology
Copy link
Author

Reverting this commit a8c3eb8 gets me there by the looks.

Odd though, I'm running terraform 1.6.1

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

1 participant