Skip to content

terraform issue #235

@arashaga

Description

@arashaga

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions