Skip to content

postgresql_config - all map elements must have the same type #17

@avsob

Description

@avsob

Добрый день!

В примере переменная postgresql_config описывается так:

 postgresql_config = {
    max_connections                = 395
    enable_parallel_hash           = true
    autovacuum_vacuum_scale_factor = 0.34
    default_transaction_isolation  = "TRANSACTION_ISOLATION_READ_COMMITTED"
    shared_preload_libraries       = "SHARED_PRELOAD_LIBRARIES_AUTO_EXPLAIN,SHARED_PRELOAD_LIBRARIES_PG_HINT_PLAN"
  } 

Однако данная переменная имеет тип "map(any)" - то есть map of any single type.
В примере указаны различные типы (numeric, string, bool).
Потому резонно получаем ошибку:

Error: Invalid value for input variable
The given value is not suitable for module.db.var.postgresql_config declared at ..\..\variables.tf:189,1-29: all map elements must have the same type.

Как быть?

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