{
  "aws_instance": [
    {
      "id": "aws_instance.instance_playground",
      "name": "instance_playground",
      "module_name": "root",
      "source": "config1.tf",
      "plan_root": "./",
      "line": 77,
      "type": "aws_instance",
      "config": {
        "ami": "${lookup(var.aws_amis, var.aws_region)}",
        "instance_type": "${var.instance_type}",
        "key_name": "${aws_key_pair.ec2key_playground.key_name}",
        "provisioner": [
          {
            "remote-exec": {
              "connection": [
                {
                  "host": "${self.public_ip}",
                  "private_key": "${file(var.privateKey)}",
                  "type": "ssh",
                  "user": "ubuntu"
                }
              ],
              "inline": [
                "sudo apt-get -y update",
                "sudo apt-get -y install nginx",
                "sudo touch /var/www/html/index.html",
                "echo HelloWorld | sudo tee -a /var/www/html/index.html",
                "sudo service nginx start"
              ]
            }
          }
        ],
        "subnet_id": "${aws_subnet.subnet_public_playground.id}",
        "tags": {
          "Environment": "${var.environment_tag}"
        },
        "vpc_security_group_ids": [
          "${aws_security_group.sg_playground.id}"
        ]
      },
      "line_config": {
        "ami": 78,
        "instance_type": 79,
        "key_name": 82,
        "provisioner": [
          {
            "remote-exec": {
              "connection": [
                {
                  "host": 96,
                  "private_key": 99,
                  "type": 97,
                  "user": 98
                }
              ],
              "inline": 88
            }
          }
        ],
        "subnet_id": 80,
        "tags": {
          "Environment": 84
        },
        "vpc_security_group_ids": 81
      },
      "skip_rules": null,
      "max_severity": "",
      "min_severity": "",
      "terraform_version": "0.14.0",
      "provider_version": "4.42.0"
    }
  ],
  "aws_internet_gateway": [
    {
      "id": "aws_internet_gateway.igw_playground",
      "name": "igw_playground",
      "module_name": "root",
      "source": "config1.tf",
      "plan_root": "./",
      "line": 14,
      "type": "aws_internet_gateway",
      "config": {
        "tags": {
          "Environment": "${var.environment_tag}"
        },
        "vpc_id": "${aws_vpc.vpc_playground.id}"
      },
      "line_config": {
        "tags": {
          "Environment": 17
        },
        "vpc_id": 15
      },
      "skip_rules": null,
      "max_severity": "",
      "min_severity": "",
      "terraform_version": "0.14.0",
      "provider_version": "4.42.0"
    }
  ],
  "aws_key_pair": [
    {
      "id": "aws_key_pair.ec2key_playground",
      "name": "ec2key_playground",
      "module_name": "root",
      "source": "config1.tf",
      "plan_root": "./",
      "line": 72,
      "type": "aws_key_pair",
      "config": {
        "key_name": "testKey",
        "public_key": "${file(var.public_key_path)}"
      },
      "line_config": {
        "key_name": 73,
        "public_key": 74
      },
      "skip_rules": null,
      "max_severity": "",
      "min_severity": "",
      "terraform_version": "0.14.0",
      "provider_version": "4.42.0"
    }
  ],
  "aws_route_table": [
    {
      "id": "aws_route_table.rtb_public_playground",
      "name": "rtb_public_playground",
      "module_name": "root",
      "source": "config1.tf",
      "plan_root": "./",
      "line": 30,
      "type": "aws_route_table",
      "config": {
        "route": [
          {
            "cidr_block": "0.0.0.0/0",
            "gateway_id": "${aws_internet_gateway.igw_playground.id}"
          }
        ],
        "tags": {
          "Environment": "${var.environment_tag}"
        },
        "vpc_id": "${aws_vpc.vpc_playground.id}"
      },
      "line_config": {
        "route": [
          {
            "cidr_block": 33,
            "gateway_id": 34
          }
        ],
        "tags": {
          "Environment": 37
        },
        "vpc_id": 31
      },
      "skip_rules": null,
      "max_severity": "",
      "min_severity": "",
      "terraform_version": "0.14.0",
      "provider_version": "4.42.0"
    }
  ],
  "aws_route_table_association": [
    {
      "id": "aws_route_table_association.rta_subnet_public_playground",
      "name": "rta_subnet_public_playground",
      "module_name": "root",
      "source": "config1.tf",
      "plan_root": "./",
      "line": 41,
      "type": "aws_route_table_association",
      "config": {
        "route_table_id": "${aws_route_table.rtb_public_playground.id}",
        "subnet_id": "${aws_subnet.subnet_public_playground.id}"
      },
      "line_config": {
        "route_table_id": 43,
        "subnet_id": 42
      },
      "skip_rules": null,
      "max_severity": "",
      "min_severity": "",
      "terraform_version": "0.14.0",
      "provider_version": "4.42.0"
    }
  ],
  "aws_security_group": [
    {
      "id": "aws_security_group.sg_playground",
      "name": "sg_playground",
      "module_name": "root",
      "source": "config1.tf",
      "plan_root": "./",
      "line": 46,
      "type": "aws_security_group",
      "config": {
        "egress": [
          {
            "cidr_blocks": [
              "0.0.0.0/0"
            ],
            "from_port": 0,
            "protocol": "-1",
            "to_port": 0
          }
        ],
        "ingress": [
          {
            "cidr_blocks": [
              "0.0.0.0/0"
            ],
            "from_port": 22,
            "protocol": "tcp",
            "to_port": 22
          },
          {
            "cidr_blocks": [
              "0.0.0.0/0"
            ],
            "from_port": 80,
            "protocol": "tcp",
            "to_port": 80
          }
        ],
        "name": "sg",
        "tags": {
          "Environment": "${var.environment_tag}"
        },
        "vpc_id": "${aws_vpc.vpc_playground.id}"
      },
      "line_config": {
        "egress": [
          {
            "cidr_blocks": 65,
            "from_port": 62,
            "protocol": 64,
            "to_port": 63
          }
        ],
        "ingress": [
          {
            "cidr_blocks": 53,
            "from_port": 50,
            "protocol": 52,
            "to_port": 51
          },
          {
            "cidr_blocks": 59,
            "from_port": 56,
            "protocol": 58,
            "to_port": 57
          }
        ],
        "name": 47,
        "tags": {
          "Environment": 68
        },
        "vpc_id": 48
      },
      "skip_rules": null,
      "max_severity": "",
      "min_severity": "",
      "terraform_version": "0.14.0",
      "provider_version": "4.42.0"
    }
  ],
  "aws_subnet": [
    {
      "id": "aws_subnet.subnet_public_playground",
      "name": "subnet_public_playground",
      "module_name": "root",
      "source": "config1.tf",
      "plan_root": "./",
      "line": 21,
      "type": "aws_subnet",
      "config": {
        "cidr_block": "${var.cidr_subnet}",
        "map_public_ip_on_launch": "true",
        "tags": {
          "Environment": "${var.environment_tag}"
        },
        "vpc_id": "${aws_vpc.vpc_playground.id}"
      },
      "line_config": {
        "cidr_block": 23,
        "map_public_ip_on_launch": 24,
        "tags": {
          "Environment": 26
        },
        "vpc_id": 22
      },
      "skip_rules": null,
      "max_severity": "",
      "min_severity": "",
      "terraform_version": "0.14.0",
      "provider_version": "4.42.0"
    }
  ],
  "aws_vpc": [
    {
      "id": "aws_vpc.vpc_playground",
      "name": "vpc_playground",
      "module_name": "root",
      "source": "config1.tf",
      "plan_root": "./",
      "line": 5,
      "type": "aws_vpc",
      "config": {
        "cidr_block": "${var.cidr_vpc}",
        "enable_dns_hostnames": true,
        "enable_dns_support": true,
        "tags": {
          "Environment": "${var.environment_tag}"
        }
      },
      "line_config": {
        "cidr_block": 6,
        "enable_dns_hostnames": 8,
        "enable_dns_support": 7,
        "tags": {
          "Environment": 10
        }
      },
      "skip_rules": null,
      "max_severity": "",
      "min_severity": "",
      "terraform_version": "0.14.0",
      "provider_version": "4.42.0"
    }
  ]
}