{
  "version": 4,
  "terraform_version": "1.15.6",
  "serial": 9,
  "lineage": "df6d346f-1b17-4b8f-6165-3536b2b272fe",
  "outputs": {
    "minio_console_url": {
      "value": "http://localhost:30901",
      "type": "string"
    },
    "offload_schedule": {
      "value": "*/2 * * * *",
      "type": "string"
    },
    "warehouse_explorer_url": {
      "value": "http://localhost:30089",
      "type": "string"
    }
  },
  "resources": [
    {
      "mode": "managed",
      "type": "kubernetes_cron_job_v1",
      "name": "offload",
      "provider": "provider[\"registry.terraform.io/hashicorp/kubernetes\"]",
      "instances": [
        {
          "schema_version": 0,
          "attributes": {
            "id": "ground/offload",
            "metadata": [
              {
                "annotations": {},
                "generate_name": "",
                "generation": 1,
                "labels": {
                  "app.kubernetes.io/part-of": "swarm-ground"
                },
                "name": "offload",
                "namespace": "ground",
                "resource_version": "6337",
                "uid": "a1b55fa7-eb9f-46d6-bddf-82576be4c872"
              }
            ],
            "spec": [
              {
                "concurrency_policy": "Forbid",
                "failed_jobs_history_limit": 3,
                "job_template": [
                  {
                    "metadata": [
                      {
                        "annotations": {},
                        "generate_name": "",
                        "generation": 0,
                        "labels": {
                          "app.kubernetes.io/part-of": "swarm-ground"
                        },
                        "name": "",
                        "namespace": "",
                        "resource_version": "",
                        "uid": ""
                      }
                    ],
                    "spec": [
                      {
                        "active_deadline_seconds": 0,
                        "backoff_limit": 1,
                        "backoff_limit_per_index": 0,
                        "completion_mode": "",
                        "completions": 1,
                        "manual_selector": false,
                        "max_failed_indexes": 0,
                        "parallelism": 1,
                        "pod_failure_policy": [],
                        "selector": [],
                        "template": [
                          {
                            "metadata": [
                              {
                                "annotations": {},
                                "generate_name": "",
                                "generation": 0,
                                "labels": {
                                  "app.kubernetes.io/part-of": "swarm-ground"
                                },
                                "name": "",
                                "resource_version": "",
                                "uid": ""
                              }
                            ],
                            "spec": [
                              {
                                "active_deadline_seconds": 0,
                                "affinity": [],
                                "automount_service_account_token": true,
                                "container": [
                                  {
                                    "args": [],
                                    "command": [
                                      "sh",
                                      "-c",
                                      "mc alias set store http://minio:9000 \"$MINIO_ROOT_USER\" \"$MINIO_ROOT_PASSWORD\" \u0026\u0026 mc mb -p store/warehouse \u0026\u0026 mc mirror --overwrite /warehouse store/warehouse"
                                    ],
                                    "env": [],
                                    "env_from": [
                                      {
                                        "config_map_ref": [],
                                        "prefix": "",
                                        "secret_ref": [
                                          {
                                            "name": "minio-credentials",
                                            "optional": false
                                          }
                                        ]
                                      }
                                    ],
                                    "image": "minio/mc:RELEASE.2024-06-12T14-34-03Z",
                                    "image_pull_policy": "IfNotPresent",
                                    "lifecycle": [],
                                    "liveness_probe": [],
                                    "name": "mirror",
                                    "port": [],
                                    "readiness_probe": [],
                                    "resources": [
                                      {
                                        "limits": {},
                                        "requests": {}
                                      }
                                    ],
                                    "security_context": [],
                                    "startup_probe": [],
                                    "stdin": false,
                                    "stdin_once": false,
                                    "termination_message_path": "/dev/termination-log",
                                    "termination_message_policy": "File",
                                    "tty": false,
                                    "volume_device": [],
                                    "volume_mount": [
                                      {
                                        "mount_path": "/warehouse",
                                        "mount_propagation": "None",
                                        "name": "warehouse",
                                        "read_only": true,
                                        "sub_path": "",
                                        "sub_path_expr": ""
                                      }
                                    ],
                                    "working_dir": ""
                                  }
                                ],
                                "dns_config": [],
                                "dns_policy": "ClusterFirst",
                                "enable_service_links": true,
                                "host_aliases": [],
                                "host_ipc": false,
                                "host_network": false,
                                "host_pid": false,
                                "hostname": "",
                                "image_pull_secrets": [],
                                "init_container": [
                                  {
                                    "args": [],
                                    "command": [
                                      "sh",
                                      "-c",
                                      "cp -ru /lake/flight_id=* /warehouse/ 2\u003e/dev/null; ls /warehouse | wc -l"
                                    ],
                                    "env": [],
                                    "env_from": [],
                                    "image": "busybox:1.36",
                                    "image_pull_policy": "IfNotPresent",
                                    "lifecycle": [],
                                    "liveness_probe": [],
                                    "name": "copy",
                                    "port": [],
                                    "readiness_probe": [],
                                    "resources": [
                                      {
                                        "limits": {},
                                        "requests": {}
                                      }
                                    ],
                                    "security_context": [],
                                    "startup_probe": [],
                                    "stdin": false,
                                    "stdin_once": false,
                                    "termination_message_path": "/dev/termination-log",
                                    "termination_message_policy": "File",
                                    "tty": false,
                                    "volume_device": [],
                                    "volume_mount": [
                                      {
                                        "mount_path": "/lake",
                                        "mount_propagation": "None",
                                        "name": "lake",
                                        "read_only": true,
                                        "sub_path": "",
                                        "sub_path_expr": ""
                                      },
                                      {
                                        "mount_path": "/warehouse",
                                        "mount_propagation": "None",
                                        "name": "warehouse",
                                        "read_only": false,
                                        "sub_path": "",
                                        "sub_path_expr": ""
                                      }
                                    ],
                                    "working_dir": ""
                                  }
                                ],
                                "node_name": "",
                                "node_selector": {},
                                "os": [],
                                "priority_class_name": "",
                                "readiness_gate": [],
                                "restart_policy": "Never",
                                "runtime_class_name": "",
                                "scheduler_name": "default-scheduler",
                                "security_context": [],
                                "service_account_name": "",
                                "share_process_namespace": false,
                                "subdomain": "",
                                "termination_grace_period_seconds": 30,
                                "toleration": [],
                                "topology_spread_constraint": [],
                                "volume": [
                                  {
                                    "aws_elastic_block_store": [],
                                    "azure_disk": [],
                                    "azure_file": [],
                                    "ceph_fs": [],
                                    "cinder": [],
                                    "config_map": [],
                                    "csi": [],
                                    "downward_api": [],
                                    "empty_dir": [],
                                    "ephemeral": [],
                                    "fc": [],
                                    "flex_volume": [],
                                    "flocker": [],
                                    "gce_persistent_disk": [],
                                    "git_repo": [],
                                    "glusterfs": [],
                                    "host_path": [
                                      {
                                        "path": "/data",
                                        "type": ""
                                      }
                                    ],
                                    "iscsi": [],
                                    "local": [],
                                    "name": "lake",
                                    "nfs": [],
                                    "persistent_volume_claim": [],
                                    "photon_persistent_disk": [],
                                    "projected": [],
                                    "quobyte": [],
                                    "rbd": [],
                                    "secret": [],
                                    "vsphere_volume": []
                                  },
                                  {
                                    "aws_elastic_block_store": [],
                                    "azure_disk": [],
                                    "azure_file": [],
                                    "ceph_fs": [],
                                    "cinder": [],
                                    "config_map": [],
                                    "csi": [],
                                    "downward_api": [],
                                    "empty_dir": [],
                                    "ephemeral": [],
                                    "fc": [],
                                    "flex_volume": [],
                                    "flocker": [],
                                    "gce_persistent_disk": [],
                                    "git_repo": [],
                                    "glusterfs": [],
                                    "host_path": [
                                      {
                                        "path": "/data/.warehouse",
                                        "type": "DirectoryOrCreate"
                                      }
                                    ],
                                    "iscsi": [],
                                    "local": [],
                                    "name": "warehouse",
                                    "nfs": [],
                                    "persistent_volume_claim": [],
                                    "photon_persistent_disk": [],
                                    "projected": [],
                                    "quobyte": [],
                                    "rbd": [],
                                    "secret": [],
                                    "vsphere_volume": []
                                  }
                                ]
                              }
                            ]
                          }
                        ],
                        "ttl_seconds_after_finished": ""
                      }
                    ]
                  }
                ],
                "schedule": "*/2 * * * *",
                "starting_deadline_seconds": 0,
                "successful_jobs_history_limit": 3,
                "suspend": false,
                "timezone": ""
              }
            ],
            "timeouts": null
          },
          "sensitive_attributes": [],
          "identity_schema_version": 1,
          "identity": {
            "api_version": "batch/v1",
            "kind": "CronJob",
            "name": "offload",
            "namespace": "ground"
          },
          "private": "eyJlMmJmYjczMC1lY2FhLTExZTYtOGY4OC0zNDM2M2JjN2M0YzAiOnsiZGVsZXRlIjo2MDAwMDAwMDAwMH19",
          "dependencies": [
            "kubernetes_namespace.ground",
            "kubernetes_secret.minio"
          ]
        }
      ]
    },
    {
      "mode": "managed",
      "type": "kubernetes_deployment",
      "name": "warehouse_explorer",
      "provider": "provider[\"registry.terraform.io/hashicorp/kubernetes\"]",
      "instances": [
        {
          "schema_version": 1,
          "attributes": {
            "id": "ground/warehouse-explorer",
            "metadata": [
              {
                "annotations": {},
                "generate_name": "",
                "generation": 1,
                "labels": {
                  "app.kubernetes.io/part-of": "swarm-ground"
                },
                "name": "warehouse-explorer",
                "namespace": "ground",
                "resource_version": "5964",
                "uid": "f85535d1-d718-4969-80dd-70d7b4544360"
              }
            ],
            "spec": [
              {
                "min_ready_seconds": 0,
                "paused": false,
                "progress_deadline_seconds": 600,
                "replicas": "1",
                "revision_history_limit": 10,
                "selector": [
                  {
                    "match_expressions": [],
                    "match_labels": {
                      "app": "warehouse-explorer"
                    }
                  }
                ],
                "strategy": [
                  {
                    "rolling_update": [
                      {
                        "max_surge": "25%",
                        "max_unavailable": "25%"
                      }
                    ],
                    "type": "RollingUpdate"
                  }
                ],
                "template": [
                  {
                    "metadata": [
                      {
                        "annotations": {},
                        "generate_name": "",
                        "generation": 0,
                        "labels": {
                          "app": "warehouse-explorer",
                          "app.kubernetes.io/part-of": "swarm-ground"
                        },
                        "name": "",
                        "namespace": "",
                        "resource_version": "",
                        "uid": ""
                      }
                    ],
                    "spec": [
                      {
                        "active_deadline_seconds": 0,
                        "affinity": [],
                        "automount_service_account_token": true,
                        "container": [
                          {
                            "args": [],
                            "command": [
                              "python",
                              "explorer/server.py"
                            ],
                            "env": [
                              {
                                "name": "DATA_DIR",
                                "value": "/warehouse",
                                "value_from": []
                              }
                            ],
                            "env_from": [],
                            "image": "swarm-house/simulator:dev",
                            "image_pull_policy": "Never",
                            "lifecycle": [],
                            "liveness_probe": [],
                            "name": "explorer",
                            "port": [
                              {
                                "container_port": 8088,
                                "host_ip": "",
                                "host_port": 0,
                                "name": "",
                                "protocol": "TCP"
                              }
                            ],
                            "readiness_probe": [],
                            "resources": [
                              {
                                "limits": {},
                                "requests": {}
                              }
                            ],
                            "security_context": [],
                            "startup_probe": [],
                            "stdin": false,
                            "stdin_once": false,
                            "termination_message_path": "/dev/termination-log",
                            "termination_message_policy": "File",
                            "tty": false,
                            "volume_device": [],
                            "volume_mount": [
                              {
                                "mount_path": "/warehouse",
                                "mount_propagation": "None",
                                "name": "warehouse",
                                "read_only": true,
                                "sub_path": "",
                                "sub_path_expr": ""
                              }
                            ],
                            "working_dir": ""
                          }
                        ],
                        "dns_config": [],
                        "dns_policy": "ClusterFirst",
                        "enable_service_links": true,
                        "host_aliases": [],
                        "host_ipc": false,
                        "host_network": false,
                        "host_pid": false,
                        "hostname": "",
                        "image_pull_secrets": [],
                        "init_container": [],
                        "node_name": "",
                        "node_selector": {},
                        "os": [],
                        "priority_class_name": "",
                        "readiness_gate": [],
                        "restart_policy": "Always",
                        "runtime_class_name": "",
                        "scheduler_name": "default-scheduler",
                        "security_context": [],
                        "service_account_name": "",
                        "share_process_namespace": false,
                        "subdomain": "",
                        "termination_grace_period_seconds": 30,
                        "toleration": [],
                        "topology_spread_constraint": [],
                        "volume": [
                          {
                            "aws_elastic_block_store": [],
                            "azure_disk": [],
                            "azure_file": [],
                            "ceph_fs": [],
                            "cinder": [],
                            "config_map": [],
                            "csi": [],
                            "downward_api": [],
                            "empty_dir": [],
                            "ephemeral": [],
                            "fc": [],
                            "flex_volume": [],
                            "flocker": [],
                            "gce_persistent_disk": [],
                            "git_repo": [],
                            "glusterfs": [],
                            "host_path": [
                              {
                                "path": "/data/.warehouse",
                                "type": "DirectoryOrCreate"
                              }
                            ],
                            "iscsi": [],
                            "local": [],
                            "name": "warehouse",
                            "nfs": [],
                            "persistent_volume_claim": [],
                            "photon_persistent_disk": [],
                            "projected": [],
                            "quobyte": [],
                            "rbd": [],
                            "secret": [],
                            "vsphere_volume": []
                          }
                        ]
                      }
                    ]
                  }
                ]
              }
            ],
            "timeouts": null,
            "wait_for_rollout": true
          },
          "sensitive_attributes": [],
          "identity_schema_version": 1,
          "identity": {
            "api_version": "apps/v1",
            "kind": "Deployment",
            "name": "warehouse-explorer",
            "namespace": "ground"
          },
          "private": "eyJlMmJmYjczMC1lY2FhLTExZTYtOGY4OC0zNDM2M2JjN2M0YzAiOnsiY3JlYXRlIjo2MDAwMDAwMDAwMDAsImRlbGV0ZSI6NjAwMDAwMDAwMDAwLCJ1cGRhdGUiOjYwMDAwMDAwMDAwMH0sInNjaGVtYV92ZXJzaW9uIjoiMSJ9",
          "dependencies": [
            "kubernetes_namespace.ground"
          ]
        }
      ]
    },
    {
      "mode": "managed",
      "type": "kubernetes_namespace",
      "name": "ground",
      "provider": "provider[\"registry.terraform.io/hashicorp/kubernetes\"]",
      "instances": [
        {
          "schema_version": 0,
          "attributes": {
            "id": "ground",
            "metadata": [
              {
                "annotations": {},
                "generate_name": "",
                "generation": 0,
                "labels": {
                  "app.kubernetes.io/part-of": "swarm-ground"
                },
                "name": "ground",
                "resource_version": "5926",
                "uid": "e5be5fa0-11b9-4659-9bc1-f6b376f388bf"
              }
            ],
            "timeouts": null,
            "wait_for_default_service_account": false
          },
          "sensitive_attributes": [],
          "identity_schema_version": 1,
          "identity": {
            "api_version": "v1",
            "kind": "Namespace",
            "name": "ground"
          },
          "private": "eyJlMmJmYjczMC1lY2FhLTExZTYtOGY4OC0zNDM2M2JjN2M0YzAiOnsiZGVsZXRlIjozMDAwMDAwMDAwMDB9fQ=="
        }
      ]
    },
    {
      "mode": "managed",
      "type": "kubernetes_persistent_volume_claim",
      "name": "minio",
      "provider": "provider[\"registry.terraform.io/hashicorp/kubernetes\"]",
      "instances": [
        {
          "schema_version": 0,
          "attributes": {
            "id": "ground/minio-data",
            "metadata": [
              {
                "annotations": {},
                "generate_name": "",
                "generation": 0,
                "labels": {},
                "name": "minio-data",
                "namespace": "ground",
                "resource_version": "5947",
                "uid": "480bcab4-d670-4f27-8909-9b1272d0005f"
              }
            ],
            "spec": [
              {
                "access_modes": [
                  "ReadWriteOnce"
                ],
                "resources": [
                  {
                    "limits": {},
                    "requests": {
                      "storage": "2Gi"
                    }
                  }
                ],
                "selector": [],
                "storage_class_name": "local-path",
                "volume_mode": "Filesystem",
                "volume_name": ""
              }
            ],
            "timeouts": null,
            "wait_until_bound": true
          },
          "sensitive_attributes": [],
          "identity_schema_version": 0,
          "private": "eyJlMmJmYjczMC1lY2FhLTExZTYtOGY4OC0zNDM2M2JjN2M0YzAiOnsiY3JlYXRlIjozMDAwMDAwMDAwMDB9LCJzY2hlbWFfdmVyc2lvbiI6IjAifQ=="
        }
      ]
    },
    {
      "mode": "managed",
      "type": "kubernetes_secret",
      "name": "minio",
      "provider": "provider[\"registry.terraform.io/hashicorp/kubernetes\"]",
      "instances": [
        {
          "schema_version": 0,
          "attributes": {
            "binary_data": null,
            "binary_data_wo": null,
            "binary_data_wo_revision": null,
            "data": {
              "MINIO_ROOT_PASSWORD": "warehouse-sim-only",
              "MINIO_ROOT_USER": "warehouse"
            },
            "data_wo": null,
            "data_wo_revision": null,
            "id": "ground/minio-credentials",
            "immutable": false,
            "metadata": [
              {
                "annotations": {},
                "generate_name": "",
                "generation": 0,
                "labels": {},
                "name": "minio-credentials",
                "namespace": "ground",
                "resource_version": "5929",
                "uid": "94e85160-0dba-4570-8e61-92e299760ce3"
              }
            ],
            "timeouts": null,
            "type": "Opaque",
            "wait_for_service_account_token": true
          },
          "sensitive_attributes": [
            [
              {
                "type": "get_attr",
                "value": "binary_data"
              }
            ],
            [
              {
                "type": "get_attr",
                "value": "data"
              }
            ],
            [
              {
                "type": "get_attr",
                "value": "data"
              },
              {
                "type": "index",
                "value": {
                  "value": "MINIO_ROOT_PASSWORD",
                  "type": "string"
                }
              }
            ]
          ],
          "identity_schema_version": 1,
          "identity": {
            "api_version": "v1",
            "kind": "Secret",
            "name": "minio-credentials",
            "namespace": "ground"
          },
          "private": "eyJlMmJmYjczMC1lY2FhLTExZTYtOGY4OC0zNDM2M2JjN2M0YzAiOnsiY3JlYXRlIjo2MDAwMDAwMDAwMH19",
          "dependencies": [
            "kubernetes_namespace.ground"
          ]
        }
      ]
    },
    {
      "mode": "managed",
      "type": "kubernetes_service",
      "name": "minio",
      "provider": "provider[\"registry.terraform.io/hashicorp/kubernetes\"]",
      "instances": [
        {
          "schema_version": 1,
          "attributes": {
            "id": "ground/minio",
            "metadata": [
              {
                "annotations": {},
                "generate_name": "",
                "generation": 0,
                "labels": {},
                "name": "minio",
                "namespace": "ground",
                "resource_version": "5937",
                "uid": "f3412ffd-efb1-4ac6-a8f1-a4a5be7e7b26"
              }
            ],
            "spec": [
              {
                "allocate_load_balancer_node_ports": true,
                "cluster_ip": "10.43.22.201",
                "cluster_ips": [
                  "10.43.22.201"
                ],
                "external_ips": [],
                "external_name": "",
                "external_traffic_policy": "Cluster",
                "health_check_node_port": 0,
                "internal_traffic_policy": "Cluster",
                "ip_families": [
                  "IPv4"
                ],
                "ip_family_policy": "SingleStack",
                "load_balancer_class": "",
                "load_balancer_ip": "",
                "load_balancer_source_ranges": [],
                "port": [
                  {
                    "app_protocol": "",
                    "name": "api",
                    "node_port": 32746,
                    "port": 9000,
                    "protocol": "TCP",
                    "target_port": "9000"
                  },
                  {
                    "app_protocol": "",
                    "name": "console",
                    "node_port": 30901,
                    "port": 9001,
                    "protocol": "TCP",
                    "target_port": "9001"
                  }
                ],
                "publish_not_ready_addresses": false,
                "selector": {
                  "app": "minio"
                },
                "session_affinity": "None",
                "session_affinity_config": [],
                "type": "NodePort"
              }
            ],
            "status": [
              {
                "load_balancer": [
                  {
                    "ingress": []
                  }
                ]
              }
            ],
            "timeouts": null,
            "wait_for_load_balancer": true
          },
          "sensitive_attributes": [],
          "identity_schema_version": 1,
          "identity": {
            "api_version": "v1",
            "kind": "Service",
            "name": "minio",
            "namespace": "ground"
          },
          "private": "eyJlMmJmYjczMC1lY2FhLTExZTYtOGY4OC0zNDM2M2JjN2M0YzAiOnsiY3JlYXRlIjo2MDAwMDAwMDAwMDB9LCJzY2hlbWFfdmVyc2lvbiI6IjEifQ==",
          "dependencies": [
            "kubernetes_namespace.ground"
          ]
        }
      ]
    },
    {
      "mode": "managed",
      "type": "kubernetes_service",
      "name": "warehouse_explorer",
      "provider": "provider[\"registry.terraform.io/hashicorp/kubernetes\"]",
      "instances": [
        {
          "schema_version": 1,
          "attributes": {
            "id": "ground/warehouse-explorer",
            "metadata": [
              {
                "annotations": {},
                "generate_name": "",
                "generation": 0,
                "labels": {},
                "name": "warehouse-explorer",
                "namespace": "ground",
                "resource_version": "5933",
                "uid": "55457495-82fb-4def-ac18-730652f75507"
              }
            ],
            "spec": [
              {
                "allocate_load_balancer_node_ports": true,
                "cluster_ip": "10.43.212.60",
                "cluster_ips": [
                  "10.43.212.60"
                ],
                "external_ips": [],
                "external_name": "",
                "external_traffic_policy": "Cluster",
                "health_check_node_port": 0,
                "internal_traffic_policy": "Cluster",
                "ip_families": [
                  "IPv4"
                ],
                "ip_family_policy": "SingleStack",
                "load_balancer_class": "",
                "load_balancer_ip": "",
                "load_balancer_source_ranges": [],
                "port": [
                  {
                    "app_protocol": "",
                    "name": "",
                    "node_port": 30089,
                    "port": 8088,
                    "protocol": "TCP",
                    "target_port": "8088"
                  }
                ],
                "publish_not_ready_addresses": false,
                "selector": {
                  "app": "warehouse-explorer"
                },
                "session_affinity": "None",
                "session_affinity_config": [],
                "type": "NodePort"
              }
            ],
            "status": [
              {
                "load_balancer": [
                  {
                    "ingress": []
                  }
                ]
              }
            ],
            "timeouts": null,
            "wait_for_load_balancer": true
          },
          "sensitive_attributes": [],
          "identity_schema_version": 1,
          "identity": {
            "api_version": "v1",
            "kind": "Service",
            "name": "warehouse-explorer",
            "namespace": "ground"
          },
          "private": "eyJlMmJmYjczMC1lY2FhLTExZTYtOGY4OC0zNDM2M2JjN2M0YzAiOnsiY3JlYXRlIjo2MDAwMDAwMDAwMDB9LCJzY2hlbWFfdmVyc2lvbiI6IjEifQ==",
          "dependencies": [
            "kubernetes_namespace.ground"
          ]
        }
      ]
    }
  ],
  "check_results": null
}
