netology-code / netology-code/ter-homeworks

Ошибка в файле 02/demostration2.tf

Open
#1 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
HCL
Stars
2
Forks
204
PR merge metrics
No merged PRs in 30d

Description

terraform init ругается:

╷
│ Error: Invalid type specification
│ 
│   on demostration2.tf line 87, in variable "user_contacts2":
│   87:   type = map(object(map(list(tuple([string, string, bool])))))
│ 
│ Object type constructor requires a map whose keys are attribute names and whose values are the corresponding attribute types.
╵

╷
│ Error: Invalid type specification
│ 
│   on demostration2.tf line 87, in variable "user_contacts2":
│   87:   type = map(object(map(list(tuple([string, string, bool])))))
│ 
│ Object type constructor requires a map whose keys are attribute names and whose values are the corresponding attribute types.
╵

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Open 02/demostration2.tf and inspect variable "user_contacts2" at line 87. Run terraform init in that directory to reproduce the Invalid type specification error, then compare the nested declaration with Terraform's object type syntax and verify that initialization succeeds.

Written by the indexing model from the issue text.

Assessment

Tech stack
terraform
Domain
infrastructure
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
55/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.