Numeric Answer

NumericAnswerQuestion

A question that required an numerical (integer) answer.


resource "numeric_answer_question" "name" {
  ...
}

Attributes

Attribute
Description

Question question type: string

The question that needs to be answered.

question = "How many fingers does an average hand have?"

Answer answer type: int

The correct answer to the question.

anwer = 5

Hints hints type: []string

The hints to show to the participants.

hints = ["it is between 4 and 6", "no it is not 6"]

Tags tags type: []string

The tags to associate with the question.

tags = ["numbers", "humans"]

Computed Attributes

These attributes are computed when the config is parsed and applied, and are therefore only known at parsetime or runtime.

Attribute
Description

Meta ID meta.id string

The full ID of the resource e.g. `resource.type.name`. This is computed from the full resource path:

// given the following resource
resource "container" "ubuntu" {
  ...
}

// the resulting id will be
resource.container.ubuntu

Meta Type meta.type string

The type of the resource. This taken from the type label of the resource definition.

// given the following resource
resource "container" "ubuntu" {
  ...
}

// the resulting type will be
container

Meta Name meta.name string

The name of the resource. This taken from the name label of the resource definition.

// given the following resource
resource "container" "ubuntu" {
  ...
}

// the resulting name will be
ubuntu

Last updated