Azure-Samples / Azure-Samples/miyagi
terraform issue
- Dominant language
- Jupyter Notebook
- Stars
- 752
- Forks
- 256
- PR merge metrics
- No merged PRs in 30d
Description
when I run the terraform plan -out tfplan I get errors:
╷
│ Error: Unsupported argument
│
│ on azurerm_virtual_network.tf line 42, in resource "azurerm_subnet" "redis":
│ 42: private_endpoint_network_policies_enabled = false
│
│ An argument named "private_endpoint_network_policies_enabled" is not expected here.
╵
╷
│ Error: Invalid index
│
│ on module_postgres.tf line 15, in module "postgres":
│ 15: "first" = cidrhost(azurerm_virtual_network.default.address_space[0], 1)
│
│ Elements of a set are identified only by their value and don't have any separate index or key to select with, so it's only possible to perform operations across all elements of the set.
╵
╷
│ Error: Invalid index
│
│ on module_postgres.tf line 16, in module "postgres":
│ 16: "last" = cidrhost(azurerm_virtual_network.default.address_space[0], 65024)
│
│ Elements of a set are identified only by their value and don't have any separate index or key to select with, so it's only possible to perform operations across all elements of the set.
╵
╷
│ Error: Invalid index
│
│ on module_redis_cache.tf line 14, in module "redis":
│ 14: "first" = cidrhost(azurerm_virtual_network.default.address_space[0], 1)
│
│ Elements of a set are identified only by their value and don't have any separate index or key to select with, so it's only possible to perform operations across all elements of the set.
╵
╷
│ Error: Invalid index
│
│ on module_redis_cache.tf line 15, in module "redis":
│ 15: "last" = cidrhost(azurerm_virtual_network.default.address_space[0], 65024)
│
│ Elements of a set are identified only by their value and don't have any separate index or key to select with, so it's only possible to perform operations across all elements of the set.
╵
╷
│ Error: Unsupported argument
│
│ on modules/cosmosdb/azurerm_cosmosdb_account.tf line 8, in resource "azurerm_cosmosdb_account" "default":
│ 8: enable_automatic_failover = true
│
│ An argument named "enable_automatic_failover" is not expected here.
╵
╷
│ Error: Unsupported argument
│
│ on modules/jumpbox/azurerm-linux-virtual-machine.tf line 14, in resource "azurerm_network_interface" "jumpbox":
│ 14: enable_accelerated_networking = true
│
│ An argument named "enable_accelerated_networking" is not expected here.
╵
╷
│ Error: Unsupported argument
│
│ on modules/redis_cache/azurerm_redis_cache.tf line 8, in resource "azurerm_redis_cache" "default":
│ 8: enable_non_ssl_port = false
│
│ An argument named "enable_non_ssl_port" is not expected here.
Contributor guide
Research direction
Start by running `terraform plan -out tfplan` and inspect the provider configuration alongside the errors. Review azurerm_virtual_network.tf, module_postgres.tf, module_redis_cache.tf, modules/cosmosdb/azurerm_cosmosdb_account.tf, modules/jumpbox/azurerm-linux-virtual-machine.tf, and modules/redis_cache/azurerm_redis_cache.tf. Done means the reported unsupported-argument and invalid-index errors no longer occur during planning.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- azure, terraform
- Domain
- cloud, infrastructure
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100