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 issue #235

Open
arashaga opened this issue Sep 24, 2024 · 0 comments
Open

terraform issue #235

arashaga opened this issue Sep 24, 2024 · 0 comments

Comments

@arashaga
Copy link

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.

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