antonbabenko / modules.tf-lambda

Infrastructure as code generator - from visual diagrams created with Cloudcraft.co to Terraform
https://www.cloudcraft.co/
MIT License
351 stars 56 forks source link

ALB does not set subnet properly #39

Open antonbabenko opened 4 years ago

antonbabenko commented 4 years ago

Describe the bug

https://github.com/antonbabenko/modules.tf-lambda/issues/28#issuecomment-624510232

ALB belongs to VPC, but the subnets argument does not seem to set.

{
  "id": "f8abab63-0007-4ea2-8ea8-b9186d3259f1",
  "data": {
    "grid": "standard",
    "name": "test2",
    "text": [
      {
        "id": "91b7110b-90cb-4d34-83fc-8a55c95bd393",
        "text": "Auto Scaling",
        "type": "isotext",
        "color": {
          "2d": "#f5b720",
          "isometric": "#ffffff"
        },
        "mapPos": {
          "relTo": "cf8dd975-3e12-47b4-89b1-7f6aee0d0f26",
          "offset": [
            -0.18000000000000016,
            1.1399999999999997
          ]
        },
        "outline": true,
        "standing": false,
        "textSize": 25,
        "direction": "down",
        "isometric": true
      },
      {
        "id": "d5ed2357-f83c-4811-a67e-7d9e530da451",
        "text": "ELB",
        "type": "isotext",
        "color": {
          "2d": "#f5b720",
          "isometric": "#ffffff"
        },
        "mapPos": {
          "relTo": "38913a77-d1a8-46d9-a013-519264b0d4c9",
          "offset": [
            0.125,
            1
          ]
        },
        "outline": true,
        "standing": false,
        "textSize": 25,
        "direction": "down",
        "isometric": true
      }
    ],
    "edges": [
      {
        "to": "e3d78548-758d-4711-9de0-b17de0dc768f",
        "from": "38913a77-d1a8-46d9-a013-519264b0d4c9",
        "type": "edge",
        "color": {
          "2d": "#000000",
          "isometric": "#000000"
        },
        "width": 2,
        "dashed": false,
        "endCap": "arrow"
      }
    ],
    "icons": [],
    "nodes": [
      {
        "id": "e3d78548-758d-4711-9de0-b17de0dc768f",
        "type": "ec2",
        "color": {
          "2d": "#d86613",
          "isometric": "#ececed"
        },
        "mapPos": [
          4,
          6.25
        ],
        "region": "us-west-1",
        "platform": "linux",
        "accentColor": {
          "2d": "#d86613",
          "isometric": "#f44336"
        },
        "transparent": false,
        "instanceSize": "xlarge",
        "instanceType": "c5",
        "billingOptions": {
          "type": "od",
          "utilization": 1
        }
      },
      {
        "id": "38913a77-d1a8-46d9-a013-519264b0d4c9",
        "lcu": 1,
        "type": "elb",
        "color": {
          "2d": "#693cc5",
          "isometric": "#ececed"
        },
        "dataGb": 10,
        "mapPos": [
          4,
          9
        ],
        "region": "us-west-1",
        "elbType": "application",
        "accentColor": {
          "2d": "#ffffff",
          "isometric": "#4286c5"
        }
      }
    ],
    "groups": [
      {
        "id": "cf8dd975-3e12-47b4-89b1-7f6aee0d0f26",
        "type": "asg",
        "color": {
          "2d": "#f5b720",
          "isometric": "#f44336"
        },
        "nodes": [
          "e3d78548-758d-4711-9de0-b17de0dc768f"
        ],
        "layout": "even",
        "mapPos": [
          3.5,
          6.25
        ],
        "region": "us-west-1",
        "mapSize": [
          2,
          1
        ]
      },
      {
        "id": "d47e0440-653f-4d94-93d5-ad65c7dfa52f",
        "name": "vpc",
        "type": "vpc",
        "color": {
          "2d": "#3f51b5",
          "isometric": "#3f51b5"
        },
        "nodes": [
          "38913a77-d1a8-46d9-a013-519264b0d4c9",
          "e3d78548-758d-4711-9de0-b17de0dc768f"
        ],
        "shape": "dynamic",
        "region": "us-west-1",
        "padding": 1.5,
        "peeringConnections": []
      }
    ],
    "images": [],
    "linkKey": "iBtyR4AsIr9jWfy-sJARUg",
    "version": 1,
    "surfaces": [],
    "shareDocs": false,
    "connectors": [],
    "projection": "isometric",
    "disabledLayers": []
  },
  "readAccess": null,
  "writeAccess": null,
  "createdAt": "2020-05-06T08:19:31.982Z",
  "updatedAt": "2020-05-06T08:22:40.607Z",
  "CreatorId": "0cfaaa28-bd74-42f7-a6f5-4f78c91ab92e",
  "LastUserId": "0cfaaa28-bd74-42f7-a6f5-4f78c91ab92e"
}