Skip to content

[Terraform] [AWS] "For_each" statement  #106

@ihebsidhom

Description

@ihebsidhom

Describe the bug

Creating multiple EC2 instances using for each statement

To Reproduce

Steps to reproduce the behavior:

  1. Go to the text view
  2. Add a for_each variable and link it to an aws resource
  3. Switch to the draw view
  4. See that the resource is not created multiple time

Expected behavior

For each statement contains two values :

variable "instance_set" {
type = set(string)
default = ["Instance A", "Instance B"]
}

=> Two instances created referring to instance_set declaration.

Application (please complete the following information):

Terrator-plugin version 0.8.0
Desktop (please complete the following information):

OS: Windows 11
Browser: chrome
Version: 121.0.6167.161 (Build officiel) (64 bits)

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions