From 3eecfb341784eb055b9020fce8e7a057816bf86a Mon Sep 17 00:00:00 2001 From: Alexander Sheredin Date: Mon, 4 Nov 2024 16:26:26 +0300 Subject: [PATCH 01/15] add create_cluster.sh --- create_cluster.sh | 50 +++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 50 insertions(+) create mode 100644 create_cluster.sh diff --git a/create_cluster.sh b/create_cluster.sh new file mode 100644 index 00000000..c17eddbe --- /dev/null +++ b/create_cluster.sh @@ -0,0 +1,50 @@ +#!/bin/bash +namespace="simplyblock" +sbcli_pkg="sbcli-pre" +spdk_image="simplyblock/spdk:faster-bdev-startup-latest" +#terraform destroy --auto-approve + +# review the resources + + +export TFSTATE_BUCKET=qdrant-simplyblock-staging-infra +export TFSTATE_KEY=staging/controlplane +export TFSTATE_REGION=us-east-2 + +terraform init -reconfigure \ + -backend-config="bucket=${TFSTATE_BUCKET}" \ + -backend-config="key=${TFSTATE_KEY}" \ + -backend-config="region=${TFSTATE_REGION}" \ + -backend-config="encrypt=true" + +### switch to workspace +terraform workspace select -or-create "$namespace" + +terraform plan + +# create initial infra +terraform apply -var mgmt_nodes=0 -var storage_nodes=0 -var extra_nodes=0 \ + -var mgmt_nodes_instance_type="m6i.xlarge" -var storage_nodes_instance_type="i3en.6xlarge" \ + -var sbcli_cmd="sbcli-pre" -var extra_nodes_instance_type=m6gd.xlarge \ + -var volumes_per_storage_nodes=0 -var region=eu-central-1 -var extra_nodes_arch=arm64 + + +# Specifying the instance types to use +terraform apply -var mgmt_nodes=1 -var storage_nodes=3 -var extra_nodes=1 \ + -var mgmt_nodes_instance_type="m6i.xlarge" -var storage_nodes_instance_type="i3en.6xlarge" \ + -var sbcli_cmd="sbcli-pre" -var extra_nodes_instance_type=c6gd.8xlarge \ + -var volumes_per_storage_nodes=0 -var region=eu-central-1 -var extra_nodes_arch=arm64 + +# Save terraform output to a file +terraform output -json > outputs.json + +# The boostrap-cluster.sh creates the KEY in `.ssh` directory in the home directory + +chmod +x ./bootstrap-cluster.sh +# specifying cluster argument to use +# --iobuf_small_pool_count 10000 --iobuf_large_pool_count 25000 \ +# --iobuf_large_pool_count 16384 --iobuf_small_pool_count 131072 +./bootstrap-cluster.sh --memory 16g --cpu-mask 0x3 \ + --sbcli-cmd "$sbcli_pkg" --spdk-image "$spdk_image" \ + --iobuf_large_pool_count 16384 --iobuf_small_pool_count 131072 \ + --log-del-interval 300m --metrics-retention-period 2h From a522206b09fe00d49776a1b2eaa9fe964d2804c1 Mon Sep 17 00:00:00 2001 From: Alexander Sheredin Date: Mon, 4 Nov 2024 16:28:52 +0300 Subject: [PATCH 02/15] add create_cluster.sh --- create_cluster.sh | 38 ++++++++++++-------------------------- 1 file changed, 12 insertions(+), 26 deletions(-) diff --git a/create_cluster.sh b/create_cluster.sh index c17eddbe..088f00de 100644 --- a/create_cluster.sh +++ b/create_cluster.sh @@ -1,11 +1,6 @@ #!/bin/bash namespace="simplyblock" -sbcli_pkg="sbcli-pre" -spdk_image="simplyblock/spdk:faster-bdev-startup-latest" -#terraform destroy --auto-approve - -# review the resources - +sbcli_cmd="sbcli-dev" export TFSTATE_BUCKET=qdrant-simplyblock-staging-infra export TFSTATE_KEY=staging/controlplane @@ -20,31 +15,22 @@ terraform init -reconfigure \ ### switch to workspace terraform workspace select -or-create "$namespace" -terraform plan - -# create initial infra -terraform apply -var mgmt_nodes=0 -var storage_nodes=0 -var extra_nodes=0 \ - -var mgmt_nodes_instance_type="m6i.xlarge" -var storage_nodes_instance_type="i3en.6xlarge" \ - -var sbcli_cmd="sbcli-pre" -var extra_nodes_instance_type=m6gd.xlarge \ - -var volumes_per_storage_nodes=0 -var region=eu-central-1 -var extra_nodes_arch=arm64 - - # Specifying the instance types to use -terraform apply -var mgmt_nodes=1 -var storage_nodes=3 -var extra_nodes=1 \ - -var mgmt_nodes_instance_type="m6i.xlarge" -var storage_nodes_instance_type="i3en.6xlarge" \ - -var sbcli_cmd="sbcli-pre" -var extra_nodes_instance_type=c6gd.8xlarge \ - -var volumes_per_storage_nodes=0 -var region=eu-central-1 -var extra_nodes_arch=arm64 +terraform apply -var mgmt_nodes=1 -var storage_nodes=4 -var extra_nodes=0 -var "storage_nodes_arch=arm64" \ + -var mgmt_nodes_instance_type="m6i.xlarge" -var storage_nodes_instance_type="im4gn.4xlarge" \ + -var extra_nodes_instance_type="m6i.large" -var sbcli_cmd="$sbcli_cmd" \ + -var volumes_per_storage_nodes=0 --auto-approve # Save terraform output to a file -terraform output -json > outputs.json +terraform output -json > tf_outputs.json # The boostrap-cluster.sh creates the KEY in `.ssh` directory in the home directory chmod +x ./bootstrap-cluster.sh # specifying cluster argument to use -# --iobuf_small_pool_count 10000 --iobuf_large_pool_count 25000 \ -# --iobuf_large_pool_count 16384 --iobuf_small_pool_count 131072 -./bootstrap-cluster.sh --memory 16g --cpu-mask 0x3 \ - --sbcli-cmd "$sbcli_pkg" --spdk-image "$spdk_image" \ - --iobuf_large_pool_count 16384 --iobuf_small_pool_count 131072 \ - --log-del-interval 300m --metrics-retention-period 2h +./bootstrap-cluster.sh --sbcli-cmd "$sbcli_cmd" --disable-ha-jm \ + --distr-ndcs 2 --distr-npcs 1 --cap-crit 99 --cap-warn 94 --prov-cap-crit 500 \ + --prov-cap-warn 200 --distr-bs 4096 --distr-chunk-bs 4096 \ + --spdk-debug --max-lvol 200 --max-snap 200 --max-prov 30T --number-of-devices 1 \ + --partitions 1 --log-del-interval 300m --metrics-retention-period 2h \ + --number-of-distribs 5 From 939067fbeb956d7bccc635cd6158148420e51912 Mon Sep 17 00:00:00 2001 From: geoffrey1330 Date: Mon, 4 Nov 2024 14:41:52 +0100 Subject: [PATCH 03/15] made changes for xata deployment --- bootstrap-cluster.sh | 44 +- bootstrap-k3s.sh | 44 +- data.tf | 6 +- errored.tfstate | 4597 ++++++++++++++++++++++++++++++++++++++++++ locals.tf | 2 +- main.tf | 8 +- outputs.tf | 8 +- tfengine.tf | 54 +- variables.tf | 2 +- 9 files changed, 4681 insertions(+), 84 deletions(-) create mode 100644 errored.tfstate diff --git a/bootstrap-cluster.sh b/bootstrap-cluster.sh index 801448b9..d86b952b 100755 --- a/bootstrap-cluster.sh +++ b/bootstrap-cluster.sh @@ -1,7 +1,7 @@ #!/bin/bash set -euo pipefail -KEY="$HOME/.ssh/simplyblock-ohio.pem" +KEY="~/.ssh/simplyblock-xata.pem" print_help() { echo "Usage: $0 [options]" @@ -173,31 +173,31 @@ while [[ $# -gt 0 ]]; do shift done -SECRET_VALUE=$(terraform output -raw secret_value) +#SECRET_VALUE=$(terraform output -raw secret_value) KEY_NAME=$(terraform output -raw key_name) BASTION_IP=$(terraform output -raw bastion_public_ip) GRAFANA_ENDPOINT=$(terraform output -raw grafana_invoke_url) -ssh_dir="$HOME/.ssh" - -if [ ! -d "$ssh_dir" ]; then - mkdir -p "$ssh_dir" - echo "Directory $ssh_dir created." -else - echo "Directory $ssh_dir already exists." -fi - -if [[ -n "$SECRET_VALUE" ]]; then - KEY="$HOME/.ssh/$KEY_NAME" - if [ -f "$HOME/.ssh/$KEY_NAME" ]; then - echo "the ssh key: ${KEY} already exits on local" - else - echo "$SECRET_VALUE" >"$KEY" - chmod 400 "$KEY" - fi -else - echo "Failed to retrieve secret value. Falling back to default key." -fi +# ssh_dir="$HOME/.ssh" + +# if [ ! -d "$ssh_dir" ]; then +# mkdir -p "$ssh_dir" +# echo "Directory $ssh_dir created." +# else +# echo "Directory $ssh_dir already exists." +# fi + +# if [[ -n "$SECRET_VALUE" ]]; then +# KEY="$HOME/.ssh/$KEY_NAME" +# if [ -f "$HOME/.ssh/$KEY_NAME" ]; then +# echo "the ssh key: ${KEY} already exits on local" +# else +# echo "$SECRET_VALUE" >"$KEY" +# chmod 400 "$KEY" +# fi +# else +# echo "Failed to retrieve secret value. Falling back to default key." +# fi mnodes=$(terraform output -raw mgmt_private_ips) echo "mgmt_private_ips: ${mnodes}" diff --git a/bootstrap-k3s.sh b/bootstrap-k3s.sh index 01b89bd1..b18be688 100755 --- a/bootstrap-k3s.sh +++ b/bootstrap-k3s.sh @@ -1,6 +1,6 @@ #!/bin/bash -KEY="$HOME/.ssh/simplyblock-ohio.pem" +KEY="~/.ssh/simplyblock-xata.pem" print_help() { echo "Usage: $0 [options]" @@ -29,29 +29,29 @@ while [[ $# -gt 0 ]]; do shift done -SECRET_VALUE=$(terraform output -raw secret_value) +#SECRET_VALUE=$(terraform output -raw secret_value) KEY_NAME=$(terraform output -raw key_name) -ssh_dir="$HOME/.ssh" - -if [ ! -d "$ssh_dir" ]; then - mkdir -p "$ssh_dir" - echo "Directory $ssh_dir created." -else - echo "Directory $ssh_dir already exists." -fi - -if [[ -n "$SECRET_VALUE" ]]; then - KEY="$HOME/.ssh/$KEY_NAME" - if [ -f "$HOME/.ssh/$KEY_NAME" ]; then - echo "the ssh key: ${KEY} already exits on local" - else - echo "$SECRET_VALUE" >"$KEY" - chmod 400 "$KEY" - fi -else - echo "Failed to retrieve secret value. Falling back to default key." -fi +# ssh_dir="$HOME/.ssh" + +# if [ ! -d "$ssh_dir" ]; then +# mkdir -p "$ssh_dir" +# echo "Directory $ssh_dir created." +# else +# echo "Directory $ssh_dir already exists." +# fi + +# if [[ -n "$SECRET_VALUE" ]]; then +# KEY="$HOME/.ssh/$KEY_NAME" +# if [ -f "$HOME/.ssh/$KEY_NAME" ]; then +# echo "the ssh key: ${KEY} already exits on local" +# else +# echo "$SECRET_VALUE" >"$KEY" +# chmod 400 "$KEY" +# fi +# else +# echo "Failed to retrieve secret value. Falling back to default key." +# fi BASTION_IP=$(terraform output -raw bastion_public_ip) mnodes=($(terraform output -raw extra_nodes_public_ips)) diff --git a/data.tf b/data.tf index 8cebbe3e..b9820a09 100644 --- a/data.tf +++ b/data.tf @@ -2,6 +2,6 @@ data "aws_availability_zones" "available" { state = "available" } -data "aws_secretsmanager_secret_version" "simply" { - secret_id = local.selected_key_name -} +# data "aws_secretsmanager_secret_version" "simply" { +# secret_id = local.selected_key_name +# } diff --git a/errored.tfstate b/errored.tfstate new file mode 100644 index 00000000..91575ca1 --- /dev/null +++ b/errored.tfstate @@ -0,0 +1,4597 @@ +{ + "version": 4, + "terraform_version": "1.6.5", + "serial": 6445, + "lineage": "bd170668-716c-bd8b-71c2-078b758fc11a", + "outputs": { + "api_invoke_url": { + "value": "https://y9jloxzybl.execute-api.us-east-2.amazonaws.com/", + "type": "string" + }, + "bastion_public_ip": { + "value": "18.117.159.246", + "type": "string" + }, + "extra_nodes_private_ips": { + "value": "10.0.4.160", + "type": "string" + }, + "extra_nodes_public_ips": { + "value": "3.16.38.213", + "type": "string" + }, + "grafana_invoke_url": { + "value": "https://y9jloxzybl.execute-api.us-east-2.amazonaws.com/grafana", + "type": "string" + }, + "graylog_invoke_url": { + "value": "https://y9jloxzybl.execute-api.us-east-2.amazonaws.com/graylog", + "type": "string" + }, + "key_name": { + "value": "simplyblock-us-east-2.pem", + "type": "string" + }, + "mgmt_node_details": { + "value": { + "israel-mgmt-1": { + "private_ip": "10.0.3.110", + "public_ip": "", + "type": "m5.large" + } + }, + "type": [ + "object", + { + "israel-mgmt-1": [ + "object", + { + "private_ip": "string", + "public_ip": "string", + "type": "string" + } + ] + } + ] + }, + "mgmt_private_ips": { + "value": "10.0.3.110", + "type": "string" + }, + "mgmt_public_ips": { + "value": "", + "type": "string" + }, + "secret_value": { + "value": "-----BEGIN OPENSSH PRIVATE KEY-----\nb3BlbnNzaC1rZXktdjEAAAAABG5vbmUAAAAEbm9uZQAAAAAAAAABAAAAMwAAAAtz\nc2gtZWQyNTUxOQAAACA3Vn/Aq5mZiP9gsWHIROz4SfTqMIZxvlbTJusvgjLMowAA\nAIjs64g17OuINQAAAAtzc2gtZWQyNTUxOQAAACA3Vn/Aq5mZiP9gsWHIROz4SfTq\nMIZxvlbTJusvgjLMowAAAEAwUQIBATAFBgMrZXAEIgQgy3b2RGthAnDiTucFNF4s\npzdWf8CrmZmI/2CxYchE7PhJ9OowhnG+VtMm6y+CMsyjAAAAAAECAwQF\n-----END OPENSSH PRIVATE KEY-----", + "type": "string", + "sensitive": true + }, + "storage_node_details": { + "value": { + "israel-storage-1": { + "availability_zone": "us-east-2b", + "private_ip": "10.0.3.225", + "public_ip": "", + "type": "m7gd.8xlarge" + }, + "israel-storage-2": { + "availability_zone": "us-east-2b", + "private_ip": "10.0.3.117", + "public_ip": "", + "type": "m7gd.8xlarge" + }, + "israel-storage-3": { + "availability_zone": "us-east-2b", + "private_ip": "10.0.3.135", + "public_ip": "", + "type": "m7gd.8xlarge" + }, + "israel-storage-4": { + "availability_zone": "us-east-2b", + "private_ip": "10.0.3.133", + "public_ip": "", + "type": "m7gd.8xlarge" + }, + "israel-storage-5": { + "availability_zone": "us-east-2b", + "private_ip": "10.0.3.181", + "public_ip": "", + "type": "m7gd.8xlarge" + } + }, + "type": [ + "object", + { + "israel-storage-1": [ + "object", + { + "availability_zone": "string", + "private_ip": "string", + "public_ip": "string", + "type": "string" + } + ], + "israel-storage-2": [ + "object", + { + "availability_zone": "string", + "private_ip": "string", + "public_ip": "string", + "type": "string" + } + ], + "israel-storage-3": [ + "object", + { + "availability_zone": "string", + "private_ip": "string", + "public_ip": "string", + "type": "string" + } + ], + "israel-storage-4": [ + "object", + { + "availability_zone": "string", + "private_ip": "string", + "public_ip": "string", + "type": "string" + } + ], + "israel-storage-5": [ + "object", + { + "availability_zone": "string", + "private_ip": "string", + "public_ip": "string", + "type": "string" + } + ] + } + ] + }, + "storage_private_ips": { + "value": "10.0.3.225 10.0.3.117 10.0.3.135 10.0.3.133 10.0.3.181", + "type": "string" + }, + "storage_public_ips": { + "value": " ", + "type": "string" + }, + "tfengine_logs": { + "value": "simplyblock-tfengine-logs-165a52ea96", + "type": "string" + } + }, + "resources": [ + { + "mode": "data", + "type": "aws_ami", + "name": "this", + "provider": "provider[\"registry.terraform.io/hashicorp/aws\"]", + "instances": [ + { + "schema_version": 0, + "attributes": { + "architecture": "x86_64", + "arn": "arn:aws:ec2:us-east-2::image/ami-050cd642fd83388e4", + "block_device_mappings": [ + { + "device_name": "/dev/xvda", + "ebs": { + "delete_on_termination": "true", + "encrypted": "false", + "iops": "3000", + "snapshot_id": "snap-06d3e9d856ddfad76", + "throughput": "125", + "volume_size": "8", + "volume_type": "gp3" + }, + "no_device": "", + "virtual_name": "" + } + ], + "boot_mode": "uefi-preferred", + "creation_date": "2024-10-11T16:52:33.000Z", + "deprecation_time": "2025-01-09T16:53:00.000Z", + "description": "Amazon Linux 2023 AMI 2023.6.20241010.0 x86_64 HVM kernel-6.1", + "ena_support": true, + "executable_users": null, + "filter": [ + { + "name": "architecture", + "values": [ + "x86_64" + ] + }, + { + "name": "name", + "values": [ + "al2023-ami-2023*" + ] + } + ], + "hypervisor": "xen", + "id": "ami-050cd642fd83388e4", + "image_id": "ami-050cd642fd83388e4", + "image_location": "amazon/al2023-ami-2023.6.20241010.0-kernel-6.1-x86_64", + "image_owner_alias": "amazon", + "image_type": "machine", + "imds_support": "v2.0", + "include_deprecated": false, + "kernel_id": "", + "most_recent": true, + "name": "al2023-ami-2023.6.20241010.0-kernel-6.1-x86_64", + "name_regex": null, + "owner_id": "137112412989", + "owners": [ + "amazon" + ], + "platform": "", + "platform_details": "Linux/UNIX", + "product_codes": [], + "public": true, + "ramdisk_id": "", + "root_device_name": "/dev/xvda", + "root_device_type": "ebs", + "root_snapshot_id": "snap-06d3e9d856ddfad76", + "sriov_net_support": "simple", + "state": "available", + "state_reason": { + "code": "UNSET", + "message": "UNSET" + }, + "tags": {}, + "timeouts": null, + "tpm_support": "", + "usage_operation": "RunInstances", + "virtualization_type": "hvm" + }, + "sensitive_attributes": [] + } + ] + }, + { + "mode": "data", + "type": "aws_availability_zones", + "name": "available", + "provider": "provider[\"registry.terraform.io/hashicorp/aws\"]", + "instances": [ + { + "schema_version": 0, + "attributes": { + "all_availability_zones": null, + "exclude_names": null, + "exclude_zone_ids": null, + "filter": null, + "group_names": [ + "us-east-2" + ], + "id": "us-east-2", + "names": [ + "us-east-2a", + "us-east-2b", + "us-east-2c" + ], + "state": "available", + "timeouts": null, + "zone_ids": [ + "use2-az1", + "use2-az2", + "use2-az3" + ] + }, + "sensitive_attributes": [] + } + ] + }, + { + "mode": "data", + "type": "aws_caller_identity", + "name": "current", + "provider": "provider[\"registry.terraform.io/hashicorp/aws\"]", + "instances": [ + { + "schema_version": 0, + "attributes": { + "account_id": "565979732541", + "arn": "arn:aws:iam::565979732541:user/geoffrey", + "id": "565979732541", + "user_id": "AIDAYHRYFLI6UBEGYRSII" + }, + "sensitive_attributes": [] + } + ] + }, + { + "mode": "data", + "type": "aws_iam_policy_document", + "name": "assume_role_policy", + "provider": "provider[\"registry.terraform.io/hashicorp/aws\"]", + "instances": [ + { + "schema_version": 0, + "attributes": { + "id": "2851119427", + "json": "{\n \"Version\": \"2012-10-17\",\n \"Statement\": [\n {\n \"Effect\": \"Allow\",\n \"Action\": \"sts:AssumeRole\",\n \"Principal\": {\n \"Service\": \"ec2.amazonaws.com\"\n }\n }\n ]\n}", + "override_json": null, + "override_policy_documents": null, + "policy_id": null, + "source_json": null, + "source_policy_documents": null, + "statement": [ + { + "actions": [ + "sts:AssumeRole" + ], + "condition": [], + "effect": "Allow", + "not_actions": [], + "not_principals": [], + "not_resources": [], + "principals": [ + { + "identifiers": [ + "ec2.amazonaws.com" + ], + "type": "Service" + } + ], + "resources": [], + "sid": "" + } + ], + "version": "2012-10-17" + }, + "sensitive_attributes": [] + } + ] + }, + { + "mode": "data", + "type": "aws_secretsmanager_secret_version", + "name": "simply", + "provider": "provider[\"registry.terraform.io/hashicorp/aws\"]", + "instances": [ + { + "schema_version": 0, + "attributes": { + "arn": "arn:aws:secretsmanager:us-east-2:565979732541:secret:simplyblock-us-east-2.pem-CRZJWv", + "created_date": "2024-04-04T11:49:33Z", + "id": "simplyblock-us-east-2.pem|AWSCURRENT", + "secret_binary": "", + "secret_id": "simplyblock-us-east-2.pem", + "secret_string": "-----BEGIN OPENSSH PRIVATE KEY-----\nb3BlbnNzaC1rZXktdjEAAAAABG5vbmUAAAAEbm9uZQAAAAAAAAABAAAAMwAAAAtz\nc2gtZWQyNTUxOQAAACA3Vn/Aq5mZiP9gsWHIROz4SfTqMIZxvlbTJusvgjLMowAA\nAIjs64g17OuINQAAAAtzc2gtZWQyNTUxOQAAACA3Vn/Aq5mZiP9gsWHIROz4SfTq\nMIZxvlbTJusvgjLMowAAAEAwUQIBATAFBgMrZXAEIgQgy3b2RGthAnDiTucFNF4s\npzdWf8CrmZmI/2CxYchE7PhJ9OowhnG+VtMm6y+CMsyjAAAAAAECAwQF\n-----END OPENSSH PRIVATE KEY-----", + "version_id": "a4c27936-c1d7-4892-85c0-33b892358f25", + "version_stage": "AWSCURRENT", + "version_stages": [ + "AWSCURRENT" + ] + }, + "sensitive_attributes": [] + } + ] + }, + { + "mode": "managed", + "type": "aws_autoscaling_group", + "name": "tfengine_asg", + "provider": "provider[\"registry.terraform.io/hashicorp/aws\"]", + "instances": [ + { + "schema_version": 1, + "attributes": { + "arn": "arn:aws:autoscaling:us-east-2:565979732541:autoScalingGroup:1cebf1a8-7c95-463b-9bfb-e9f01eb30049:autoScalingGroupName/terraform-20241021142212537000000010", + "availability_zones": [ + "us-east-2a" + ], + "capacity_rebalance": false, + "context": "", + "default_cooldown": 300, + "default_instance_warmup": 0, + "desired_capacity": 1, + "desired_capacity_type": "", + "enabled_metrics": [], + "force_delete": false, + "force_delete_warm_pool": false, + "health_check_grace_period": 300, + "health_check_type": "EC2", + "id": "terraform-20241021142212537000000010", + "ignore_failed_scaling_activities": false, + "initial_lifecycle_hook": [], + "instance_maintenance_policy": [], + "instance_refresh": [], + "launch_configuration": "", + "launch_template": [ + { + "id": "lt-0592c1adb2ec17a36", + "name": "tfengine2024102114221133420000000e", + "version": "$Latest" + } + ], + "load_balancers": [], + "max_instance_lifetime": 0, + "max_size": 1, + "metrics_granularity": "1Minute", + "min_elb_capacity": null, + "min_size": 1, + "mixed_instances_policy": [], + "name": "terraform-20241021142212537000000010", + "name_prefix": "terraform-", + "placement_group": "", + "predicted_capacity": 0, + "protect_from_scale_in": false, + "service_linked_role_arn": "arn:aws:iam::565979732541:role/aws-service-role/autoscaling.amazonaws.com/AWSServiceRoleForAutoScaling", + "suspended_processes": [], + "tag": [ + { + "key": "Name", + "propagate_at_launch": true, + "value": "israel-tfengine" + }, + { + "key": "long-term-test", + "propagate_at_launch": true, + "value": "true" + } + ], + "target_group_arns": [], + "termination_policies": [], + "timeouts": null, + "traffic_source": [], + "vpc_zone_identifier": [ + "subnet-0d4485b4ba30cf005" + ], + "wait_for_capacity_timeout": "10m", + "wait_for_elb_capacity": null, + "warm_pool": [], + "warm_pool_size": 0 + }, + "sensitive_attributes": [], + "private": "eyJlMmJmYjczMC1lY2FhLTExZTYtOGY4OC0zNDM2M2JjN2M0YzAiOnsiZGVsZXRlIjo2MDAwMDAwMDAwMDAsInVwZGF0ZSI6NjAwMDAwMDAwMDAwfSwic2NoZW1hX3ZlcnNpb24iOiIxIn0=", + "dependencies": [ + "aws_iam_instance_profile.tfengine", + "aws_iam_role.tfengine", + "aws_launch_template.tfengine_lc", + "aws_security_group.tfengine_sg", + "data.aws_ami.this", + "data.aws_availability_zones.available", + "module.vpc.aws_subnet.private", + "module.vpc.aws_vpc.this", + "module.vpc.aws_vpc_ipv4_cidr_block_association.this" + ], + "create_before_destroy": true + } + ] + }, + { + "mode": "managed", + "type": "aws_iam_instance_profile", + "name": "inst_profile", + "provider": "provider[\"registry.terraform.io/hashicorp/aws\"]", + "instances": [ + { + "schema_version": 0, + "attributes": { + "arn": "arn:aws:iam::565979732541:instance-profile/simplyblock-instance-profile-israel", + "create_date": "2024-10-21T14:21:51Z", + "id": "simplyblock-instance-profile-israel", + "name": "simplyblock-instance-profile-israel", + "name_prefix": "", + "path": "/", + "role": "terraform-20241021142147963500000001", + "tags": {}, + "tags_all": {}, + "unique_id": "AIPAYHRYFLI62VI2ZI7QN" + }, + "sensitive_attributes": [], + "private": "bnVsbA==", + "dependencies": [ + "aws_iam_role.role", + "data.aws_iam_policy_document.assume_role_policy" + ] + } + ] + }, + { + "mode": "managed", + "type": "aws_iam_instance_profile", + "name": "tfengine", + "provider": "provider[\"registry.terraform.io/hashicorp/aws\"]", + "instances": [ + { + "schema_version": 0, + "attributes": { + "arn": "arn:aws:iam::565979732541:instance-profile/terraform-20241021142150560800000003", + "create_date": "2024-10-21T14:21:51Z", + "id": "terraform-20241021142150560800000003", + "name": "terraform-20241021142150560800000003", + "name_prefix": "terraform-", + "path": "/", + "role": "terraform-20241021142147963800000002", + "tags": {}, + "tags_all": {}, + "unique_id": "AIPAYHRYFLI63IHQFHU76" + }, + "sensitive_attributes": [], + "private": "bnVsbA==", + "dependencies": [ + "aws_iam_role.tfengine" + ], + "create_before_destroy": true + } + ] + }, + { + "mode": "managed", + "type": "aws_iam_policy", + "name": "mgmt_policy", + "provider": "provider[\"registry.terraform.io/hashicorp/aws\"]", + "instances": [ + { + "schema_version": 0, + "attributes": { + "arn": "arn:aws:iam::565979732541:policy/israel-mgmt_node_policy", + "description": "Policy for allowing EC2 to communicate with other resources", + "id": "arn:aws:iam::565979732541:policy/israel-mgmt_node_policy", + "name": "israel-mgmt_node_policy", + "name_prefix": "", + "path": "/", + "policy": "{\"Statement\":[{\"Action\":[\"ec2:DescribeAvailabilityZones\",\"ec2:DescribeSubnets\",\"ec2:DescribeNetworkInterfaces\",\"ec2:DescribeInstances\",\"ec2:DescribeSecurityGroups\",\"ec2:DescribeTags\"],\"Effect\":\"Allow\",\"Resource\":\"*\"},{\"Action\":\"sts:GetServiceBearerToken\",\"Effect\":\"Allow\",\"Resource\":\"*\"},{\"Action\":[\"codeartifact:GetAuthorizationToken\",\"codeartifact:GetRepositoryEndpoint\",\"codeartifact:ReadFromRepository\"],\"Effect\":\"Allow\",\"Resource\":[\"arn:aws:codeartifact:eu-west-1:565979732541:repository/simplyblock/sbcli\",\"arn:aws:codeartifact:eu-west-1:565979732541:domain/simplyblock\"]},{\"Action\":[\"ssm:SendCommand\"],\"Effect\":\"Allow\",\"Resource\":[\"arn:aws:ec2:us-east-2:565979732541:instance/*\",\"arn:aws:ssm:us-east-2::document/AWS-RunShellScript\",\"arn:aws:ssm:us-east-2:565979732541:*\"]},{\"Action\":[\"ssm:GetCommandInvocation\"],\"Effect\":\"Allow\",\"Resource\":[\"arn:aws:ssm:us-east-2:565979732541:*\"]},{\"Action\":[\"s3:GetObject\"],\"Effect\":\"Allow\",\"Resource\":[\"arn:aws:s3:::simplyblock-tfengine-logs-165a52ea96/*\",\"arn:aws:s3:::simplyblock-terraform-state-bucket/*\"]},{\"Action\":[\"s3:ListBucket\"],\"Effect\":\"Allow\",\"Resource\":[\"arn:aws:s3:::simplyblock-terraform-state-bucket\"]}],\"Version\":\"2012-10-17\"}", + "policy_id": "ANPAYHRYFLI6TBO6ZAGRH", + "tags": {}, + "tags_all": {} + }, + "sensitive_attributes": [], + "private": "bnVsbA==", + "dependencies": [ + "aws_s3_bucket.tfengine_logs", + "data.aws_caller_identity.current", + "random_id.id" + ] + } + ] + }, + { + "mode": "managed", + "type": "aws_iam_policy", + "name": "tfengine_dynamodb_policy", + "provider": "provider[\"registry.terraform.io/hashicorp/aws\"]", + "instances": [ + { + "schema_version": 0, + "attributes": { + "arn": "arn:aws:iam::565979732541:policy/israel-tfengine_dynamodb_policy", + "description": "S3 policy for tfengine dynamodb", + "id": "arn:aws:iam::565979732541:policy/israel-tfengine_dynamodb_policy", + "name": "israel-tfengine_dynamodb_policy", + "name_prefix": "", + "path": "/", + "policy": "{\"Statement\":[{\"Action\":[\"dynamodb:GetItem\",\"dynamodb:PutItem\"],\"Effect\":\"Allow\",\"Resource\":[\"*\"]}],\"Version\":\"2012-10-17\"}", + "policy_id": "ANPAYHRYFLI6WE45T7KIJ", + "tags": {}, + "tags_all": {} + }, + "sensitive_attributes": [], + "private": "bnVsbA==" + } + ] + }, + { + "mode": "managed", + "type": "aws_iam_policy", + "name": "tfengine_ecr_policy", + "provider": "provider[\"registry.terraform.io/hashicorp/aws\"]", + "instances": [ + { + "schema_version": 0, + "attributes": { + "arn": "arn:aws:iam::565979732541:policy/israel-tfengine_ecr_policy", + "description": "S3 policy for tfengine ecr", + "id": "arn:aws:iam::565979732541:policy/israel-tfengine_ecr_policy", + "name": "israel-tfengine_ecr_policy", + "name_prefix": "", + "path": "/", + "policy": "{\"Statement\":[{\"Action\":[\"ecr:GetDownloadUrlForLayer\",\"ecr:BatchGetImage\",\"ecr:BatchCheckLayerAvailability\",\"ecr:GetAuthorizationToken\"],\"Effect\":\"Allow\",\"Resource\":[\"*\"]}],\"Version\":\"2012-10-17\"}", + "policy_id": "ANPAYHRYFLI6VFXU4JKOK", + "tags": {}, + "tags_all": {} + }, + "sensitive_attributes": [], + "private": "bnVsbA==" + } + ] + }, + { + "mode": "managed", + "type": "aws_iam_policy", + "name": "tfengine_logs_policy", + "provider": "provider[\"registry.terraform.io/hashicorp/aws\"]", + "instances": [ + { + "schema_version": 0, + "attributes": { + "arn": "arn:aws:iam::565979732541:policy/israel-tfengine_logs_policy", + "description": "S3 policy for tfengine israel logs", + "id": "arn:aws:iam::565979732541:policy/israel-tfengine_logs_policy", + "name": "israel-tfengine_logs_policy", + "name_prefix": "", + "path": "/", + "policy": "{\"Statement\":[{\"Action\":[\"s3:PutObject\",\"s3:GetObject\"],\"Effect\":\"Allow\",\"Resource\":[\"arn:aws:s3:::simplyblock-tfengine-logs-165a52ea96/*\",\"arn:aws:s3:::simplyblock-terraform-state-bucket/*\"]},{\"Action\":[\"s3:ListBucket\"],\"Effect\":\"Allow\",\"Resource\":[\"arn:aws:s3:::simplyblock-terraform-state-bucket\"]}],\"Version\":\"2012-10-17\"}", + "policy_id": "ANPAYHRYFLI6VBF6LPLCM", + "tags": {}, + "tags_all": {} + }, + "sensitive_attributes": [], + "private": "bnVsbA==", + "dependencies": [ + "aws_s3_bucket.tfengine_logs", + "random_id.id" + ] + } + ] + }, + { + "mode": "managed", + "type": "aws_iam_role", + "name": "role", + "provider": "provider[\"registry.terraform.io/hashicorp/aws\"]", + "instances": [ + { + "schema_version": 0, + "attributes": { + "arn": "arn:aws:iam::565979732541:role/terraform-20241021142147963500000001", + "assume_role_policy": "{\"Statement\":[{\"Action\":\"sts:AssumeRole\",\"Effect\":\"Allow\",\"Principal\":{\"Service\":\"ec2.amazonaws.com\"}}],\"Version\":\"2012-10-17\"}", + "create_date": "2024-10-21T14:21:49Z", + "description": "", + "force_detach_policies": false, + "id": "terraform-20241021142147963500000001", + "inline_policy": [], + "managed_policy_arns": [ + "arn:aws:iam::565979732541:policy/israel-mgmt_node_policy" + ], + "max_session_duration": 3600, + "name": "terraform-20241021142147963500000001", + "name_prefix": "terraform-", + "path": "/", + "permissions_boundary": "", + "tags": {}, + "tags_all": {}, + "unique_id": "AROAYHRYFLI6QQ2JGIL7E" + }, + "sensitive_attributes": [], + "private": "bnVsbA==", + "dependencies": [ + "data.aws_iam_policy_document.assume_role_policy" + ] + } + ] + }, + { + "mode": "managed", + "type": "aws_iam_role", + "name": "tfengine", + "provider": "provider[\"registry.terraform.io/hashicorp/aws\"]", + "instances": [ + { + "schema_version": 0, + "attributes": { + "arn": "arn:aws:iam::565979732541:role/terraform-20241021142147963800000002", + "assume_role_policy": "{\"Statement\":[{\"Action\":\"sts:AssumeRole\",\"Effect\":\"Allow\",\"Principal\":{\"Service\":\"ec2.amazonaws.com\"}}],\"Version\":\"2012-10-17\"}", + "create_date": "2024-10-21T14:21:49Z", + "description": "", + "force_detach_policies": false, + "id": "terraform-20241021142147963800000002", + "inline_policy": [], + "managed_policy_arns": [ + "arn:aws:iam::565979732541:policy/israel-tfengine_dynamodb_policy", + "arn:aws:iam::565979732541:policy/israel-tfengine_ecr_policy", + "arn:aws:iam::565979732541:policy/israel-tfengine_logs_policy", + "arn:aws:iam::565979732541:policy/sbdeployPolicy", + "arn:aws:iam::aws:policy/AmazonSSMManagedInstanceCore" + ], + "max_session_duration": 3600, + "name": "terraform-20241021142147963800000002", + "name_prefix": "terraform-", + "path": "/", + "permissions_boundary": "", + "tags": {}, + "tags_all": {}, + "unique_id": "AROAYHRYFLI62U4SDMQ5R" + }, + "sensitive_attributes": [], + "private": "bnVsbA==", + "create_before_destroy": true + } + ] + }, + { + "mode": "managed", + "type": "aws_iam_role_policy_attachment", + "name": "AmazonSSMManagedInstanceCore", + "provider": "provider[\"registry.terraform.io/hashicorp/aws\"]", + "instances": [ + { + "schema_version": 0, + "attributes": { + "id": "terraform-20241021142147963800000002-20241021142151310200000007", + "policy_arn": "arn:aws:iam::aws:policy/AmazonSSMManagedInstanceCore", + "role": "terraform-20241021142147963800000002" + }, + "sensitive_attributes": [], + "private": "bnVsbA==", + "dependencies": [ + "aws_iam_role.tfengine" + ] + } + ] + }, + { + "mode": "managed", + "type": "aws_iam_role_policy_attachment", + "name": "ecrpolicy", + "provider": "provider[\"registry.terraform.io/hashicorp/aws\"]", + "instances": [ + { + "schema_version": 0, + "attributes": { + "id": "terraform-20241021142147963800000002-20241021142150974900000006", + "policy_arn": "arn:aws:iam::565979732541:policy/israel-tfengine_ecr_policy", + "role": "terraform-20241021142147963800000002" + }, + "sensitive_attributes": [], + "private": "bnVsbA==", + "dependencies": [ + "aws_iam_policy.tfengine_ecr_policy", + "aws_iam_role.tfengine" + ] + } + ] + }, + { + "mode": "managed", + "type": "aws_iam_role_policy_attachment", + "name": "s3_get_object_attachment", + "provider": "provider[\"registry.terraform.io/hashicorp/aws\"]", + "instances": [ + { + "schema_version": 0, + "attributes": { + "id": "terraform-20241021142147963500000001-20241021142156901700000008", + "policy_arn": "arn:aws:iam::565979732541:policy/israel-mgmt_node_policy", + "role": "terraform-20241021142147963500000001" + }, + "sensitive_attributes": [], + "private": "bnVsbA==", + "dependencies": [ + "aws_iam_policy.mgmt_policy", + "aws_iam_role.role", + "aws_s3_bucket.tfengine_logs", + "data.aws_caller_identity.current", + "data.aws_iam_policy_document.assume_role_policy", + "random_id.id" + ] + } + ] + }, + { + "mode": "managed", + "type": "aws_iam_role_policy_attachment", + "name": "s3policy", + "provider": "provider[\"registry.terraform.io/hashicorp/aws\"]", + "instances": [ + { + "schema_version": 0, + "attributes": { + "id": "terraform-20241021142147963800000002-20241021142156941300000009", + "policy_arn": "arn:aws:iam::565979732541:policy/israel-tfengine_logs_policy", + "role": "terraform-20241021142147963800000002" + }, + "sensitive_attributes": [], + "private": "bnVsbA==", + "dependencies": [ + "aws_iam_policy.tfengine_logs_policy", + "aws_iam_role.tfengine", + "aws_s3_bucket.tfengine_logs", + "random_id.id" + ] + } + ] + }, + { + "mode": "managed", + "type": "aws_iam_role_policy_attachment", + "name": "sbdeployPolicy", + "provider": "provider[\"registry.terraform.io/hashicorp/aws\"]", + "instances": [ + { + "schema_version": 0, + "attributes": { + "id": "terraform-20241021142147963800000002-20241021142150933900000004", + "policy_arn": "arn:aws:iam::565979732541:policy/sbdeployPolicy", + "role": "terraform-20241021142147963800000002" + }, + "sensitive_attributes": [], + "private": "bnVsbA==", + "dependencies": [ + "aws_iam_role.tfengine", + "data.aws_caller_identity.current" + ] + } + ] + }, + { + "mode": "managed", + "type": "aws_iam_role_policy_attachment", + "name": "tfengine_dynamodb_policy", + "provider": "provider[\"registry.terraform.io/hashicorp/aws\"]", + "instances": [ + { + "schema_version": 0, + "attributes": { + "id": "terraform-20241021142147963800000002-20241021142150938100000005", + "policy_arn": "arn:aws:iam::565979732541:policy/israel-tfengine_dynamodb_policy", + "role": "terraform-20241021142147963800000002" + }, + "sensitive_attributes": [], + "private": "bnVsbA==", + "dependencies": [ + "aws_iam_policy.tfengine_dynamodb_policy", + "aws_iam_role.tfengine" + ] + } + ] + }, + { + "mode": "managed", + "type": "aws_instance", + "name": "bastion", + "provider": "provider[\"registry.terraform.io/hashicorp/aws\"]", + "instances": [ + { + "schema_version": 1, + "attributes": { + "ami": "ami-00ff94d69b3ced2aa", + "arn": "arn:aws:ec2:us-east-2:565979732541:instance/i-036b585cd63e2f6e0", + "associate_public_ip_address": true, + "availability_zone": "us-east-2a", + "capacity_reservation_specification": [ + { + "capacity_reservation_preference": "open", + "capacity_reservation_target": [] + } + ], + "cpu_core_count": 1, + "cpu_options": [ + { + "amd_sev_snp": "", + "core_count": 1, + "threads_per_core": 1 + } + ], + "cpu_threads_per_core": 1, + "credit_specification": [ + { + "cpu_credits": "standard" + } + ], + "disable_api_stop": false, + "disable_api_termination": false, + "ebs_block_device": [], + "ebs_optimized": false, + "enclave_options": [ + { + "enabled": false + } + ], + "ephemeral_block_device": [], + "get_password_data": false, + "hibernation": false, + "host_id": "", + "host_resource_group_arn": null, + "iam_instance_profile": "simplyblock-instance-profile-israel", + "id": "i-036b585cd63e2f6e0", + "instance_initiated_shutdown_behavior": "stop", + "instance_lifecycle": "", + "instance_market_options": [], + "instance_state": "running", + "instance_type": "t2.micro", + "ipv6_address_count": 0, + "ipv6_addresses": [], + "key_name": "simplyblock-us-east-2.pem", + "launch_template": [], + "maintenance_options": [ + { + "auto_recovery": "default" + } + ], + "metadata_options": [ + { + "http_endpoint": "enabled", + "http_protocol_ipv6": "disabled", + "http_put_response_hop_limit": 1, + "http_tokens": "optional", + "instance_metadata_tags": "disabled" + } + ], + "monitoring": false, + "network_interface": [], + "outpost_arn": "", + "password_data": "", + "placement_group": "", + "placement_partition_number": 0, + "primary_network_interface_id": "eni-065e85a64e31ddc97", + "private_dns": "ip-10-0-2-7.us-east-2.compute.internal", + "private_dns_name_options": [ + { + "enable_resource_name_dns_a_record": false, + "enable_resource_name_dns_aaaa_record": false, + "hostname_type": "ip-name" + } + ], + "private_ip": "10.0.2.7", + "public_dns": "ec2-18-117-159-246.us-east-2.compute.amazonaws.com", + "public_ip": "18.117.159.246", + "root_block_device": [ + { + "delete_on_termination": true, + "device_name": "/dev/sda1", + "encrypted": false, + "iops": 135, + "kms_key_id": "", + "tags": {}, + "tags_all": {}, + "throughput": 0, + "volume_id": "vol-05fe25b08b4659653", + "volume_size": 45, + "volume_type": "gp2" + } + ], + "secondary_private_ips": [], + "security_groups": [], + "source_dest_check": true, + "spot_instance_request_id": "", + "subnet_id": "subnet-0624fa4ce4fc3c03c", + "tags": { + "Name": "israel-bastion" + }, + "tags_all": { + "Name": "israel-bastion" + }, + "tenancy": "default", + "timeouts": null, + "user_data": null, + "user_data_base64": null, + "user_data_replace_on_change": false, + "volume_tags": null, + "vpc_security_group_ids": [ + "sg-0265fa831715dc772" + ] + }, + "sensitive_attributes": [], + "private": "eyJlMmJmYjczMC1lY2FhLTExZTYtOGY4OC0zNDM2M2JjN2M0YzAiOnsiY3JlYXRlIjo2MDAwMDAwMDAwMDAsImRlbGV0ZSI6MTIwMDAwMDAwMDAwMCwicmVhZCI6OTAwMDAwMDAwMDAwLCJ1cGRhdGUiOjYwMDAwMDAwMDAwMH0sInNjaGVtYV92ZXJzaW9uIjoiMSJ9", + "dependencies": [ + "aws_iam_instance_profile.inst_profile", + "aws_iam_role.role", + "aws_security_group.bastion_sg", + "data.aws_availability_zones.available", + "data.aws_iam_policy_document.assume_role_policy", + "module.vpc.aws_subnet.public", + "module.vpc.aws_vpc.this", + "module.vpc.aws_vpc_ipv4_cidr_block_association.this" + ] + } + ] + }, + { + "mode": "managed", + "type": "aws_instance", + "name": "extra_nodes", + "provider": "provider[\"registry.terraform.io/hashicorp/aws\"]", + "instances": [ + { + "index_key": 0, + "schema_version": 1, + "attributes": { + "ami": "ami-08f9f3bb075432791", + "arn": "arn:aws:ec2:us-east-2:565979732541:instance/i-0b5fa9f6db1ed98eb", + "associate_public_ip_address": true, + "availability_zone": "us-east-2b", + "capacity_reservation_specification": [ + { + "capacity_reservation_preference": "open", + "capacity_reservation_target": [] + } + ], + "cpu_core_count": 4, + "cpu_options": [ + { + "amd_sev_snp": "", + "core_count": 4, + "threads_per_core": 1 + } + ], + "cpu_threads_per_core": 1, + "credit_specification": [], + "disable_api_stop": false, + "disable_api_termination": false, + "ebs_block_device": [], + "ebs_optimized": false, + "enclave_options": [ + { + "enabled": false + } + ], + "ephemeral_block_device": [], + "get_password_data": false, + "hibernation": false, + "host_id": "", + "host_resource_group_arn": null, + "iam_instance_profile": "simplyblock-instance-profile-israel", + "id": "i-0b5fa9f6db1ed98eb", + "instance_initiated_shutdown_behavior": "stop", + "instance_lifecycle": "", + "instance_market_options": [], + "instance_state": "running", + "instance_type": "m6gd.xlarge", + "ipv6_address_count": 0, + "ipv6_addresses": [], + "key_name": "simplyblock-us-east-2.pem", + "launch_template": [], + "maintenance_options": [ + { + "auto_recovery": "default" + } + ], + "metadata_options": [ + { + "http_endpoint": "enabled", + "http_protocol_ipv6": "disabled", + "http_put_response_hop_limit": 1, + "http_tokens": "optional", + "instance_metadata_tags": "disabled" + } + ], + "monitoring": false, + "network_interface": [], + "outpost_arn": "", + "password_data": "", + "placement_group": "", + "placement_partition_number": 0, + "primary_network_interface_id": "eni-09a247447d27095e2", + "private_dns": "ip-10-0-4-160.us-east-2.compute.internal", + "private_dns_name_options": [ + { + "enable_resource_name_dns_a_record": false, + "enable_resource_name_dns_aaaa_record": false, + "hostname_type": "ip-name" + } + ], + "private_ip": "10.0.4.160", + "public_dns": "ec2-3-16-38-213.us-east-2.compute.amazonaws.com", + "public_ip": "3.16.38.213", + "root_block_device": [ + { + "delete_on_termination": true, + "device_name": "/dev/sda1", + "encrypted": false, + "iops": 3000, + "kms_key_id": "", + "tags": {}, + "tags_all": {}, + "throughput": 125, + "volume_id": "vol-0eec593edb822c0bf", + "volume_size": 45, + "volume_type": "gp3" + } + ], + "secondary_private_ips": [], + "security_groups": [], + "source_dest_check": true, + "spot_instance_request_id": "", + "subnet_id": "subnet-0543a02417c794f33", + "tags": { + "Name": "israel-k8scluster-1" + }, + "tags_all": { + "Name": "israel-k8scluster-1" + }, + "tenancy": "default", + "timeouts": null, + "user_data": "dc4f10a00e15e488916c8c00195200e0ebf91b5e", + "user_data_base64": null, + "user_data_replace_on_change": false, + "volume_tags": null, + "vpc_security_group_ids": [ + "sg-0254cbe75e9f87a8e" + ] + }, + "sensitive_attributes": [], + "private": "eyJlMmJmYjczMC1lY2FhLTExZTYtOGY4OC0zNDM2M2JjN2M0YzAiOnsiY3JlYXRlIjo2MDAwMDAwMDAwMDAsImRlbGV0ZSI6MTIwMDAwMDAwMDAwMCwicmVhZCI6OTAwMDAwMDAwMDAwLCJ1cGRhdGUiOjYwMDAwMDAwMDAwMH0sInNjaGVtYV92ZXJzaW9uIjoiMSJ9", + "dependencies": [ + "aws_iam_instance_profile.inst_profile", + "aws_iam_role.role", + "aws_security_group.api_gateway_sg", + "aws_security_group.bastion_sg", + "aws_security_group.extra_nodes_sg", + "aws_security_group.loadbalancer_sg", + "aws_security_group.mgmt_node_sg", + "data.aws_availability_zones.available", + "data.aws_iam_policy_document.assume_role_policy", + "module.vpc.aws_subnet.public", + "module.vpc.aws_vpc.this", + "module.vpc.aws_vpc_ipv4_cidr_block_association.this" + ] + } + ] + }, + { + "mode": "managed", + "type": "aws_instance", + "name": "mgmt_nodes", + "provider": "provider[\"registry.terraform.io/hashicorp/aws\"]", + "instances": [ + { + "index_key": 0, + "schema_version": 1, + "attributes": { + "ami": "ami-00ff94d69b3ced2aa", + "arn": "arn:aws:ec2:us-east-2:565979732541:instance/i-099e0f4d4d67759b6", + "associate_public_ip_address": false, + "availability_zone": "us-east-2b", + "capacity_reservation_specification": [ + { + "capacity_reservation_preference": "open", + "capacity_reservation_target": [] + } + ], + "cpu_core_count": 1, + "cpu_options": [ + { + "amd_sev_snp": "", + "core_count": 1, + "threads_per_core": 2 + } + ], + "cpu_threads_per_core": 2, + "credit_specification": [], + "disable_api_stop": false, + "disable_api_termination": false, + "ebs_block_device": [], + "ebs_optimized": false, + "enclave_options": [ + { + "enabled": false + } + ], + "ephemeral_block_device": [], + "get_password_data": false, + "hibernation": false, + "host_id": "", + "host_resource_group_arn": null, + "iam_instance_profile": "simplyblock-instance-profile-israel", + "id": "i-099e0f4d4d67759b6", + "instance_initiated_shutdown_behavior": "stop", + "instance_lifecycle": "", + "instance_market_options": [], + "instance_state": "running", + "instance_type": "m5.large", + "ipv6_address_count": 0, + "ipv6_addresses": [], + "key_name": "simplyblock-us-east-2.pem", + "launch_template": [], + "maintenance_options": [ + { + "auto_recovery": "default" + } + ], + "metadata_options": [ + { + "http_endpoint": "enabled", + "http_protocol_ipv6": "disabled", + "http_put_response_hop_limit": 1, + "http_tokens": "optional", + "instance_metadata_tags": "disabled" + } + ], + "monitoring": false, + "network_interface": [], + "outpost_arn": "", + "password_data": "", + "placement_group": "", + "placement_partition_number": 0, + "primary_network_interface_id": "eni-0e578e7645b4bb773", + "private_dns": "ip-10-0-3-110.us-east-2.compute.internal", + "private_dns_name_options": [ + { + "enable_resource_name_dns_a_record": false, + "enable_resource_name_dns_aaaa_record": false, + "hostname_type": "ip-name" + } + ], + "private_ip": "10.0.3.110", + "public_dns": "", + "public_ip": "", + "root_block_device": [ + { + "delete_on_termination": true, + "device_name": "/dev/sda1", + "encrypted": false, + "iops": 300, + "kms_key_id": "", + "tags": {}, + "tags_all": {}, + "throughput": 0, + "volume_id": "vol-05f93e914e49a760a", + "volume_size": 100, + "volume_type": "gp2" + } + ], + "secondary_private_ips": [], + "security_groups": [], + "source_dest_check": true, + "spot_instance_request_id": "", + "subnet_id": "subnet-03c180e84f6854a15", + "tags": { + "Name": "israel-mgmt-1" + }, + "tags_all": { + "Name": "israel-mgmt-1" + }, + "tenancy": "default", + "timeouts": null, + "user_data": "2a3a0285b44df436b6f0bade754bffade8ceba67", + "user_data_base64": null, + "user_data_replace_on_change": false, + "volume_tags": null, + "vpc_security_group_ids": [ + "sg-014b0598b9509d331" + ] + }, + "sensitive_attributes": [], + "private": "eyJlMmJmYjczMC1lY2FhLTExZTYtOGY4OC0zNDM2M2JjN2M0YzAiOnsiY3JlYXRlIjo2MDAwMDAwMDAwMDAsImRlbGV0ZSI6MTIwMDAwMDAwMDAwMCwicmVhZCI6OTAwMDAwMDAwMDAwLCJ1cGRhdGUiOjYwMDAwMDAwMDAwMH0sInNjaGVtYV92ZXJzaW9uIjoiMSJ9", + "dependencies": [ + "aws_iam_instance_profile.inst_profile", + "aws_iam_role.role", + "aws_security_group.api_gateway_sg", + "aws_security_group.bastion_sg", + "aws_security_group.loadbalancer_sg", + "aws_security_group.mgmt_node_sg", + "data.aws_availability_zones.available", + "data.aws_iam_policy_document.assume_role_policy", + "module.vpc.aws_subnet.private", + "module.vpc.aws_vpc.this", + "module.vpc.aws_vpc_ipv4_cidr_block_association.this" + ] + } + ] + }, + { + "mode": "managed", + "type": "aws_instance", + "name": "storage_nodes", + "provider": "provider[\"registry.terraform.io/hashicorp/aws\"]", + "instances": [ + { + "index_key": "0", + "schema_version": 1, + "attributes": { + "ami": "ami-08f9f3bb075432791", + "arn": "arn:aws:ec2:us-east-2:565979732541:instance/i-0aee76dc7e7146880", + "associate_public_ip_address": false, + "availability_zone": "us-east-2b", + "capacity_reservation_specification": [ + { + "capacity_reservation_preference": "open", + "capacity_reservation_target": [] + } + ], + "cpu_core_count": 32, + "cpu_options": [ + { + "amd_sev_snp": "", + "core_count": 32, + "threads_per_core": 1 + } + ], + "cpu_threads_per_core": 1, + "credit_specification": [], + "disable_api_stop": false, + "disable_api_termination": false, + "ebs_block_device": [], + "ebs_optimized": false, + "enclave_options": [ + { + "enabled": false + } + ], + "ephemeral_block_device": [], + "get_password_data": false, + "hibernation": false, + "host_id": "", + "host_resource_group_arn": null, + "iam_instance_profile": "simplyblock-instance-profile-israel", + "id": "i-0aee76dc7e7146880", + "instance_initiated_shutdown_behavior": "stop", + "instance_lifecycle": "", + "instance_market_options": [], + "instance_state": "running", + "instance_type": "m7gd.8xlarge", + "ipv6_address_count": 0, + "ipv6_addresses": [], + "key_name": "simplyblock-us-east-2.pem", + "launch_template": [], + "maintenance_options": [ + { + "auto_recovery": "default" + } + ], + "metadata_options": [ + { + "http_endpoint": "enabled", + "http_protocol_ipv6": "disabled", + "http_put_response_hop_limit": 1, + "http_tokens": "optional", + "instance_metadata_tags": "disabled" + } + ], + "monitoring": false, + "network_interface": [], + "outpost_arn": "", + "password_data": "", + "placement_group": "", + "placement_partition_number": 0, + "primary_network_interface_id": "eni-0f19d99cfd174d543", + "private_dns": "ip-10-0-3-225.us-east-2.compute.internal", + "private_dns_name_options": [ + { + "enable_resource_name_dns_a_record": false, + "enable_resource_name_dns_aaaa_record": false, + "hostname_type": "ip-name" + } + ], + "private_ip": "10.0.3.225", + "public_dns": "", + "public_ip": "", + "root_block_device": [ + { + "delete_on_termination": true, + "device_name": "/dev/sda1", + "encrypted": false, + "iops": 3000, + "kms_key_id": "", + "tags": {}, + "tags_all": {}, + "throughput": 125, + "volume_id": "vol-02ae9bb9c0edfab46", + "volume_size": 45, + "volume_type": "gp3" + } + ], + "secondary_private_ips": [], + "security_groups": [], + "source_dest_check": true, + "spot_instance_request_id": "", + "subnet_id": "subnet-03c180e84f6854a15", + "tags": { + "Name": "israel-storage-1" + }, + "tags_all": { + "Name": "israel-storage-1" + }, + "tenancy": "default", + "timeouts": null, + "user_data": "e7c67957c201291c4db4e41bea36a971c03febc0", + "user_data_base64": null, + "user_data_replace_on_change": false, + "volume_tags": null, + "vpc_security_group_ids": [ + "sg-0489217a5244cd1fa" + ] + }, + "sensitive_attributes": [], + "private": "eyJlMmJmYjczMC1lY2FhLTExZTYtOGY4OC0zNDM2M2JjN2M0YzAiOnsiY3JlYXRlIjo2MDAwMDAwMDAwMDAsImRlbGV0ZSI6MTIwMDAwMDAwMDAwMCwicmVhZCI6OTAwMDAwMDAwMDAwLCJ1cGRhdGUiOjYwMDAwMDAwMDAwMH0sInNjaGVtYV92ZXJzaW9uIjoiMSJ9", + "dependencies": [ + "aws_iam_instance_profile.inst_profile", + "aws_iam_role.role", + "aws_security_group.api_gateway_sg", + "aws_security_group.bastion_sg", + "aws_security_group.extra_nodes_sg", + "aws_security_group.loadbalancer_sg", + "aws_security_group.mgmt_node_sg", + "aws_security_group.storage_nodes_sg", + "data.aws_availability_zones.available", + "data.aws_iam_policy_document.assume_role_policy", + "module.vpc.aws_subnet.private", + "module.vpc.aws_vpc.this", + "module.vpc.aws_vpc_ipv4_cidr_block_association.this" + ] + }, + { + "index_key": "1", + "schema_version": 1, + "attributes": { + "ami": "ami-08f9f3bb075432791", + "arn": "arn:aws:ec2:us-east-2:565979732541:instance/i-007110c77189b87fe", + "associate_public_ip_address": false, + "availability_zone": "us-east-2b", + "capacity_reservation_specification": [ + { + "capacity_reservation_preference": "open", + "capacity_reservation_target": [] + } + ], + "cpu_core_count": 32, + "cpu_options": [ + { + "amd_sev_snp": "", + "core_count": 32, + "threads_per_core": 1 + } + ], + "cpu_threads_per_core": 1, + "credit_specification": [], + "disable_api_stop": false, + "disable_api_termination": false, + "ebs_block_device": [], + "ebs_optimized": false, + "enclave_options": [ + { + "enabled": false + } + ], + "ephemeral_block_device": [], + "get_password_data": false, + "hibernation": false, + "host_id": "", + "host_resource_group_arn": null, + "iam_instance_profile": "simplyblock-instance-profile-israel", + "id": "i-007110c77189b87fe", + "instance_initiated_shutdown_behavior": "stop", + "instance_lifecycle": "", + "instance_market_options": [], + "instance_state": "running", + "instance_type": "m7gd.8xlarge", + "ipv6_address_count": 0, + "ipv6_addresses": [], + "key_name": "simplyblock-us-east-2.pem", + "launch_template": [], + "maintenance_options": [ + { + "auto_recovery": "default" + } + ], + "metadata_options": [ + { + "http_endpoint": "enabled", + "http_protocol_ipv6": "disabled", + "http_put_response_hop_limit": 1, + "http_tokens": "optional", + "instance_metadata_tags": "disabled" + } + ], + "monitoring": false, + "network_interface": [], + "outpost_arn": "", + "password_data": "", + "placement_group": "", + "placement_partition_number": 0, + "primary_network_interface_id": "eni-01715f80049613e51", + "private_dns": "ip-10-0-3-117.us-east-2.compute.internal", + "private_dns_name_options": [ + { + "enable_resource_name_dns_a_record": false, + "enable_resource_name_dns_aaaa_record": false, + "hostname_type": "ip-name" + } + ], + "private_ip": "10.0.3.117", + "public_dns": "", + "public_ip": "", + "root_block_device": [ + { + "delete_on_termination": true, + "device_name": "/dev/sda1", + "encrypted": false, + "iops": 3000, + "kms_key_id": "", + "tags": {}, + "tags_all": {}, + "throughput": 125, + "volume_id": "vol-09cbd9fcfdb4f1696", + "volume_size": 45, + "volume_type": "gp3" + } + ], + "secondary_private_ips": [], + "security_groups": [], + "source_dest_check": true, + "spot_instance_request_id": "", + "subnet_id": "subnet-03c180e84f6854a15", + "tags": { + "Name": "israel-storage-2" + }, + "tags_all": { + "Name": "israel-storage-2" + }, + "tenancy": "default", + "timeouts": null, + "user_data": "e7c67957c201291c4db4e41bea36a971c03febc0", + "user_data_base64": null, + "user_data_replace_on_change": false, + "volume_tags": null, + "vpc_security_group_ids": [ + "sg-0489217a5244cd1fa" + ] + }, + "sensitive_attributes": [], + "private": "eyJlMmJmYjczMC1lY2FhLTExZTYtOGY4OC0zNDM2M2JjN2M0YzAiOnsiY3JlYXRlIjo2MDAwMDAwMDAwMDAsImRlbGV0ZSI6MTIwMDAwMDAwMDAwMCwicmVhZCI6OTAwMDAwMDAwMDAwLCJ1cGRhdGUiOjYwMDAwMDAwMDAwMH0sInNjaGVtYV92ZXJzaW9uIjoiMSJ9", + "dependencies": [ + "aws_iam_instance_profile.inst_profile", + "aws_iam_role.role", + "aws_security_group.api_gateway_sg", + "aws_security_group.bastion_sg", + "aws_security_group.extra_nodes_sg", + "aws_security_group.loadbalancer_sg", + "aws_security_group.mgmt_node_sg", + "aws_security_group.storage_nodes_sg", + "data.aws_availability_zones.available", + "data.aws_iam_policy_document.assume_role_policy", + "module.vpc.aws_subnet.private", + "module.vpc.aws_vpc.this", + "module.vpc.aws_vpc_ipv4_cidr_block_association.this" + ] + }, + { + "index_key": "2", + "schema_version": 1, + "attributes": { + "ami": "ami-08f9f3bb075432791", + "arn": "arn:aws:ec2:us-east-2:565979732541:instance/i-0cd35be22adb916da", + "associate_public_ip_address": false, + "availability_zone": "us-east-2b", + "capacity_reservation_specification": [ + { + "capacity_reservation_preference": "open", + "capacity_reservation_target": [] + } + ], + "cpu_core_count": 32, + "cpu_options": [ + { + "amd_sev_snp": "", + "core_count": 32, + "threads_per_core": 1 + } + ], + "cpu_threads_per_core": 1, + "credit_specification": [], + "disable_api_stop": false, + "disable_api_termination": false, + "ebs_block_device": [], + "ebs_optimized": false, + "enclave_options": [ + { + "enabled": false + } + ], + "ephemeral_block_device": [], + "get_password_data": false, + "hibernation": false, + "host_id": "", + "host_resource_group_arn": null, + "iam_instance_profile": "simplyblock-instance-profile-israel", + "id": "i-0cd35be22adb916da", + "instance_initiated_shutdown_behavior": "stop", + "instance_lifecycle": "", + "instance_market_options": [], + "instance_state": "running", + "instance_type": "m7gd.8xlarge", + "ipv6_address_count": 0, + "ipv6_addresses": [], + "key_name": "simplyblock-us-east-2.pem", + "launch_template": [], + "maintenance_options": [ + { + "auto_recovery": "default" + } + ], + "metadata_options": [ + { + "http_endpoint": "enabled", + "http_protocol_ipv6": "disabled", + "http_put_response_hop_limit": 1, + "http_tokens": "optional", + "instance_metadata_tags": "disabled" + } + ], + "monitoring": false, + "network_interface": [], + "outpost_arn": "", + "password_data": "", + "placement_group": "", + "placement_partition_number": 0, + "primary_network_interface_id": "eni-03131dee902cb6d9e", + "private_dns": "ip-10-0-3-135.us-east-2.compute.internal", + "private_dns_name_options": [ + { + "enable_resource_name_dns_a_record": false, + "enable_resource_name_dns_aaaa_record": false, + "hostname_type": "ip-name" + } + ], + "private_ip": "10.0.3.135", + "public_dns": "", + "public_ip": "", + "root_block_device": [ + { + "delete_on_termination": true, + "device_name": "/dev/sda1", + "encrypted": false, + "iops": 3000, + "kms_key_id": "", + "tags": {}, + "tags_all": {}, + "throughput": 125, + "volume_id": "vol-0a7cb3589b4d6ce33", + "volume_size": 45, + "volume_type": "gp3" + } + ], + "secondary_private_ips": [], + "security_groups": [], + "source_dest_check": true, + "spot_instance_request_id": "", + "subnet_id": "subnet-03c180e84f6854a15", + "tags": { + "Name": "israel-storage-3" + }, + "tags_all": { + "Name": "israel-storage-3" + }, + "tenancy": "default", + "timeouts": null, + "user_data": "e7c67957c201291c4db4e41bea36a971c03febc0", + "user_data_base64": null, + "user_data_replace_on_change": false, + "volume_tags": null, + "vpc_security_group_ids": [ + "sg-0489217a5244cd1fa" + ] + }, + "sensitive_attributes": [], + "private": "eyJlMmJmYjczMC1lY2FhLTExZTYtOGY4OC0zNDM2M2JjN2M0YzAiOnsiY3JlYXRlIjo2MDAwMDAwMDAwMDAsImRlbGV0ZSI6MTIwMDAwMDAwMDAwMCwicmVhZCI6OTAwMDAwMDAwMDAwLCJ1cGRhdGUiOjYwMDAwMDAwMDAwMH0sInNjaGVtYV92ZXJzaW9uIjoiMSJ9", + "dependencies": [ + "aws_iam_instance_profile.inst_profile", + "aws_iam_role.role", + "aws_security_group.api_gateway_sg", + "aws_security_group.bastion_sg", + "aws_security_group.extra_nodes_sg", + "aws_security_group.loadbalancer_sg", + "aws_security_group.mgmt_node_sg", + "aws_security_group.storage_nodes_sg", + "data.aws_availability_zones.available", + "data.aws_iam_policy_document.assume_role_policy", + "module.vpc.aws_subnet.private", + "module.vpc.aws_vpc.this", + "module.vpc.aws_vpc_ipv4_cidr_block_association.this" + ] + }, + { + "index_key": "3", + "schema_version": 1, + "attributes": { + "ami": "ami-08f9f3bb075432791", + "arn": "arn:aws:ec2:us-east-2:565979732541:instance/i-04f4a8d1efa55b31d", + "associate_public_ip_address": false, + "availability_zone": "us-east-2b", + "capacity_reservation_specification": [ + { + "capacity_reservation_preference": "open", + "capacity_reservation_target": [] + } + ], + "cpu_core_count": 32, + "cpu_options": [ + { + "amd_sev_snp": "", + "core_count": 32, + "threads_per_core": 1 + } + ], + "cpu_threads_per_core": 1, + "credit_specification": [], + "disable_api_stop": false, + "disable_api_termination": false, + "ebs_block_device": [], + "ebs_optimized": false, + "enclave_options": [ + { + "enabled": false + } + ], + "ephemeral_block_device": [], + "get_password_data": false, + "hibernation": false, + "host_id": "", + "host_resource_group_arn": null, + "iam_instance_profile": "simplyblock-instance-profile-israel", + "id": "i-04f4a8d1efa55b31d", + "instance_initiated_shutdown_behavior": "stop", + "instance_lifecycle": "", + "instance_market_options": [], + "instance_state": "running", + "instance_type": "m7gd.8xlarge", + "ipv6_address_count": 0, + "ipv6_addresses": [], + "key_name": "simplyblock-us-east-2.pem", + "launch_template": [], + "maintenance_options": [ + { + "auto_recovery": "default" + } + ], + "metadata_options": [ + { + "http_endpoint": "enabled", + "http_protocol_ipv6": "disabled", + "http_put_response_hop_limit": 1, + "http_tokens": "optional", + "instance_metadata_tags": "disabled" + } + ], + "monitoring": false, + "network_interface": [], + "outpost_arn": "", + "password_data": "", + "placement_group": "", + "placement_partition_number": 0, + "primary_network_interface_id": "eni-0184db45f1f8f869e", + "private_dns": "ip-10-0-3-133.us-east-2.compute.internal", + "private_dns_name_options": [ + { + "enable_resource_name_dns_a_record": false, + "enable_resource_name_dns_aaaa_record": false, + "hostname_type": "ip-name" + } + ], + "private_ip": "10.0.3.133", + "public_dns": "", + "public_ip": "", + "root_block_device": [ + { + "delete_on_termination": true, + "device_name": "/dev/sda1", + "encrypted": false, + "iops": 3000, + "kms_key_id": "", + "tags": {}, + "tags_all": {}, + "throughput": 125, + "volume_id": "vol-06b4b61f392d0d3fa", + "volume_size": 45, + "volume_type": "gp3" + } + ], + "secondary_private_ips": [], + "security_groups": [], + "source_dest_check": true, + "spot_instance_request_id": "", + "subnet_id": "subnet-03c180e84f6854a15", + "tags": { + "Name": "israel-storage-4" + }, + "tags_all": { + "Name": "israel-storage-4" + }, + "tenancy": "default", + "timeouts": null, + "user_data": "e7c67957c201291c4db4e41bea36a971c03febc0", + "user_data_base64": null, + "user_data_replace_on_change": false, + "volume_tags": null, + "vpc_security_group_ids": [ + "sg-0489217a5244cd1fa" + ] + }, + "sensitive_attributes": [], + "private": "eyJlMmJmYjczMC1lY2FhLTExZTYtOGY4OC0zNDM2M2JjN2M0YzAiOnsiY3JlYXRlIjo2MDAwMDAwMDAwMDAsImRlbGV0ZSI6MTIwMDAwMDAwMDAwMCwicmVhZCI6OTAwMDAwMDAwMDAwLCJ1cGRhdGUiOjYwMDAwMDAwMDAwMH0sInNjaGVtYV92ZXJzaW9uIjoiMSJ9", + "dependencies": [ + "aws_iam_instance_profile.inst_profile", + "aws_iam_role.role", + "aws_security_group.api_gateway_sg", + "aws_security_group.bastion_sg", + "aws_security_group.extra_nodes_sg", + "aws_security_group.loadbalancer_sg", + "aws_security_group.mgmt_node_sg", + "aws_security_group.storage_nodes_sg", + "data.aws_availability_zones.available", + "data.aws_iam_policy_document.assume_role_policy", + "module.vpc.aws_subnet.private", + "module.vpc.aws_vpc.this", + "module.vpc.aws_vpc_ipv4_cidr_block_association.this" + ] + }, + { + "index_key": "4", + "schema_version": 1, + "attributes": { + "ami": "ami-08f9f3bb075432791", + "arn": "arn:aws:ec2:us-east-2:565979732541:instance/i-0652fa5ba7bff8961", + "associate_public_ip_address": false, + "availability_zone": "us-east-2b", + "capacity_reservation_specification": [ + { + "capacity_reservation_preference": "open", + "capacity_reservation_target": [] + } + ], + "cpu_core_count": 32, + "cpu_options": [ + { + "amd_sev_snp": "", + "core_count": 32, + "threads_per_core": 1 + } + ], + "cpu_threads_per_core": 1, + "credit_specification": [], + "disable_api_stop": false, + "disable_api_termination": false, + "ebs_block_device": [], + "ebs_optimized": false, + "enclave_options": [ + { + "enabled": false + } + ], + "ephemeral_block_device": [], + "get_password_data": false, + "hibernation": false, + "host_id": "", + "host_resource_group_arn": null, + "iam_instance_profile": "simplyblock-instance-profile-israel", + "id": "i-0652fa5ba7bff8961", + "instance_initiated_shutdown_behavior": "stop", + "instance_lifecycle": "", + "instance_market_options": [], + "instance_state": "running", + "instance_type": "m7gd.8xlarge", + "ipv6_address_count": 0, + "ipv6_addresses": [], + "key_name": "simplyblock-us-east-2.pem", + "launch_template": [], + "maintenance_options": [ + { + "auto_recovery": "default" + } + ], + "metadata_options": [ + { + "http_endpoint": "enabled", + "http_protocol_ipv6": "disabled", + "http_put_response_hop_limit": 1, + "http_tokens": "optional", + "instance_metadata_tags": "disabled" + } + ], + "monitoring": false, + "network_interface": [], + "outpost_arn": "", + "password_data": "", + "placement_group": "", + "placement_partition_number": 0, + "primary_network_interface_id": "eni-0f0ed7b886d4c4b78", + "private_dns": "ip-10-0-3-181.us-east-2.compute.internal", + "private_dns_name_options": [ + { + "enable_resource_name_dns_a_record": false, + "enable_resource_name_dns_aaaa_record": false, + "hostname_type": "ip-name" + } + ], + "private_ip": "10.0.3.181", + "public_dns": "", + "public_ip": "", + "root_block_device": [ + { + "delete_on_termination": true, + "device_name": "/dev/sda1", + "encrypted": false, + "iops": 3000, + "kms_key_id": "", + "tags": null, + "tags_all": {}, + "throughput": 125, + "volume_id": "vol-0d01a1c39cd3f7154", + "volume_size": 45, + "volume_type": "gp3" + } + ], + "secondary_private_ips": [], + "security_groups": [], + "source_dest_check": true, + "spot_instance_request_id": "", + "subnet_id": "subnet-03c180e84f6854a15", + "tags": { + "Name": "israel-storage-5" + }, + "tags_all": { + "Name": "israel-storage-5" + }, + "tenancy": "default", + "timeouts": null, + "user_data": "e7c67957c201291c4db4e41bea36a971c03febc0", + "user_data_base64": null, + "user_data_replace_on_change": false, + "volume_tags": null, + "vpc_security_group_ids": [ + "sg-0489217a5244cd1fa" + ] + }, + "sensitive_attributes": [], + "private": "eyJlMmJmYjczMC1lY2FhLTExZTYtOGY4OC0zNDM2M2JjN2M0YzAiOnsiY3JlYXRlIjo2MDAwMDAwMDAwMDAsImRlbGV0ZSI6MTIwMDAwMDAwMDAwMCwicmVhZCI6OTAwMDAwMDAwMDAwLCJ1cGRhdGUiOjYwMDAwMDAwMDAwMH0sInNjaGVtYV92ZXJzaW9uIjoiMSJ9", + "dependencies": [ + "aws_iam_instance_profile.inst_profile", + "aws_iam_role.role", + "aws_security_group.api_gateway_sg", + "aws_security_group.bastion_sg", + "aws_security_group.extra_nodes_sg", + "aws_security_group.loadbalancer_sg", + "aws_security_group.mgmt_node_sg", + "aws_security_group.storage_nodes_sg", + "data.aws_availability_zones.available", + "data.aws_iam_policy_document.assume_role_policy", + "module.vpc.aws_subnet.private", + "module.vpc.aws_vpc.this", + "module.vpc.aws_vpc_ipv4_cidr_block_association.this" + ] + } + ] + }, + { + "mode": "managed", + "type": "aws_launch_template", + "name": "tfengine_lc", + "provider": "provider[\"registry.terraform.io/hashicorp/aws\"]", + "instances": [ + { + "schema_version": 0, + "attributes": { + "arn": "arn:aws:ec2:us-east-2:565979732541:launch-template/lt-0592c1adb2ec17a36", + "block_device_mappings": [], + "capacity_reservation_specification": [], + "cpu_options": [], + "credit_specification": [], + "default_version": 1, + "description": "", + "disable_api_stop": false, + "disable_api_termination": false, + "ebs_optimized": "", + "elastic_gpu_specifications": [], + "elastic_inference_accelerator": [], + "enclave_options": [], + "hibernation_options": [], + "iam_instance_profile": [ + { + "arn": "", + "name": "terraform-20241021142150560800000003" + } + ], + "id": "lt-0592c1adb2ec17a36", + "image_id": "ami-050cd642fd83388e4", + "instance_initiated_shutdown_behavior": "", + "instance_market_options": [], + "instance_requirements": [], + "instance_type": "t3.medium", + "kernel_id": "", + "key_name": "", + "latest_version": 1, + "license_specification": [], + "maintenance_options": [], + "metadata_options": [], + "monitoring": [], + "name": "tfengine2024102114221133420000000e", + "name_prefix": "tfengine", + "network_interfaces": [ + { + "associate_carrier_ip_address": "", + "associate_public_ip_address": "false", + "delete_on_termination": "", + "description": "", + "device_index": 0, + "interface_type": "", + "ipv4_address_count": 0, + "ipv4_addresses": [], + "ipv4_prefix_count": 0, + "ipv4_prefixes": [], + "ipv6_address_count": 0, + "ipv6_addresses": [], + "ipv6_prefix_count": 0, + "ipv6_prefixes": [], + "network_card_index": 0, + "network_interface_id": "", + "private_ip_address": "", + "security_groups": [ + "sg-056dcd70dfcbd4456" + ], + "subnet_id": "" + } + ], + "placement": [], + "private_dns_name_options": [], + "ram_disk_id": "", + "security_group_names": [], + "tag_specifications": [ + { + "resource_type": "instance", + "tags": { + "Name": "israel-tfengine" + } + } + ], + "tags": {}, + "tags_all": {}, + "update_default_version": null, + "user_data": "IyEvYmluL2Jhc2gKZG5mIGluc3RhbGwgLXkgZG9ja2VyCnN5c3RlbWN0bCBlbmFibGUgZG9ja2VyCnN5c3RlbWN0bCBzdGFydCBkb2NrZXIKZG5mIGluc3RhbGwgLXkgYW1hem9uLWVjci1jcmVkZW50aWFsLWhlbHBlcgpta2RpciAtcCB+Ly5kb2NrZXIKZWNobyAneyJjcmVkc1N0b3JlIjogImVjci1sb2dpbiJ9JyA+IH4vLmRvY2tlci9jb25maWcuanNvbgo=", + "vpc_security_group_ids": [] + }, + "sensitive_attributes": [], + "private": "bnVsbA==", + "dependencies": [ + "aws_iam_instance_profile.tfengine", + "aws_iam_role.tfengine", + "aws_security_group.tfengine_sg", + "data.aws_ami.this", + "module.vpc.aws_vpc.this" + ], + "create_before_destroy": true + } + ] + }, + { + "mode": "managed", + "type": "aws_s3_bucket", + "name": "tfengine_logs", + "provider": "provider[\"registry.terraform.io/hashicorp/aws\"]", + "instances": [ + { + "schema_version": 0, + "attributes": { + "acceleration_status": "", + "acl": null, + "arn": "arn:aws:s3:::simplyblock-tfengine-logs-165a52ea96", + "bucket": "simplyblock-tfengine-logs-165a52ea96", + "bucket_domain_name": "simplyblock-tfengine-logs-165a52ea96.s3.amazonaws.com", + "bucket_prefix": "", + "bucket_regional_domain_name": "simplyblock-tfengine-logs-165a52ea96.s3.us-east-2.amazonaws.com", + "cors_rule": [], + "force_destroy": true, + "grant": [ + { + "id": "2c785a94656626e4f31f20ace2c13fd77b92f1b24cfa077e87bdacaf29da685a", + "permissions": [ + "FULL_CONTROL" + ], + "type": "CanonicalUser", + "uri": "" + } + ], + "hosted_zone_id": "Z2O1EMRO9K5GLX", + "id": "simplyblock-tfengine-logs-165a52ea96", + "lifecycle_rule": [], + "logging": [], + "object_lock_configuration": [], + "object_lock_enabled": false, + "policy": "", + "region": "us-east-2", + "replication_configuration": [], + "request_payer": "BucketOwner", + "server_side_encryption_configuration": [ + { + "rule": [ + { + "apply_server_side_encryption_by_default": [ + { + "kms_master_key_id": "", + "sse_algorithm": "AES256" + } + ], + "bucket_key_enabled": false + } + ] + } + ], + "tags": {}, + "tags_all": {}, + "timeouts": null, + "versioning": [ + { + "enabled": false, + "mfa_delete": false + } + ], + "website": [], + "website_domain": null, + "website_endpoint": null + }, + "sensitive_attributes": [], + "private": "eyJlMmJmYjczMC1lY2FhLTExZTYtOGY4OC0zNDM2M2JjN2M0YzAiOnsiY3JlYXRlIjoxMjAwMDAwMDAwMDAwLCJkZWxldGUiOjM2MDAwMDAwMDAwMDAsInJlYWQiOjEyMDAwMDAwMDAwMDAsInVwZGF0ZSI6MTIwMDAwMDAwMDAwMH19", + "dependencies": [ + "random_id.id" + ] + } + ] + }, + { + "mode": "managed", + "type": "aws_security_group", + "name": "api_gateway_sg", + "provider": "provider[\"registry.terraform.io/hashicorp/aws\"]", + "instances": [ + { + "schema_version": 1, + "attributes": { + "arn": "arn:aws:ec2:us-east-2:565979732541:security-group/sg-0c559d0b29509c103", + "description": "API Gateway Security Group", + "egress": [ + { + "cidr_blocks": [ + "0.0.0.0/0" + ], + "description": "allow traffic from API gateway to Loadbalancer", + "from_port": 0, + "ipv6_cidr_blocks": [], + "prefix_list_ids": [], + "protocol": "-1", + "security_groups": [], + "self": false, + "to_port": 0 + } + ], + "id": "sg-0c559d0b29509c103", + "ingress": [], + "name": "israel-api_gateway_sg", + "name_prefix": "", + "owner_id": "565979732541", + "revoke_rules_on_delete": false, + "tags": {}, + "tags_all": {}, + "timeouts": null, + "vpc_id": "vpc-0365a16226384093d" + }, + "sensitive_attributes": [], + "private": "eyJlMmJmYjczMC1lY2FhLTExZTYtOGY4OC0zNDM2M2JjN2M0YzAiOnsiY3JlYXRlIjo2MDAwMDAwMDAwMDAsImRlbGV0ZSI6OTAwMDAwMDAwMDAwfSwic2NoZW1hX3ZlcnNpb24iOiIxIn0=", + "dependencies": [ + "module.vpc.aws_vpc.this" + ], + "create_before_destroy": true + } + ] + }, + { + "mode": "managed", + "type": "aws_security_group", + "name": "bastion_sg", + "provider": "provider[\"registry.terraform.io/hashicorp/aws\"]", + "instances": [ + { + "schema_version": 1, + "attributes": { + "arn": "arn:aws:ec2:us-east-2:565979732541:security-group/sg-0265fa831715dc772", + "description": "CSI Cluster Container Security Group", + "egress": [ + { + "cidr_blocks": [ + "0.0.0.0/0" + ], + "description": "", + "from_port": 0, + "ipv6_cidr_blocks": [], + "prefix_list_ids": [], + "protocol": "-1", + "security_groups": [], + "self": false, + "to_port": 0 + } + ], + "id": "sg-0265fa831715dc772", + "ingress": [ + { + "cidr_blocks": [ + "0.0.0.0/0" + ], + "description": "", + "from_port": 22, + "ipv6_cidr_blocks": [], + "prefix_list_ids": [], + "protocol": "tcp", + "security_groups": [], + "self": false, + "to_port": 22 + } + ], + "name": "israel-bastion_sg", + "name_prefix": "", + "owner_id": "565979732541", + "revoke_rules_on_delete": false, + "tags": {}, + "tags_all": {}, + "timeouts": null, + "vpc_id": "vpc-0365a16226384093d" + }, + "sensitive_attributes": [], + "private": "eyJlMmJmYjczMC1lY2FhLTExZTYtOGY4OC0zNDM2M2JjN2M0YzAiOnsiY3JlYXRlIjo2MDAwMDAwMDAwMDAsImRlbGV0ZSI6OTAwMDAwMDAwMDAwfSwic2NoZW1hX3ZlcnNpb24iOiIxIn0=", + "dependencies": [ + "module.vpc.aws_vpc.this" + ], + "create_before_destroy": true + } + ] + }, + { + "mode": "managed", + "type": "aws_security_group", + "name": "extra_nodes_sg", + "provider": "provider[\"registry.terraform.io/hashicorp/aws\"]", + "instances": [ + { + "schema_version": 1, + "attributes": { + "arn": "arn:aws:ec2:us-east-2:565979732541:security-group/sg-0254cbe75e9f87a8e", + "description": "CSI Cluster Container Security Group", + "egress": [ + { + "cidr_blocks": [ + "0.0.0.0/0" + ], + "description": "", + "from_port": 0, + "ipv6_cidr_blocks": [], + "prefix_list_ids": [], + "protocol": "-1", + "security_groups": [], + "self": false, + "to_port": 0 + } + ], + "id": "sg-0254cbe75e9f87a8e", + "ingress": [ + { + "cidr_blocks": [ + "0.0.0.0/0" + ], + "description": "", + "from_port": 22, + "ipv6_cidr_blocks": [], + "prefix_list_ids": [], + "protocol": "tcp", + "security_groups": [], + "self": false, + "to_port": 22 + }, + { + "cidr_blocks": [ + "0.0.0.0/0" + ], + "description": "Allow DNS resolution from worker nodes", + "from_port": 53, + "ipv6_cidr_blocks": [], + "prefix_list_ids": [], + "protocol": "udp", + "security_groups": [], + "self": false, + "to_port": 53 + }, + { + "cidr_blocks": [ + "0.0.0.0/0" + ], + "description": "Allow UDP traffic on ephemeral ports", + "from_port": 1025, + "ipv6_cidr_blocks": [], + "prefix_list_ids": [], + "protocol": "udp", + "security_groups": [], + "self": false, + "to_port": 65535 + }, + { + "cidr_blocks": [ + "0.0.0.0/0" + ], + "description": "k3s cluster", + "from_port": 5000, + "ipv6_cidr_blocks": [], + "prefix_list_ids": [], + "protocol": "tcp", + "security_groups": [], + "self": false, + "to_port": 5000 + }, + { + "cidr_blocks": [ + "0.0.0.0/0" + ], + "description": "k3s cluster", + "from_port": 6443, + "ipv6_cidr_blocks": [], + "prefix_list_ids": [], + "protocol": "tcp", + "security_groups": [], + "self": false, + "to_port": 6443 + }, + { + "cidr_blocks": [ + "0.0.0.0/0" + ], + "description": "k8s node communication", + "from_port": 10250, + "ipv6_cidr_blocks": [], + "prefix_list_ids": [], + "protocol": "tcp", + "security_groups": [], + "self": false, + "to_port": 10255 + }, + { + "cidr_blocks": [], + "description": "For SPDK Proxy for the storage node", + "from_port": 8080, + "ipv6_cidr_blocks": [], + "prefix_list_ids": [], + "protocol": "tcp", + "security_groups": [ + "sg-014b0598b9509d331" + ], + "self": false, + "to_port": 8080 + }, + { + "cidr_blocks": [], + "description": "allow ICMP Echo", + "from_port": 8, + "ipv6_cidr_blocks": [], + "prefix_list_ids": [], + "protocol": "icmp", + "security_groups": [ + "sg-014b0598b9509d331" + ], + "self": false, + "to_port": 0 + }, + { + "cidr_blocks": [], + "description": "docker engine API", + "from_port": 2375, + "ipv6_cidr_blocks": [], + "prefix_list_ids": [], + "protocol": "tcp", + "security_groups": [ + "sg-014b0598b9509d331" + ], + "self": false, + "to_port": 2375 + } + ], + "name": "israel-extra_nodes_sg", + "name_prefix": "", + "owner_id": "565979732541", + "revoke_rules_on_delete": false, + "tags": {}, + "tags_all": {}, + "timeouts": null, + "vpc_id": "vpc-0365a16226384093d" + }, + "sensitive_attributes": [], + "private": "eyJlMmJmYjczMC1lY2FhLTExZTYtOGY4OC0zNDM2M2JjN2M0YzAiOnsiY3JlYXRlIjo2MDAwMDAwMDAwMDAsImRlbGV0ZSI6OTAwMDAwMDAwMDAwfSwic2NoZW1hX3ZlcnNpb24iOiIxIn0=", + "dependencies": [ + "aws_security_group.api_gateway_sg", + "aws_security_group.bastion_sg", + "aws_security_group.loadbalancer_sg", + "aws_security_group.mgmt_node_sg", + "module.vpc.aws_vpc.this" + ] + } + ] + }, + { + "mode": "managed", + "type": "aws_security_group", + "name": "loadbalancer_sg", + "provider": "provider[\"registry.terraform.io/hashicorp/aws\"]", + "instances": [ + { + "schema_version": 1, + "attributes": { + "arn": "arn:aws:ec2:us-east-2:565979732541:security-group/sg-01795d3a1629fb919", + "description": "Loadbalancer Security Group", + "egress": [ + { + "cidr_blocks": [ + "0.0.0.0/0" + ], + "description": "allow traffic from API gateway to Mgmt nodes", + "from_port": 0, + "ipv6_cidr_blocks": [], + "prefix_list_ids": [], + "protocol": "-1", + "security_groups": [], + "self": false, + "to_port": 0 + } + ], + "id": "sg-01795d3a1629fb919", + "ingress": [ + { + "cidr_blocks": [], + "description": "Grafana from API gateway", + "from_port": 3000, + "ipv6_cidr_blocks": [], + "prefix_list_ids": [], + "protocol": "tcp", + "security_groups": [ + "sg-0c559d0b29509c103" + ], + "self": false, + "to_port": 3000 + }, + { + "cidr_blocks": [], + "description": "Graylog from API gateway", + "from_port": 9000, + "ipv6_cidr_blocks": [], + "prefix_list_ids": [], + "protocol": "tcp", + "security_groups": [ + "sg-0c559d0b29509c103" + ], + "self": false, + "to_port": 9000 + }, + { + "cidr_blocks": [], + "description": "HTTP from API gateway", + "from_port": 80, + "ipv6_cidr_blocks": [], + "prefix_list_ids": [], + "protocol": "tcp", + "security_groups": [ + "sg-0c559d0b29509c103" + ], + "self": false, + "to_port": 80 + } + ], + "name": "israel-loadbalancer_sg", + "name_prefix": "", + "owner_id": "565979732541", + "revoke_rules_on_delete": false, + "tags": {}, + "tags_all": {}, + "timeouts": null, + "vpc_id": "vpc-0365a16226384093d" + }, + "sensitive_attributes": [], + "private": "eyJlMmJmYjczMC1lY2FhLTExZTYtOGY4OC0zNDM2M2JjN2M0YzAiOnsiY3JlYXRlIjo2MDAwMDAwMDAwMDAsImRlbGV0ZSI6OTAwMDAwMDAwMDAwfSwic2NoZW1hX3ZlcnNpb24iOiIxIn0=", + "dependencies": [ + "aws_security_group.api_gateway_sg", + "module.vpc.aws_vpc.this" + ], + "create_before_destroy": true + } + ] + }, + { + "mode": "managed", + "type": "aws_security_group", + "name": "mgmt_node_sg", + "provider": "provider[\"registry.terraform.io/hashicorp/aws\"]", + "instances": [ + { + "schema_version": 1, + "attributes": { + "arn": "arn:aws:ec2:us-east-2:565979732541:security-group/sg-014b0598b9509d331", + "description": "CSI Cluster Container Security Group", + "egress": [ + { + "cidr_blocks": [ + "0.0.0.0/0" + ], + "description": "all output traffic so that packages can be downloaded", + "from_port": 0, + "ipv6_cidr_blocks": [], + "prefix_list_ids": [], + "protocol": "-1", + "security_groups": [], + "self": false, + "to_port": 0 + } + ], + "id": "sg-014b0598b9509d331", + "ingress": [ + { + "cidr_blocks": [ + "0.0.0.0/0" + ], + "description": "", + "from_port": 4500, + "ipv6_cidr_blocks": [], + "prefix_list_ids": [], + "protocol": "tcp", + "security_groups": [], + "self": false, + "to_port": 4500 + }, + { + "cidr_blocks": [ + "0.0.0.0/0" + ], + "description": "", + "from_port": 4800, + "ipv6_cidr_blocks": [], + "prefix_list_ids": [], + "protocol": "tcp", + "security_groups": [], + "self": false, + "to_port": 4800 + }, + { + "cidr_blocks": [ + "0.0.0.0/0" + ], + "description": "Docker Swarm Manager Communication", + "from_port": 2377, + "ipv6_cidr_blocks": [], + "prefix_list_ids": [], + "protocol": "tcp", + "security_groups": [], + "self": false, + "to_port": 2377 + }, + { + "cidr_blocks": [ + "0.0.0.0/0" + ], + "description": "Docker Swarm Node Communication TCP", + "from_port": 7946, + "ipv6_cidr_blocks": [], + "prefix_list_ids": [], + "protocol": "tcp", + "security_groups": [], + "self": false, + "to_port": 7946 + }, + { + "cidr_blocks": [ + "0.0.0.0/0" + ], + "description": "Docker Swarm Node Communication UDP", + "from_port": 7946, + "ipv6_cidr_blocks": [], + "prefix_list_ids": [], + "protocol": "udp", + "security_groups": [], + "self": false, + "to_port": 7946 + }, + { + "cidr_blocks": [ + "0.0.0.0/0" + ], + "description": "Docker Swarm Overlay Network", + "from_port": 4789, + "ipv6_cidr_blocks": [], + "prefix_list_ids": [], + "protocol": "udp", + "security_groups": [], + "self": false, + "to_port": 4789 + }, + { + "cidr_blocks": [ + "0.0.0.0/0" + ], + "description": "Graylog GELF Communication TCP", + "from_port": 12201, + "ipv6_cidr_blocks": [], + "prefix_list_ids": [], + "protocol": "tcp", + "security_groups": [], + "self": false, + "to_port": 12201 + }, + { + "cidr_blocks": [ + "0.0.0.0/0" + ], + "description": "Graylog GELF Communication TCP", + "from_port": 12201, + "ipv6_cidr_blocks": [], + "prefix_list_ids": [], + "protocol": "udp", + "security_groups": [], + "self": false, + "to_port": 12201 + }, + { + "cidr_blocks": [ + "0.0.0.0/0" + ], + "description": "docker engine API", + "from_port": 2375, + "ipv6_cidr_blocks": [], + "prefix_list_ids": [], + "protocol": "tcp", + "security_groups": [], + "self": false, + "to_port": 2375 + }, + { + "cidr_blocks": [], + "description": "EFS from mgmt nodes", + "from_port": 2049, + "ipv6_cidr_blocks": [], + "prefix_list_ids": [], + "protocol": "tcp", + "security_groups": [], + "self": true, + "to_port": 2049 + }, + { + "cidr_blocks": [], + "description": "Grafana from Loadbalancer", + "from_port": 3000, + "ipv6_cidr_blocks": [], + "prefix_list_ids": [], + "protocol": "tcp", + "security_groups": [ + "sg-01795d3a1629fb919" + ], + "self": false, + "to_port": 3000 + }, + { + "cidr_blocks": [], + "description": "Graylog from Loadbalancer", + "from_port": 9000, + "ipv6_cidr_blocks": [], + "prefix_list_ids": [], + "protocol": "tcp", + "security_groups": [ + "sg-01795d3a1629fb919" + ], + "self": false, + "to_port": 9000 + }, + { + "cidr_blocks": [], + "description": "HTTP from Loadbalancer", + "from_port": 80, + "ipv6_cidr_blocks": [], + "prefix_list_ids": [], + "protocol": "tcp", + "security_groups": [ + "sg-01795d3a1629fb919" + ], + "self": false, + "to_port": 80 + }, + { + "cidr_blocks": [], + "description": "HTTP from other mgmt nodes", + "from_port": 80, + "ipv6_cidr_blocks": [], + "prefix_list_ids": [], + "protocol": "tcp", + "security_groups": [], + "self": true, + "to_port": 80 + }, + { + "cidr_blocks": [], + "description": "SSH from Bastion Server", + "from_port": 22, + "ipv6_cidr_blocks": [], + "prefix_list_ids": [], + "protocol": "tcp", + "security_groups": [ + "sg-0265fa831715dc772" + ], + "self": false, + "to_port": 22 + }, + { + "cidr_blocks": [], + "description": "allow ICMP Echo", + "from_port": 8, + "ipv6_cidr_blocks": [], + "prefix_list_ids": [], + "protocol": "icmp", + "security_groups": [], + "self": true, + "to_port": 0 + } + ], + "name": "israel-mgmt_node_sg", + "name_prefix": "", + "owner_id": "565979732541", + "revoke_rules_on_delete": false, + "tags": {}, + "tags_all": {}, + "timeouts": null, + "vpc_id": "vpc-0365a16226384093d" + }, + "sensitive_attributes": [], + "private": "eyJlMmJmYjczMC1lY2FhLTExZTYtOGY4OC0zNDM2M2JjN2M0YzAiOnsiY3JlYXRlIjo2MDAwMDAwMDAwMDAsImRlbGV0ZSI6OTAwMDAwMDAwMDAwfSwic2NoZW1hX3ZlcnNpb24iOiIxIn0=", + "dependencies": [ + "aws_security_group.api_gateway_sg", + "aws_security_group.bastion_sg", + "aws_security_group.loadbalancer_sg", + "module.vpc.aws_vpc.this" + ], + "create_before_destroy": true + } + ] + }, + { + "mode": "managed", + "type": "aws_security_group", + "name": "storage_nodes_sg", + "provider": "provider[\"registry.terraform.io/hashicorp/aws\"]", + "instances": [ + { + "schema_version": 1, + "attributes": { + "arn": "arn:aws:ec2:us-east-2:565979732541:security-group/sg-0489217a5244cd1fa", + "description": "CSI Cluster Container Security Group", + "egress": [ + { + "cidr_blocks": [ + "0.0.0.0/0" + ], + "description": "all output traffic so that packages can be downloaded", + "from_port": 0, + "ipv6_cidr_blocks": [], + "prefix_list_ids": [], + "protocol": "-1", + "security_groups": [], + "self": false, + "to_port": 0 + } + ], + "id": "sg-0489217a5244cd1fa", + "ingress": [ + { + "cidr_blocks": [ + "0.0.0.0/0" + ], + "description": "Allow DNS resolution from worker nodes", + "from_port": 53, + "ipv6_cidr_blocks": [], + "prefix_list_ids": [], + "protocol": "udp", + "security_groups": [], + "self": false, + "to_port": 53 + }, + { + "cidr_blocks": [ + "0.0.0.0/0" + ], + "description": "Allow UDP traffic on ephemeral ports", + "from_port": 1025, + "ipv6_cidr_blocks": [], + "prefix_list_ids": [], + "protocol": "udp", + "security_groups": [], + "self": false, + "to_port": 65535 + }, + { + "cidr_blocks": [ + "0.0.0.0/0" + ], + "description": "Docker Swarm Manager Communication", + "from_port": 2377, + "ipv6_cidr_blocks": [], + "prefix_list_ids": [], + "protocol": "tcp", + "security_groups": [], + "self": false, + "to_port": 2377 + }, + { + "cidr_blocks": [ + "0.0.0.0/0" + ], + "description": "Docker Swarm Node Communication TCP", + "from_port": 7946, + "ipv6_cidr_blocks": [], + "prefix_list_ids": [], + "protocol": "tcp", + "security_groups": [], + "self": false, + "to_port": 7946 + }, + { + "cidr_blocks": [ + "0.0.0.0/0" + ], + "description": "Docker Swarm Node Communication UDP", + "from_port": 7946, + "ipv6_cidr_blocks": [], + "prefix_list_ids": [], + "protocol": "udp", + "security_groups": [], + "self": false, + "to_port": 7946 + }, + { + "cidr_blocks": [ + "0.0.0.0/0" + ], + "description": "Docker Swarm Overlay Network", + "from_port": 4789, + "ipv6_cidr_blocks": [], + "prefix_list_ids": [], + "protocol": "udp", + "security_groups": [], + "self": false, + "to_port": 4789 + }, + { + "cidr_blocks": [ + "0.0.0.0/0" + ], + "description": "Graylog GELF Communication TCP", + "from_port": 12201, + "ipv6_cidr_blocks": [], + "prefix_list_ids": [], + "protocol": "tcp", + "security_groups": [], + "self": false, + "to_port": 12201 + }, + { + "cidr_blocks": [ + "0.0.0.0/0" + ], + "description": "Graylog GELF Communication TCP", + "from_port": 12201, + "ipv6_cidr_blocks": [], + "prefix_list_ids": [], + "protocol": "udp", + "security_groups": [], + "self": false, + "to_port": 12201 + }, + { + "cidr_blocks": [ + "0.0.0.0/0" + ], + "description": "k3s cluster", + "from_port": 6443, + "ipv6_cidr_blocks": [], + "prefix_list_ids": [], + "protocol": "tcp", + "security_groups": [], + "self": false, + "to_port": 6443 + }, + { + "cidr_blocks": [ + "0.0.0.0/0" + ], + "description": "k8s node communication", + "from_port": 10250, + "ipv6_cidr_blocks": [], + "prefix_list_ids": [], + "protocol": "tcp", + "security_groups": [], + "self": false, + "to_port": 10255 + }, + { + "cidr_blocks": [ + "0.0.0.0/0" + ], + "description": "storage node lvol connect", + "from_port": 4420, + "ipv6_cidr_blocks": [], + "prefix_list_ids": [], + "protocol": "tcp", + "security_groups": [], + "self": false, + "to_port": 4420 + }, + { + "cidr_blocks": [], + "description": "For SPDK Proxy for the storage node from mgmt node", + "from_port": 8080, + "ipv6_cidr_blocks": [], + "prefix_list_ids": [], + "protocol": "tcp", + "security_groups": [ + "sg-014b0598b9509d331" + ], + "self": false, + "to_port": 8080 + }, + { + "cidr_blocks": [], + "description": "For SPDK Proxy for the storage node from other storage nodes", + "from_port": 8080, + "ipv6_cidr_blocks": [], + "prefix_list_ids": [], + "protocol": "tcp", + "security_groups": [], + "self": true, + "to_port": 8080 + }, + { + "cidr_blocks": [], + "description": "SSH from Bastion Server", + "from_port": 22, + "ipv6_cidr_blocks": [], + "prefix_list_ids": [], + "protocol": "tcp", + "security_groups": [ + "sg-0265fa831715dc772" + ], + "self": false, + "to_port": 22 + }, + { + "cidr_blocks": [], + "description": "access SNodeAPI from mgmt and k3s nodes", + "from_port": 5000, + "ipv6_cidr_blocks": [], + "prefix_list_ids": [], + "protocol": "tcp", + "security_groups": [ + "sg-014b0598b9509d331", + "sg-0254cbe75e9f87a8e" + ], + "self": false, + "to_port": 5000 + }, + { + "cidr_blocks": [], + "description": "access SNodeAPI from snode node workers", + "from_port": 5000, + "ipv6_cidr_blocks": [], + "prefix_list_ids": [], + "protocol": "tcp", + "security_groups": [], + "self": true, + "to_port": 5000 + }, + { + "cidr_blocks": [], + "description": "allow ICMP Echo", + "from_port": 8, + "ipv6_cidr_blocks": [], + "prefix_list_ids": [], + "protocol": "icmp", + "security_groups": [ + "sg-014b0598b9509d331" + ], + "self": false, + "to_port": 0 + }, + { + "cidr_blocks": [], + "description": "docker engine API", + "from_port": 2375, + "ipv6_cidr_blocks": [], + "prefix_list_ids": [], + "protocol": "tcp", + "security_groups": [ + "sg-014b0598b9509d331" + ], + "self": false, + "to_port": 2375 + }, + { + "cidr_blocks": [], + "description": "prometheus scrape from mgmt nodes", + "from_port": 9100, + "ipv6_cidr_blocks": [], + "prefix_list_ids": [], + "protocol": "tcp", + "security_groups": [ + "sg-014b0598b9509d331" + ], + "self": false, + "to_port": 9100 + } + ], + "name": "israel-storage_nodes_sg", + "name_prefix": "", + "owner_id": "565979732541", + "revoke_rules_on_delete": false, + "tags": {}, + "tags_all": {}, + "timeouts": null, + "vpc_id": "vpc-0365a16226384093d" + }, + "sensitive_attributes": [], + "private": "eyJlMmJmYjczMC1lY2FhLTExZTYtOGY4OC0zNDM2M2JjN2M0YzAiOnsiY3JlYXRlIjo2MDAwMDAwMDAwMDAsImRlbGV0ZSI6OTAwMDAwMDAwMDAwfSwic2NoZW1hX3ZlcnNpb24iOiIxIn0=", + "dependencies": [ + "aws_security_group.api_gateway_sg", + "aws_security_group.bastion_sg", + "aws_security_group.extra_nodes_sg", + "aws_security_group.loadbalancer_sg", + "aws_security_group.mgmt_node_sg", + "module.vpc.aws_vpc.this" + ] + } + ] + }, + { + "mode": "managed", + "type": "aws_security_group", + "name": "tfengine_sg", + "provider": "provider[\"registry.terraform.io/hashicorp/aws\"]", + "instances": [ + { + "schema_version": 1, + "attributes": { + "arn": "arn:aws:ec2:us-east-2:565979732541:security-group/sg-056dcd70dfcbd4456", + "description": "tfEngine security group", + "egress": [ + { + "cidr_blocks": [ + "0.0.0.0/0" + ], + "description": "", + "from_port": 0, + "ipv6_cidr_blocks": [], + "prefix_list_ids": [], + "protocol": "-1", + "security_groups": [], + "self": false, + "to_port": 0 + } + ], + "id": "sg-056dcd70dfcbd4456", + "ingress": [], + "name": "terraform-2024102114220439070000000c", + "name_prefix": "terraform-", + "owner_id": "565979732541", + "revoke_rules_on_delete": false, + "tags": {}, + "tags_all": {}, + "timeouts": null, + "vpc_id": "vpc-0365a16226384093d" + }, + "sensitive_attributes": [], + "private": "eyJlMmJmYjczMC1lY2FhLTExZTYtOGY4OC0zNDM2M2JjN2M0YzAiOnsiY3JlYXRlIjo2MDAwMDAwMDAwMDAsImRlbGV0ZSI6OTAwMDAwMDAwMDAwfSwic2NoZW1hX3ZlcnNpb24iOiIxIn0=", + "dependencies": [ + "module.vpc.aws_vpc.this" + ], + "create_before_destroy": true + } + ] + }, + { + "mode": "managed", + "type": "random_id", + "name": "id", + "provider": "provider[\"registry.terraform.io/hashicorp/random\"]", + "instances": [ + { + "schema_version": 0, + "attributes": { + "b64_std": "FlpS6pY=", + "b64_url": "FlpS6pY", + "byte_length": 5, + "dec": "96004663958", + "hex": "165a52ea96", + "id": "FlpS6pY", + "keepers": null, + "prefix": null + }, + "sensitive_attributes": [] + } + ] + }, + { + "module": "module.apigatewayendpoint[0]", + "mode": "managed", + "type": "aws_apigatewayv2_api", + "name": "simplyblock_api", + "provider": "provider[\"registry.terraform.io/hashicorp/aws\"]", + "instances": [ + { + "schema_version": 0, + "attributes": { + "api_endpoint": "https://y9jloxzybl.execute-api.us-east-2.amazonaws.com", + "api_key_selection_expression": "$request.header.x-api-key", + "arn": "arn:aws:apigateway:us-east-2::/apis/y9jloxzybl", + "body": null, + "cors_configuration": [], + "credentials_arn": null, + "description": "", + "disable_execute_api_endpoint": false, + "execution_arn": "arn:aws:execute-api:us-east-2:565979732541:y9jloxzybl", + "fail_on_warnings": null, + "id": "y9jloxzybl", + "name": "israel-simplyblock-mgmt-api-http", + "protocol_type": "HTTP", + "route_key": null, + "route_selection_expression": "$request.method $request.path", + "tags": {}, + "tags_all": {}, + "target": null, + "version": "" + }, + "sensitive_attributes": [], + "private": "bnVsbA==" + } + ] + }, + { + "module": "module.apigatewayendpoint[0]", + "mode": "managed", + "type": "aws_apigatewayv2_integration", + "name": "root_integration", + "provider": "provider[\"registry.terraform.io/hashicorp/aws\"]", + "instances": [ + { + "schema_version": 0, + "attributes": { + "api_id": "y9jloxzybl", + "connection_id": "d8lm0m", + "connection_type": "VPC_LINK", + "content_handling_strategy": "", + "credentials_arn": "", + "description": "", + "id": "b9saavk", + "integration_method": "ANY", + "integration_response_selection_expression": "", + "integration_subtype": "", + "integration_type": "HTTP_PROXY", + "integration_uri": "arn:aws:elasticloadbalancing:us-east-2:565979732541:listener/net/israel-root-lb/0572a73e75df8550/7cb6317376bf1bfa", + "passthrough_behavior": "", + "payload_format_version": "1.0", + "request_parameters": {}, + "request_templates": {}, + "response_parameters": [], + "template_selection_expression": "", + "timeout_milliseconds": 30000, + "tls_config": [] + }, + "sensitive_attributes": [], + "private": "bnVsbA==", + "dependencies": [ + "aws_security_group.api_gateway_sg", + "aws_security_group.loadbalancer_sg", + "data.aws_availability_zones.available", + "module.apigatewayendpoint.aws_apigatewayv2_api.simplyblock_api", + "module.apigatewayendpoint.aws_apigatewayv2_vpc_link.vpc_link", + "module.apigatewayendpoint.aws_lb.root_internal_lb", + "module.apigatewayendpoint.aws_lb_listener.root_lb_listener", + "module.apigatewayendpoint.aws_lb_target_group.root_target", + "module.vpc.aws_subnet.public", + "module.vpc.aws_vpc.this", + "module.vpc.aws_vpc_ipv4_cidr_block_association.this" + ] + } + ] + }, + { + "module": "module.apigatewayendpoint[0]", + "mode": "managed", + "type": "aws_apigatewayv2_route", + "name": "root", + "provider": "provider[\"registry.terraform.io/hashicorp/aws\"]", + "instances": [ + { + "schema_version": 0, + "attributes": { + "api_id": "y9jloxzybl", + "api_key_required": false, + "authorization_scopes": [], + "authorization_type": "NONE", + "authorizer_id": "", + "id": "8v9s91e", + "model_selection_expression": "", + "operation_name": "", + "request_models": {}, + "request_parameter": [], + "route_key": "ANY /{proxy+}", + "route_response_selection_expression": "", + "target": "integrations/b9saavk" + }, + "sensitive_attributes": [], + "private": "bnVsbA==", + "dependencies": [ + "aws_security_group.api_gateway_sg", + "aws_security_group.loadbalancer_sg", + "data.aws_availability_zones.available", + "module.apigatewayendpoint.aws_apigatewayv2_api.simplyblock_api", + "module.apigatewayendpoint.aws_apigatewayv2_integration.root_integration", + "module.apigatewayendpoint.aws_apigatewayv2_vpc_link.vpc_link", + "module.apigatewayendpoint.aws_lb.root_internal_lb", + "module.apigatewayendpoint.aws_lb_listener.root_lb_listener", + "module.apigatewayendpoint.aws_lb_target_group.root_target", + "module.vpc.aws_subnet.public", + "module.vpc.aws_vpc.this", + "module.vpc.aws_vpc_ipv4_cidr_block_association.this" + ] + } + ] + }, + { + "module": "module.apigatewayendpoint[0]", + "mode": "managed", + "type": "aws_apigatewayv2_stage", + "name": "default", + "provider": "provider[\"registry.terraform.io/hashicorp/aws\"]", + "instances": [ + { + "schema_version": 0, + "attributes": { + "access_log_settings": [], + "api_id": "y9jloxzybl", + "arn": "arn:aws:apigateway:us-east-2::/apis/y9jloxzybl/stages/$default", + "auto_deploy": true, + "client_certificate_id": "", + "default_route_settings": [ + { + "data_trace_enabled": false, + "detailed_metrics_enabled": false, + "logging_level": "", + "throttling_burst_limit": 0, + "throttling_rate_limit": 0 + } + ], + "deployment_id": "nuqewo", + "description": "", + "execution_arn": "arn:aws:execute-api:us-east-2:565979732541:y9jloxzybl/$default", + "id": "$default", + "invoke_url": "https://y9jloxzybl.execute-api.us-east-2.amazonaws.com/", + "name": "$default", + "route_settings": [], + "stage_variables": {}, + "tags": {}, + "tags_all": {} + }, + "sensitive_attributes": [], + "private": "bnVsbA==", + "dependencies": [ + "module.apigatewayendpoint.aws_apigatewayv2_api.simplyblock_api" + ] + } + ] + }, + { + "module": "module.apigatewayendpoint[0]", + "mode": "managed", + "type": "aws_apigatewayv2_vpc_link", + "name": "vpc_link", + "provider": "provider[\"registry.terraform.io/hashicorp/aws\"]", + "instances": [ + { + "schema_version": 0, + "attributes": { + "arn": "arn:aws:apigateway:us-east-2::/vpclinks/d8lm0m", + "id": "d8lm0m", + "name": "israel-simplyblock-vpclink", + "security_group_ids": [ + "sg-0c559d0b29509c103" + ], + "subnet_ids": [ + "subnet-0543a02417c794f33", + "subnet-0624fa4ce4fc3c03c" + ], + "tags": {}, + "tags_all": {} + }, + "sensitive_attributes": [], + "private": "bnVsbA==", + "dependencies": [ + "aws_security_group.api_gateway_sg", + "data.aws_availability_zones.available", + "module.vpc.aws_subnet.public", + "module.vpc.aws_vpc.this", + "module.vpc.aws_vpc_ipv4_cidr_block_association.this" + ] + } + ] + }, + { + "module": "module.apigatewayendpoint[0]", + "mode": "managed", + "type": "aws_lb", + "name": "root_internal_lb", + "provider": "provider[\"registry.terraform.io/hashicorp/aws\"]", + "instances": [ + { + "schema_version": 0, + "attributes": { + "access_logs": [ + { + "bucket": "", + "enabled": false, + "prefix": "" + } + ], + "arn": "arn:aws:elasticloadbalancing:us-east-2:565979732541:loadbalancer/net/israel-root-lb/0572a73e75df8550", + "arn_suffix": "net/israel-root-lb/0572a73e75df8550", + "connection_logs": [], + "customer_owned_ipv4_pool": "", + "desync_mitigation_mode": null, + "dns_name": "israel-root-lb-0572a73e75df8550.elb.us-east-2.amazonaws.com", + "dns_record_client_routing_policy": "any_availability_zone", + "drop_invalid_header_fields": null, + "enable_cross_zone_load_balancing": false, + "enable_deletion_protection": false, + "enable_http2": null, + "enable_tls_version_and_cipher_suite_headers": null, + "enable_waf_fail_open": null, + "enable_xff_client_port": null, + "enforce_security_group_inbound_rules_on_private_link_traffic": "", + "id": "arn:aws:elasticloadbalancing:us-east-2:565979732541:loadbalancer/net/israel-root-lb/0572a73e75df8550", + "idle_timeout": null, + "internal": true, + "ip_address_type": "ipv4", + "load_balancer_type": "network", + "name": "israel-root-lb", + "name_prefix": "", + "preserve_host_header": null, + "security_groups": [ + "sg-01795d3a1629fb919" + ], + "subnet_mapping": [ + { + "allocation_id": "", + "ipv6_address": "", + "outpost_id": "", + "private_ipv4_address": "", + "subnet_id": "subnet-0543a02417c794f33" + }, + { + "allocation_id": "", + "ipv6_address": "", + "outpost_id": "", + "private_ipv4_address": "", + "subnet_id": "subnet-0624fa4ce4fc3c03c" + } + ], + "subnets": [ + "subnet-0543a02417c794f33", + "subnet-0624fa4ce4fc3c03c" + ], + "tags": {}, + "tags_all": {}, + "timeouts": null, + "vpc_id": "vpc-0365a16226384093d", + "xff_header_processing_mode": null, + "zone_id": "ZLMOA37VPKANP" + }, + "sensitive_attributes": [], + "private": "eyJlMmJmYjczMC1lY2FhLTExZTYtOGY4OC0zNDM2M2JjN2M0YzAiOnsiY3JlYXRlIjo2MDAwMDAwMDAwMDAsImRlbGV0ZSI6NjAwMDAwMDAwMDAwLCJ1cGRhdGUiOjYwMDAwMDAwMDAwMH19", + "dependencies": [ + "aws_security_group.api_gateway_sg", + "aws_security_group.loadbalancer_sg", + "data.aws_availability_zones.available", + "module.vpc.aws_subnet.public", + "module.vpc.aws_vpc.this", + "module.vpc.aws_vpc_ipv4_cidr_block_association.this" + ] + } + ] + }, + { + "module": "module.apigatewayendpoint[0]", + "mode": "managed", + "type": "aws_lb_listener", + "name": "root_lb_listener", + "provider": "provider[\"registry.terraform.io/hashicorp/aws\"]", + "instances": [ + { + "schema_version": 0, + "attributes": { + "alpn_policy": null, + "arn": "arn:aws:elasticloadbalancing:us-east-2:565979732541:listener/net/israel-root-lb/0572a73e75df8550/7cb6317376bf1bfa", + "certificate_arn": null, + "default_action": [ + { + "authenticate_cognito": [], + "authenticate_oidc": [], + "fixed_response": [], + "forward": [], + "order": 1, + "redirect": [], + "target_group_arn": "arn:aws:elasticloadbalancing:us-east-2:565979732541:targetgroup/israel-root-tg/9424d61e933c8a9a", + "type": "forward" + } + ], + "id": "arn:aws:elasticloadbalancing:us-east-2:565979732541:listener/net/israel-root-lb/0572a73e75df8550/7cb6317376bf1bfa", + "load_balancer_arn": "arn:aws:elasticloadbalancing:us-east-2:565979732541:loadbalancer/net/israel-root-lb/0572a73e75df8550", + "mutual_authentication": [], + "port": 80, + "protocol": "TCP", + "ssl_policy": "", + "tags": {}, + "tags_all": {}, + "timeouts": null + }, + "sensitive_attributes": [], + "private": "eyJlMmJmYjczMC1lY2FhLTExZTYtOGY4OC0zNDM2M2JjN2M0YzAiOnsiY3JlYXRlIjozMDAwMDAwMDAwMDAsInVwZGF0ZSI6MzAwMDAwMDAwMDAwfX0=", + "dependencies": [ + "aws_security_group.api_gateway_sg", + "aws_security_group.loadbalancer_sg", + "data.aws_availability_zones.available", + "module.apigatewayendpoint.aws_lb.root_internal_lb", + "module.apigatewayendpoint.aws_lb_target_group.root_target", + "module.vpc.aws_subnet.public", + "module.vpc.aws_vpc.this", + "module.vpc.aws_vpc_ipv4_cidr_block_association.this" + ] + } + ] + }, + { + "module": "module.apigatewayendpoint[0]", + "mode": "managed", + "type": "aws_lb_target_group", + "name": "root_target", + "provider": "provider[\"registry.terraform.io/hashicorp/aws\"]", + "instances": [ + { + "schema_version": 0, + "attributes": { + "arn": "arn:aws:elasticloadbalancing:us-east-2:565979732541:targetgroup/israel-root-tg/9424d61e933c8a9a", + "arn_suffix": "targetgroup/israel-root-tg/9424d61e933c8a9a", + "connection_termination": false, + "deregistration_delay": "300", + "health_check": [ + { + "enabled": true, + "healthy_threshold": 5, + "interval": 30, + "matcher": "", + "path": "", + "port": "traffic-port", + "protocol": "TCP", + "timeout": 10, + "unhealthy_threshold": 2 + } + ], + "id": "arn:aws:elasticloadbalancing:us-east-2:565979732541:targetgroup/israel-root-tg/9424d61e933c8a9a", + "ip_address_type": "ipv4", + "lambda_multi_value_headers_enabled": false, + "load_balancer_arns": [ + "arn:aws:elasticloadbalancing:us-east-2:565979732541:loadbalancer/net/israel-root-lb/0572a73e75df8550" + ], + "load_balancing_algorithm_type": null, + "load_balancing_anomaly_mitigation": null, + "load_balancing_cross_zone_enabled": "use_load_balancer_configuration", + "name": "israel-root-tg", + "name_prefix": "", + "port": 80, + "preserve_client_ip": "true", + "protocol": "TCP", + "protocol_version": null, + "proxy_protocol_v2": false, + "slow_start": 0, + "stickiness": [ + { + "cookie_duration": 0, + "cookie_name": "", + "enabled": false, + "type": "source_ip" + } + ], + "tags": {}, + "tags_all": {}, + "target_failover": [ + { + "on_deregistration": null, + "on_unhealthy": null + } + ], + "target_health_state": [ + { + "enable_unhealthy_connection_termination": true + } + ], + "target_type": "instance", + "vpc_id": "vpc-0365a16226384093d" + }, + "sensitive_attributes": [], + "private": "bnVsbA==", + "dependencies": [ + "module.vpc.aws_vpc.this" + ] + } + ] + }, + { + "module": "module.apigatewayendpoint[0]", + "mode": "managed", + "type": "aws_lb_target_group_attachment", + "name": "root_target_attachment", + "provider": "provider[\"registry.terraform.io/hashicorp/aws\"]", + "instances": [ + { + "index_key": 0, + "schema_version": 0, + "attributes": { + "availability_zone": null, + "id": "arn:aws:elasticloadbalancing:us-east-2:565979732541:targetgroup/israel-root-tg/9424d61e933c8a9a-20241021142240779900000019", + "port": 80, + "target_group_arn": "arn:aws:elasticloadbalancing:us-east-2:565979732541:targetgroup/israel-root-tg/9424d61e933c8a9a", + "target_id": "i-099e0f4d4d67759b6" + }, + "sensitive_attributes": [], + "private": "bnVsbA==", + "dependencies": [ + "aws_iam_instance_profile.inst_profile", + "aws_iam_role.role", + "aws_instance.mgmt_nodes", + "aws_security_group.api_gateway_sg", + "aws_security_group.bastion_sg", + "aws_security_group.loadbalancer_sg", + "aws_security_group.mgmt_node_sg", + "data.aws_availability_zones.available", + "data.aws_iam_policy_document.assume_role_policy", + "module.apigatewayendpoint.aws_lb_target_group.root_target", + "module.vpc.aws_subnet.private", + "module.vpc.aws_vpc.this", + "module.vpc.aws_vpc_ipv4_cidr_block_association.this" + ] + } + ] + }, + { + "module": "module.vpc", + "mode": "managed", + "type": "aws_default_network_acl", + "name": "this", + "provider": "provider[\"registry.terraform.io/hashicorp/aws\"]", + "instances": [ + { + "index_key": 0, + "schema_version": 0, + "attributes": { + "arn": "arn:aws:ec2:us-east-2:565979732541:network-acl/acl-0de2087e2d39073a4", + "default_network_acl_id": "acl-0de2087e2d39073a4", + "egress": [ + { + "action": "allow", + "cidr_block": "", + "from_port": 0, + "icmp_code": 0, + "icmp_type": 0, + "ipv6_cidr_block": "::/0", + "protocol": "-1", + "rule_no": 101, + "to_port": 0 + }, + { + "action": "allow", + "cidr_block": "0.0.0.0/0", + "from_port": 0, + "icmp_code": 0, + "icmp_type": 0, + "ipv6_cidr_block": "", + "protocol": "-1", + "rule_no": 100, + "to_port": 0 + } + ], + "id": "acl-0de2087e2d39073a4", + "ingress": [ + { + "action": "allow", + "cidr_block": "", + "from_port": 0, + "icmp_code": 0, + "icmp_type": 0, + "ipv6_cidr_block": "::/0", + "protocol": "-1", + "rule_no": 101, + "to_port": 0 + }, + { + "action": "allow", + "cidr_block": "0.0.0.0/0", + "from_port": 0, + "icmp_code": 0, + "icmp_type": 0, + "ipv6_cidr_block": "", + "protocol": "-1", + "rule_no": 100, + "to_port": 0 + } + ], + "owner_id": "565979732541", + "subnet_ids": [ + "subnet-03c180e84f6854a15", + "subnet-0543a02417c794f33", + "subnet-0624fa4ce4fc3c03c", + "subnet-0d4485b4ba30cf005" + ], + "tags": { + "Environment": "israel-dev", + "Name": "israel-storage-vpc-sb-default", + "Terraform": "true" + }, + "tags_all": { + "Environment": "israel-dev", + "Name": "israel-storage-vpc-sb-default", + "Terraform": "true" + }, + "vpc_id": "vpc-0365a16226384093d" + }, + "sensitive_attributes": [], + "private": "bnVsbA==", + "dependencies": [ + "module.vpc.aws_vpc.this" + ] + } + ] + }, + { + "module": "module.vpc", + "mode": "managed", + "type": "aws_default_route_table", + "name": "default", + "provider": "provider[\"registry.terraform.io/hashicorp/aws\"]", + "instances": [ + { + "index_key": 0, + "schema_version": 0, + "attributes": { + "arn": "arn:aws:ec2:us-east-2:565979732541:route-table/rtb-0fb4f7f5bd4340746", + "default_route_table_id": "rtb-0fb4f7f5bd4340746", + "id": "rtb-0fb4f7f5bd4340746", + "owner_id": "565979732541", + "propagating_vgws": [], + "route": [], + "tags": { + "Environment": "israel-dev", + "Name": "israel-storage-vpc-sb-default", + "Terraform": "true" + }, + "tags_all": { + "Environment": "israel-dev", + "Name": "israel-storage-vpc-sb-default", + "Terraform": "true" + }, + "timeouts": { + "create": "5m", + "update": "5m" + }, + "vpc_id": "vpc-0365a16226384093d" + }, + "sensitive_attributes": [], + "private": "eyJlMmJmYjczMC1lY2FhLTExZTYtOGY4OC0zNDM2M2JjN2M0YzAiOnsiY3JlYXRlIjozMDAwMDAwMDAwMDAsInVwZGF0ZSI6MzAwMDAwMDAwMDAwfX0=", + "dependencies": [ + "module.vpc.aws_vpc.this" + ] + } + ] + }, + { + "module": "module.vpc", + "mode": "managed", + "type": "aws_default_security_group", + "name": "this", + "provider": "provider[\"registry.terraform.io/hashicorp/aws\"]", + "instances": [ + { + "index_key": 0, + "schema_version": 1, + "attributes": { + "arn": "arn:aws:ec2:us-east-2:565979732541:security-group/sg-0a3810d82bbff09bc", + "description": "default VPC security group", + "egress": [], + "id": "sg-0a3810d82bbff09bc", + "ingress": [], + "name": "default", + "name_prefix": "", + "owner_id": "565979732541", + "revoke_rules_on_delete": false, + "tags": { + "Environment": "israel-dev", + "Name": "israel-storage-vpc-sb-default", + "Terraform": "true" + }, + "tags_all": { + "Environment": "israel-dev", + "Name": "israel-storage-vpc-sb-default", + "Terraform": "true" + }, + "vpc_id": "vpc-0365a16226384093d" + }, + "sensitive_attributes": [], + "private": "eyJzY2hlbWFfdmVyc2lvbiI6IjEifQ==", + "dependencies": [ + "module.vpc.aws_vpc.this" + ] + } + ] + }, + { + "module": "module.vpc", + "mode": "managed", + "type": "aws_eip", + "name": "nat", + "provider": "provider[\"registry.terraform.io/hashicorp/aws\"]", + "instances": [ + { + "index_key": 0, + "schema_version": 0, + "attributes": { + "address": null, + "allocation_id": "eipalloc-0ef8b284c6526df5f", + "associate_with_private_ip": null, + "association_id": "eipassoc-06976cd7160933474", + "carrier_ip": "", + "customer_owned_ip": "", + "customer_owned_ipv4_pool": "", + "domain": "vpc", + "id": "eipalloc-0ef8b284c6526df5f", + "instance": "", + "network_border_group": "us-east-2", + "network_interface": "eni-0d67bbed1e57bb9e3", + "private_dns": "ip-10-0-2-146.us-east-2.compute.internal", + "private_ip": "10.0.2.146", + "public_dns": "ec2-3-147-91-47.us-east-2.compute.amazonaws.com", + "public_ip": "3.147.91.47", + "public_ipv4_pool": "amazon", + "tags": { + "Environment": "israel-dev", + "Name": "israel-storage-vpc-sb-us-east-2a", + "Terraform": "true" + }, + "tags_all": { + "Environment": "israel-dev", + "Name": "israel-storage-vpc-sb-us-east-2a", + "Terraform": "true" + }, + "timeouts": null, + "vpc": true + }, + "sensitive_attributes": [], + "private": "eyJlMmJmYjczMC1lY2FhLTExZTYtOGY4OC0zNDM2M2JjN2M0YzAiOnsiZGVsZXRlIjoxODAwMDAwMDAwMDAsInJlYWQiOjkwMDAwMDAwMDAwMCwidXBkYXRlIjozMDAwMDAwMDAwMDB9fQ==", + "dependencies": [ + "data.aws_availability_zones.available", + "module.vpc.aws_internet_gateway.this", + "module.vpc.aws_vpc.this", + "module.vpc.aws_vpc_ipv4_cidr_block_association.this" + ] + }, + { + "index_key": 1, + "schema_version": 0, + "attributes": { + "address": null, + "allocation_id": "eipalloc-0fbb3202e470c526f", + "associate_with_private_ip": null, + "association_id": "eipassoc-0687a4816cd6a5b2c", + "carrier_ip": "", + "customer_owned_ip": "", + "customer_owned_ipv4_pool": "", + "domain": "vpc", + "id": "eipalloc-0fbb3202e470c526f", + "instance": "", + "network_border_group": "us-east-2", + "network_interface": "eni-0c0e4c5688fd033fb", + "private_dns": "ip-10-0-4-193.us-east-2.compute.internal", + "private_ip": "10.0.4.193", + "public_dns": "ec2-3-139-143-176.us-east-2.compute.amazonaws.com", + "public_ip": "3.139.143.176", + "public_ipv4_pool": "amazon", + "tags": { + "Environment": "israel-dev", + "Name": "israel-storage-vpc-sb-us-east-2b", + "Terraform": "true" + }, + "tags_all": { + "Environment": "israel-dev", + "Name": "israel-storage-vpc-sb-us-east-2b", + "Terraform": "true" + }, + "timeouts": null, + "vpc": true + }, + "sensitive_attributes": [], + "private": "eyJlMmJmYjczMC1lY2FhLTExZTYtOGY4OC0zNDM2M2JjN2M0YzAiOnsiZGVsZXRlIjoxODAwMDAwMDAwMDAsInJlYWQiOjkwMDAwMDAwMDAwMCwidXBkYXRlIjozMDAwMDAwMDAwMDB9fQ==", + "dependencies": [ + "data.aws_availability_zones.available", + "module.vpc.aws_internet_gateway.this", + "module.vpc.aws_vpc.this", + "module.vpc.aws_vpc_ipv4_cidr_block_association.this" + ] + } + ] + }, + { + "module": "module.vpc", + "mode": "managed", + "type": "aws_internet_gateway", + "name": "this", + "provider": "provider[\"registry.terraform.io/hashicorp/aws\"]", + "instances": [ + { + "index_key": 0, + "schema_version": 0, + "attributes": { + "arn": "arn:aws:ec2:us-east-2:565979732541:internet-gateway/igw-016f20e890fd6362a", + "id": "igw-016f20e890fd6362a", + "owner_id": "565979732541", + "tags": { + "Environment": "israel-dev", + "Name": "israel-storage-vpc-sb", + "Terraform": "true" + }, + "tags_all": { + "Environment": "israel-dev", + "Name": "israel-storage-vpc-sb", + "Terraform": "true" + }, + "timeouts": null, + "vpc_id": "vpc-0365a16226384093d" + }, + "sensitive_attributes": [], + "private": "eyJlMmJmYjczMC1lY2FhLTExZTYtOGY4OC0zNDM2M2JjN2M0YzAiOnsiY3JlYXRlIjoxMjAwMDAwMDAwMDAwLCJkZWxldGUiOjEyMDAwMDAwMDAwMDAsInVwZGF0ZSI6MTIwMDAwMDAwMDAwMH19", + "dependencies": [ + "module.vpc.aws_vpc.this", + "module.vpc.aws_vpc_ipv4_cidr_block_association.this" + ] + } + ] + }, + { + "module": "module.vpc", + "mode": "managed", + "type": "aws_nat_gateway", + "name": "this", + "provider": "provider[\"registry.terraform.io/hashicorp/aws\"]", + "instances": [ + { + "index_key": 0, + "schema_version": 0, + "attributes": { + "allocation_id": "eipalloc-0ef8b284c6526df5f", + "association_id": "eipassoc-06976cd7160933474", + "connectivity_type": "public", + "id": "nat-011d6cb5053da22e5", + "network_interface_id": "eni-0d67bbed1e57bb9e3", + "private_ip": "10.0.2.146", + "public_ip": "3.147.91.47", + "secondary_allocation_ids": [], + "secondary_private_ip_address_count": 0, + "secondary_private_ip_addresses": [], + "subnet_id": "subnet-0624fa4ce4fc3c03c", + "tags": { + "Environment": "israel-dev", + "Name": "israel-storage-vpc-sb-us-east-2a", + "Terraform": "true" + }, + "tags_all": { + "Environment": "israel-dev", + "Name": "israel-storage-vpc-sb-us-east-2a", + "Terraform": "true" + }, + "timeouts": null + }, + "sensitive_attributes": [], + "private": "eyJlMmJmYjczMC1lY2FhLTExZTYtOGY4OC0zNDM2M2JjN2M0YzAiOnsiY3JlYXRlIjo2MDAwMDAwMDAwMDAsImRlbGV0ZSI6MTgwMDAwMDAwMDAwMCwidXBkYXRlIjo2MDAwMDAwMDAwMDB9fQ==", + "dependencies": [ + "data.aws_availability_zones.available", + "module.vpc.aws_eip.nat", + "module.vpc.aws_internet_gateway.this", + "module.vpc.aws_subnet.public", + "module.vpc.aws_vpc.this", + "module.vpc.aws_vpc_ipv4_cidr_block_association.this" + ] + }, + { + "index_key": 1, + "schema_version": 0, + "attributes": { + "allocation_id": "eipalloc-0fbb3202e470c526f", + "association_id": "eipassoc-0687a4816cd6a5b2c", + "connectivity_type": "public", + "id": "nat-0954030e753e3a143", + "network_interface_id": "eni-0c0e4c5688fd033fb", + "private_ip": "10.0.4.193", + "public_ip": "3.139.143.176", + "secondary_allocation_ids": [], + "secondary_private_ip_address_count": 0, + "secondary_private_ip_addresses": [], + "subnet_id": "subnet-0543a02417c794f33", + "tags": { + "Environment": "israel-dev", + "Name": "israel-storage-vpc-sb-us-east-2b", + "Terraform": "true" + }, + "tags_all": { + "Environment": "israel-dev", + "Name": "israel-storage-vpc-sb-us-east-2b", + "Terraform": "true" + }, + "timeouts": null + }, + "sensitive_attributes": [], + "private": "eyJlMmJmYjczMC1lY2FhLTExZTYtOGY4OC0zNDM2M2JjN2M0YzAiOnsiY3JlYXRlIjo2MDAwMDAwMDAwMDAsImRlbGV0ZSI6MTgwMDAwMDAwMDAwMCwidXBkYXRlIjo2MDAwMDAwMDAwMDB9fQ==", + "dependencies": [ + "data.aws_availability_zones.available", + "module.vpc.aws_eip.nat", + "module.vpc.aws_internet_gateway.this", + "module.vpc.aws_subnet.public", + "module.vpc.aws_vpc.this", + "module.vpc.aws_vpc_ipv4_cidr_block_association.this" + ] + } + ] + }, + { + "module": "module.vpc", + "mode": "managed", + "type": "aws_route", + "name": "private_nat_gateway", + "provider": "provider[\"registry.terraform.io/hashicorp/aws\"]", + "instances": [ + { + "index_key": 0, + "schema_version": 0, + "attributes": { + "carrier_gateway_id": "", + "core_network_arn": "", + "destination_cidr_block": "0.0.0.0/0", + "destination_ipv6_cidr_block": "", + "destination_prefix_list_id": "", + "egress_only_gateway_id": "", + "gateway_id": "", + "id": "r-rtb-0eaafcaf46c0cbcb41080289494", + "instance_id": "", + "instance_owner_id": "", + "local_gateway_id": "", + "nat_gateway_id": "nat-011d6cb5053da22e5", + "network_interface_id": "", + "origin": "CreateRoute", + "route_table_id": "rtb-0eaafcaf46c0cbcb4", + "state": "active", + "timeouts": { + "create": "5m", + "delete": null, + "update": null + }, + "transit_gateway_id": "", + "vpc_endpoint_id": "", + "vpc_peering_connection_id": "" + }, + "sensitive_attributes": [], + "private": "eyJlMmJmYjczMC1lY2FhLTExZTYtOGY4OC0zNDM2M2JjN2M0YzAiOnsiY3JlYXRlIjozMDAwMDAwMDAwMDAsImRlbGV0ZSI6MzAwMDAwMDAwMDAwLCJ1cGRhdGUiOjEyMDAwMDAwMDAwMH19", + "dependencies": [ + "data.aws_availability_zones.available", + "module.vpc.aws_eip.nat", + "module.vpc.aws_internet_gateway.this", + "module.vpc.aws_nat_gateway.this", + "module.vpc.aws_route_table.private", + "module.vpc.aws_subnet.public", + "module.vpc.aws_vpc.this", + "module.vpc.aws_vpc_ipv4_cidr_block_association.this" + ] + }, + { + "index_key": 1, + "schema_version": 0, + "attributes": { + "carrier_gateway_id": "", + "core_network_arn": "", + "destination_cidr_block": "0.0.0.0/0", + "destination_ipv6_cidr_block": "", + "destination_prefix_list_id": "", + "egress_only_gateway_id": "", + "gateway_id": "", + "id": "r-rtb-078cd58f901cccf7c1080289494", + "instance_id": "", + "instance_owner_id": "", + "local_gateway_id": "", + "nat_gateway_id": "nat-0954030e753e3a143", + "network_interface_id": "", + "origin": "CreateRoute", + "route_table_id": "rtb-078cd58f901cccf7c", + "state": "active", + "timeouts": { + "create": "5m", + "delete": null, + "update": null + }, + "transit_gateway_id": "", + "vpc_endpoint_id": "", + "vpc_peering_connection_id": "" + }, + "sensitive_attributes": [], + "private": "eyJlMmJmYjczMC1lY2FhLTExZTYtOGY4OC0zNDM2M2JjN2M0YzAiOnsiY3JlYXRlIjozMDAwMDAwMDAwMDAsImRlbGV0ZSI6MzAwMDAwMDAwMDAwLCJ1cGRhdGUiOjEyMDAwMDAwMDAwMH19", + "dependencies": [ + "data.aws_availability_zones.available", + "module.vpc.aws_eip.nat", + "module.vpc.aws_internet_gateway.this", + "module.vpc.aws_nat_gateway.this", + "module.vpc.aws_route_table.private", + "module.vpc.aws_subnet.public", + "module.vpc.aws_vpc.this", + "module.vpc.aws_vpc_ipv4_cidr_block_association.this" + ] + } + ] + }, + { + "module": "module.vpc", + "mode": "managed", + "type": "aws_route", + "name": "public_internet_gateway", + "provider": "provider[\"registry.terraform.io/hashicorp/aws\"]", + "instances": [ + { + "index_key": 0, + "schema_version": 0, + "attributes": { + "carrier_gateway_id": "", + "core_network_arn": "", + "destination_cidr_block": "0.0.0.0/0", + "destination_ipv6_cidr_block": "", + "destination_prefix_list_id": "", + "egress_only_gateway_id": "", + "gateway_id": "igw-016f20e890fd6362a", + "id": "r-rtb-0b7cab6cce1c6a6aa1080289494", + "instance_id": "", + "instance_owner_id": "", + "local_gateway_id": "", + "nat_gateway_id": "", + "network_interface_id": "", + "origin": "CreateRoute", + "route_table_id": "rtb-0b7cab6cce1c6a6aa", + "state": "active", + "timeouts": { + "create": "5m", + "delete": null, + "update": null + }, + "transit_gateway_id": "", + "vpc_endpoint_id": "", + "vpc_peering_connection_id": "" + }, + "sensitive_attributes": [], + "private": "eyJlMmJmYjczMC1lY2FhLTExZTYtOGY4OC0zNDM2M2JjN2M0YzAiOnsiY3JlYXRlIjozMDAwMDAwMDAwMDAsImRlbGV0ZSI6MzAwMDAwMDAwMDAwLCJ1cGRhdGUiOjEyMDAwMDAwMDAwMH19", + "dependencies": [ + "module.vpc.aws_internet_gateway.this", + "module.vpc.aws_route_table.public", + "module.vpc.aws_vpc.this", + "module.vpc.aws_vpc_ipv4_cidr_block_association.this" + ] + } + ] + }, + { + "module": "module.vpc", + "mode": "managed", + "type": "aws_route_table", + "name": "private", + "provider": "provider[\"registry.terraform.io/hashicorp/aws\"]", + "instances": [ + { + "index_key": 0, + "schema_version": 0, + "attributes": { + "arn": "arn:aws:ec2:us-east-2:565979732541:route-table/rtb-0eaafcaf46c0cbcb4", + "id": "rtb-0eaafcaf46c0cbcb4", + "owner_id": "565979732541", + "propagating_vgws": [], + "route": [ + { + "carrier_gateway_id": "", + "cidr_block": "0.0.0.0/0", + "core_network_arn": "", + "destination_prefix_list_id": "", + "egress_only_gateway_id": "", + "gateway_id": "", + "ipv6_cidr_block": "", + "local_gateway_id": "", + "nat_gateway_id": "nat-011d6cb5053da22e5", + "network_interface_id": "", + "transit_gateway_id": "", + "vpc_endpoint_id": "", + "vpc_peering_connection_id": "" + } + ], + "tags": { + "Environment": "israel-dev", + "Name": "israel-storage-vpc-sb-private-us-east-2a", + "Terraform": "true" + }, + "tags_all": { + "Environment": "israel-dev", + "Name": "israel-storage-vpc-sb-private-us-east-2a", + "Terraform": "true" + }, + "timeouts": null, + "vpc_id": "vpc-0365a16226384093d" + }, + "sensitive_attributes": [], + "private": "eyJlMmJmYjczMC1lY2FhLTExZTYtOGY4OC0zNDM2M2JjN2M0YzAiOnsiY3JlYXRlIjozMDAwMDAwMDAwMDAsImRlbGV0ZSI6MzAwMDAwMDAwMDAwLCJ1cGRhdGUiOjEyMDAwMDAwMDAwMH19", + "dependencies": [ + "data.aws_availability_zones.available", + "module.vpc.aws_vpc.this", + "module.vpc.aws_vpc_ipv4_cidr_block_association.this" + ] + }, + { + "index_key": 1, + "schema_version": 0, + "attributes": { + "arn": "arn:aws:ec2:us-east-2:565979732541:route-table/rtb-078cd58f901cccf7c", + "id": "rtb-078cd58f901cccf7c", + "owner_id": "565979732541", + "propagating_vgws": [], + "route": [ + { + "carrier_gateway_id": "", + "cidr_block": "0.0.0.0/0", + "core_network_arn": "", + "destination_prefix_list_id": "", + "egress_only_gateway_id": "", + "gateway_id": "", + "ipv6_cidr_block": "", + "local_gateway_id": "", + "nat_gateway_id": "nat-0954030e753e3a143", + "network_interface_id": "", + "transit_gateway_id": "", + "vpc_endpoint_id": "", + "vpc_peering_connection_id": "" + } + ], + "tags": { + "Environment": "israel-dev", + "Name": "israel-storage-vpc-sb-private-us-east-2b", + "Terraform": "true" + }, + "tags_all": { + "Environment": "israel-dev", + "Name": "israel-storage-vpc-sb-private-us-east-2b", + "Terraform": "true" + }, + "timeouts": null, + "vpc_id": "vpc-0365a16226384093d" + }, + "sensitive_attributes": [], + "private": "eyJlMmJmYjczMC1lY2FhLTExZTYtOGY4OC0zNDM2M2JjN2M0YzAiOnsiY3JlYXRlIjozMDAwMDAwMDAwMDAsImRlbGV0ZSI6MzAwMDAwMDAwMDAwLCJ1cGRhdGUiOjEyMDAwMDAwMDAwMH19", + "dependencies": [ + "data.aws_availability_zones.available", + "module.vpc.aws_vpc.this", + "module.vpc.aws_vpc_ipv4_cidr_block_association.this" + ] + } + ] + }, + { + "module": "module.vpc", + "mode": "managed", + "type": "aws_route_table", + "name": "public", + "provider": "provider[\"registry.terraform.io/hashicorp/aws\"]", + "instances": [ + { + "index_key": 0, + "schema_version": 0, + "attributes": { + "arn": "arn:aws:ec2:us-east-2:565979732541:route-table/rtb-0b7cab6cce1c6a6aa", + "id": "rtb-0b7cab6cce1c6a6aa", + "owner_id": "565979732541", + "propagating_vgws": [], + "route": [ + { + "carrier_gateway_id": "", + "cidr_block": "0.0.0.0/0", + "core_network_arn": "", + "destination_prefix_list_id": "", + "egress_only_gateway_id": "", + "gateway_id": "igw-016f20e890fd6362a", + "ipv6_cidr_block": "", + "local_gateway_id": "", + "nat_gateway_id": "", + "network_interface_id": "", + "transit_gateway_id": "", + "vpc_endpoint_id": "", + "vpc_peering_connection_id": "" + } + ], + "tags": { + "Environment": "israel-dev", + "Name": "israel-storage-vpc-sb-public", + "Terraform": "true" + }, + "tags_all": { + "Environment": "israel-dev", + "Name": "israel-storage-vpc-sb-public", + "Terraform": "true" + }, + "timeouts": null, + "vpc_id": "vpc-0365a16226384093d" + }, + "sensitive_attributes": [], + "private": "eyJlMmJmYjczMC1lY2FhLTExZTYtOGY4OC0zNDM2M2JjN2M0YzAiOnsiY3JlYXRlIjozMDAwMDAwMDAwMDAsImRlbGV0ZSI6MzAwMDAwMDAwMDAwLCJ1cGRhdGUiOjEyMDAwMDAwMDAwMH19", + "dependencies": [ + "module.vpc.aws_vpc.this", + "module.vpc.aws_vpc_ipv4_cidr_block_association.this" + ] + } + ] + }, + { + "module": "module.vpc", + "mode": "managed", + "type": "aws_route_table_association", + "name": "private", + "provider": "provider[\"registry.terraform.io/hashicorp/aws\"]", + "instances": [ + { + "index_key": 0, + "schema_version": 0, + "attributes": { + "gateway_id": "", + "id": "rtbassoc-0bda8634d6182b7f8", + "route_table_id": "rtb-0eaafcaf46c0cbcb4", + "subnet_id": "subnet-0d4485b4ba30cf005", + "timeouts": null + }, + "sensitive_attributes": [], + "private": "eyJlMmJmYjczMC1lY2FhLTExZTYtOGY4OC0zNDM2M2JjN2M0YzAiOnsiY3JlYXRlIjozMDAwMDAwMDAwMDAsImRlbGV0ZSI6MzAwMDAwMDAwMDAwLCJ1cGRhdGUiOjEyMDAwMDAwMDAwMH19", + "dependencies": [ + "data.aws_availability_zones.available", + "module.vpc.aws_route_table.private", + "module.vpc.aws_subnet.private", + "module.vpc.aws_vpc.this", + "module.vpc.aws_vpc_ipv4_cidr_block_association.this" + ] + }, + { + "index_key": 1, + "schema_version": 0, + "attributes": { + "gateway_id": "", + "id": "rtbassoc-0b72eafed51ff69a9", + "route_table_id": "rtb-078cd58f901cccf7c", + "subnet_id": "subnet-03c180e84f6854a15", + "timeouts": null + }, + "sensitive_attributes": [], + "private": "eyJlMmJmYjczMC1lY2FhLTExZTYtOGY4OC0zNDM2M2JjN2M0YzAiOnsiY3JlYXRlIjozMDAwMDAwMDAwMDAsImRlbGV0ZSI6MzAwMDAwMDAwMDAwLCJ1cGRhdGUiOjEyMDAwMDAwMDAwMH19", + "dependencies": [ + "data.aws_availability_zones.available", + "module.vpc.aws_route_table.private", + "module.vpc.aws_subnet.private", + "module.vpc.aws_vpc.this", + "module.vpc.aws_vpc_ipv4_cidr_block_association.this" + ] + } + ] + }, + { + "module": "module.vpc", + "mode": "managed", + "type": "aws_route_table_association", + "name": "public", + "provider": "provider[\"registry.terraform.io/hashicorp/aws\"]", + "instances": [ + { + "index_key": 0, + "schema_version": 0, + "attributes": { + "gateway_id": "", + "id": "rtbassoc-002767ee122e875be", + "route_table_id": "rtb-0b7cab6cce1c6a6aa", + "subnet_id": "subnet-0624fa4ce4fc3c03c", + "timeouts": null + }, + "sensitive_attributes": [], + "private": "eyJlMmJmYjczMC1lY2FhLTExZTYtOGY4OC0zNDM2M2JjN2M0YzAiOnsiY3JlYXRlIjozMDAwMDAwMDAwMDAsImRlbGV0ZSI6MzAwMDAwMDAwMDAwLCJ1cGRhdGUiOjEyMDAwMDAwMDAwMH19", + "dependencies": [ + "data.aws_availability_zones.available", + "module.vpc.aws_route_table.public", + "module.vpc.aws_subnet.public", + "module.vpc.aws_vpc.this", + "module.vpc.aws_vpc_ipv4_cidr_block_association.this" + ] + }, + { + "index_key": 1, + "schema_version": 0, + "attributes": { + "gateway_id": "", + "id": "rtbassoc-04cbc0eaff751fe18", + "route_table_id": "rtb-0b7cab6cce1c6a6aa", + "subnet_id": "subnet-0543a02417c794f33", + "timeouts": null + }, + "sensitive_attributes": [], + "private": "eyJlMmJmYjczMC1lY2FhLTExZTYtOGY4OC0zNDM2M2JjN2M0YzAiOnsiY3JlYXRlIjozMDAwMDAwMDAwMDAsImRlbGV0ZSI6MzAwMDAwMDAwMDAwLCJ1cGRhdGUiOjEyMDAwMDAwMDAwMH19", + "dependencies": [ + "data.aws_availability_zones.available", + "module.vpc.aws_route_table.public", + "module.vpc.aws_subnet.public", + "module.vpc.aws_vpc.this", + "module.vpc.aws_vpc_ipv4_cidr_block_association.this" + ] + } + ] + }, + { + "module": "module.vpc", + "mode": "managed", + "type": "aws_subnet", + "name": "private", + "provider": "provider[\"registry.terraform.io/hashicorp/aws\"]", + "instances": [ + { + "index_key": 0, + "schema_version": 1, + "attributes": { + "arn": "arn:aws:ec2:us-east-2:565979732541:subnet/subnet-0d4485b4ba30cf005", + "assign_ipv6_address_on_creation": false, + "availability_zone": "us-east-2a", + "availability_zone_id": "use2-az1", + "cidr_block": "10.0.1.0/24", + "customer_owned_ipv4_pool": "", + "enable_dns64": false, + "enable_lni_at_device_index": 0, + "enable_resource_name_dns_a_record_on_launch": false, + "enable_resource_name_dns_aaaa_record_on_launch": false, + "id": "subnet-0d4485b4ba30cf005", + "ipv6_cidr_block": "", + "ipv6_cidr_block_association_id": "", + "ipv6_native": false, + "map_customer_owned_ip_on_launch": false, + "map_public_ip_on_launch": false, + "outpost_arn": "", + "owner_id": "565979732541", + "private_dns_hostname_type_on_launch": "ip-name", + "tags": { + "Environment": "israel-dev", + "Name": "israel-storage-vpc-sb-private-us-east-2a", + "Terraform": "true", + "kubernetes.io/cluster/eks": "shared", + "kubernetes.io/role/internal-elb": "1" + }, + "tags_all": { + "Environment": "israel-dev", + "Name": "israel-storage-vpc-sb-private-us-east-2a", + "Terraform": "true", + "kubernetes.io/cluster/eks": "shared", + "kubernetes.io/role/internal-elb": "1" + }, + "timeouts": null, + "vpc_id": "vpc-0365a16226384093d" + }, + "sensitive_attributes": [], + "private": "eyJlMmJmYjczMC1lY2FhLTExZTYtOGY4OC0zNDM2M2JjN2M0YzAiOnsiY3JlYXRlIjo2MDAwMDAwMDAwMDAsImRlbGV0ZSI6MTIwMDAwMDAwMDAwMH0sInNjaGVtYV92ZXJzaW9uIjoiMSJ9", + "dependencies": [ + "data.aws_availability_zones.available", + "module.vpc.aws_vpc.this", + "module.vpc.aws_vpc_ipv4_cidr_block_association.this" + ], + "create_before_destroy": true + }, + { + "index_key": 1, + "schema_version": 1, + "attributes": { + "arn": "arn:aws:ec2:us-east-2:565979732541:subnet/subnet-03c180e84f6854a15", + "assign_ipv6_address_on_creation": false, + "availability_zone": "us-east-2b", + "availability_zone_id": "use2-az2", + "cidr_block": "10.0.3.0/24", + "customer_owned_ipv4_pool": "", + "enable_dns64": false, + "enable_lni_at_device_index": 0, + "enable_resource_name_dns_a_record_on_launch": false, + "enable_resource_name_dns_aaaa_record_on_launch": false, + "id": "subnet-03c180e84f6854a15", + "ipv6_cidr_block": "", + "ipv6_cidr_block_association_id": "", + "ipv6_native": false, + "map_customer_owned_ip_on_launch": false, + "map_public_ip_on_launch": false, + "outpost_arn": "", + "owner_id": "565979732541", + "private_dns_hostname_type_on_launch": "ip-name", + "tags": { + "Environment": "israel-dev", + "Name": "israel-storage-vpc-sb-private-us-east-2b", + "Terraform": "true", + "kubernetes.io/cluster/eks": "shared", + "kubernetes.io/role/internal-elb": "1" + }, + "tags_all": { + "Environment": "israel-dev", + "Name": "israel-storage-vpc-sb-private-us-east-2b", + "Terraform": "true", + "kubernetes.io/cluster/eks": "shared", + "kubernetes.io/role/internal-elb": "1" + }, + "timeouts": null, + "vpc_id": "vpc-0365a16226384093d" + }, + "sensitive_attributes": [], + "private": "eyJlMmJmYjczMC1lY2FhLTExZTYtOGY4OC0zNDM2M2JjN2M0YzAiOnsiY3JlYXRlIjo2MDAwMDAwMDAwMDAsImRlbGV0ZSI6MTIwMDAwMDAwMDAwMH0sInNjaGVtYV92ZXJzaW9uIjoiMSJ9", + "dependencies": [ + "data.aws_availability_zones.available", + "module.vpc.aws_vpc.this", + "module.vpc.aws_vpc_ipv4_cidr_block_association.this" + ], + "create_before_destroy": true + } + ] + }, + { + "module": "module.vpc", + "mode": "managed", + "type": "aws_subnet", + "name": "public", + "provider": "provider[\"registry.terraform.io/hashicorp/aws\"]", + "instances": [ + { + "index_key": 0, + "schema_version": 1, + "attributes": { + "arn": "arn:aws:ec2:us-east-2:565979732541:subnet/subnet-0624fa4ce4fc3c03c", + "assign_ipv6_address_on_creation": false, + "availability_zone": "us-east-2a", + "availability_zone_id": "use2-az1", + "cidr_block": "10.0.2.0/24", + "customer_owned_ipv4_pool": "", + "enable_dns64": false, + "enable_lni_at_device_index": 0, + "enable_resource_name_dns_a_record_on_launch": false, + "enable_resource_name_dns_aaaa_record_on_launch": false, + "id": "subnet-0624fa4ce4fc3c03c", + "ipv6_cidr_block": "", + "ipv6_cidr_block_association_id": "", + "ipv6_native": false, + "map_customer_owned_ip_on_launch": false, + "map_public_ip_on_launch": true, + "outpost_arn": "", + "owner_id": "565979732541", + "private_dns_hostname_type_on_launch": "ip-name", + "tags": { + "Environment": "israel-dev", + "Name": "israel-storage-vpc-sb-public-us-east-2a", + "Terraform": "true", + "kubernetes.io/cluster/eks": "shared", + "kubernetes.io/role/elb": "1" + }, + "tags_all": { + "Environment": "israel-dev", + "Name": "israel-storage-vpc-sb-public-us-east-2a", + "Terraform": "true", + "kubernetes.io/cluster/eks": "shared", + "kubernetes.io/role/elb": "1" + }, + "timeouts": null, + "vpc_id": "vpc-0365a16226384093d" + }, + "sensitive_attributes": [], + "private": "eyJlMmJmYjczMC1lY2FhLTExZTYtOGY4OC0zNDM2M2JjN2M0YzAiOnsiY3JlYXRlIjo2MDAwMDAwMDAwMDAsImRlbGV0ZSI6MTIwMDAwMDAwMDAwMH0sInNjaGVtYV92ZXJzaW9uIjoiMSJ9", + "dependencies": [ + "data.aws_availability_zones.available", + "module.vpc.aws_vpc.this", + "module.vpc.aws_vpc_ipv4_cidr_block_association.this" + ], + "create_before_destroy": true + }, + { + "index_key": 1, + "schema_version": 1, + "attributes": { + "arn": "arn:aws:ec2:us-east-2:565979732541:subnet/subnet-0543a02417c794f33", + "assign_ipv6_address_on_creation": false, + "availability_zone": "us-east-2b", + "availability_zone_id": "use2-az2", + "cidr_block": "10.0.4.0/24", + "customer_owned_ipv4_pool": "", + "enable_dns64": false, + "enable_lni_at_device_index": 0, + "enable_resource_name_dns_a_record_on_launch": false, + "enable_resource_name_dns_aaaa_record_on_launch": false, + "id": "subnet-0543a02417c794f33", + "ipv6_cidr_block": "", + "ipv6_cidr_block_association_id": "", + "ipv6_native": false, + "map_customer_owned_ip_on_launch": false, + "map_public_ip_on_launch": true, + "outpost_arn": "", + "owner_id": "565979732541", + "private_dns_hostname_type_on_launch": "ip-name", + "tags": { + "Environment": "israel-dev", + "Name": "israel-storage-vpc-sb-public-us-east-2b", + "Terraform": "true", + "kubernetes.io/cluster/eks": "shared", + "kubernetes.io/role/elb": "1" + }, + "tags_all": { + "Environment": "israel-dev", + "Name": "israel-storage-vpc-sb-public-us-east-2b", + "Terraform": "true", + "kubernetes.io/cluster/eks": "shared", + "kubernetes.io/role/elb": "1" + }, + "timeouts": null, + "vpc_id": "vpc-0365a16226384093d" + }, + "sensitive_attributes": [], + "private": "eyJlMmJmYjczMC1lY2FhLTExZTYtOGY4OC0zNDM2M2JjN2M0YzAiOnsiY3JlYXRlIjo2MDAwMDAwMDAwMDAsImRlbGV0ZSI6MTIwMDAwMDAwMDAwMH0sInNjaGVtYV92ZXJzaW9uIjoiMSJ9", + "dependencies": [ + "data.aws_availability_zones.available", + "module.vpc.aws_vpc.this", + "module.vpc.aws_vpc_ipv4_cidr_block_association.this" + ], + "create_before_destroy": true + } + ] + }, + { + "module": "module.vpc", + "mode": "managed", + "type": "aws_vpc", + "name": "this", + "provider": "provider[\"registry.terraform.io/hashicorp/aws\"]", + "instances": [ + { + "index_key": 0, + "schema_version": 1, + "attributes": { + "arn": "arn:aws:ec2:us-east-2:565979732541:vpc/vpc-0365a16226384093d", + "assign_generated_ipv6_cidr_block": false, + "cidr_block": "10.0.0.0/16", + "default_network_acl_id": "acl-0de2087e2d39073a4", + "default_route_table_id": "rtb-0fb4f7f5bd4340746", + "default_security_group_id": "sg-0a3810d82bbff09bc", + "dhcp_options_id": "dopt-012b99fca0e18d7e2", + "enable_dns_hostnames": true, + "enable_dns_support": true, + "enable_network_address_usage_metrics": false, + "id": "vpc-0365a16226384093d", + "instance_tenancy": "default", + "ipv4_ipam_pool_id": null, + "ipv4_netmask_length": null, + "ipv6_association_id": "", + "ipv6_cidr_block": "", + "ipv6_cidr_block_network_border_group": "", + "ipv6_ipam_pool_id": "", + "ipv6_netmask_length": 0, + "main_route_table_id": "rtb-0fb4f7f5bd4340746", + "owner_id": "565979732541", + "tags": { + "Environment": "israel-dev", + "Name": "israel-storage-vpc-sb", + "Terraform": "true" + }, + "tags_all": { + "Environment": "israel-dev", + "Name": "israel-storage-vpc-sb", + "Terraform": "true" + } + }, + "sensitive_attributes": [], + "private": "eyJzY2hlbWFfdmVyc2lvbiI6IjEifQ==", + "create_before_destroy": true + } + ] + } + ], + "check_results": [] +} diff --git a/locals.tf b/locals.tf index 38c2aa8f..8523462e 100644 --- a/locals.tf +++ b/locals.tf @@ -12,7 +12,7 @@ locals { key_name = { "us-east-1" = "simplyblock-us-east-1.pem" - "us-east-2" = "simplyblock-us-east-2.pem" + "us-east-2" = "simplyblock-xata" "eu-north-1" = "simplyblock-eu-north-1.pem" "eu-west-1" = "simplyblock-eu-west-1.pem" } diff --git a/main.tf b/main.tf index fd80eaf3..d340da8b 100644 --- a/main.tf +++ b/main.tf @@ -3,11 +3,11 @@ module "vpc" { source = "terraform-aws-modules/vpc/aws" name = "${terraform.workspace}-storage-vpc-sb" - cidr = "10.0.0.0/16" + cidr = "10.0.8.0/21" azs = [data.aws_availability_zones.available.names[0], data.aws_availability_zones.available.names[1], ] - private_subnets = ["10.0.1.0/24", "10.0.3.0/24"] - public_subnets = ["10.0.2.0/24", "10.0.4.0/24"] + private_subnets = ["10.0.9.0/24", "10.0.11.0/24"] + public_subnets = ["10.0.10.0/24", "10.0.12.0/24"] map_public_ip_on_launch = true enable_nat_gateway = true @@ -682,7 +682,7 @@ resource "aws_instance" "storage_nodes" { subnet_id = module.vpc.private_subnets[local.az_index] iam_instance_profile = aws_iam_instance_profile.inst_profile.name root_block_device { - volume_size = 45 + volume_size = 80 } tags = { Name = "${terraform.workspace}-storage-${each.value + 1}" diff --git a/outputs.tf b/outputs.tf index 472eee8d..a668865b 100644 --- a/outputs.tf +++ b/outputs.tf @@ -22,10 +22,10 @@ output "key_name" { value = local.selected_key_name } -output "secret_value" { - sensitive = true - value = data.aws_secretsmanager_secret_version.simply.secret_string -} +# output "secret_value" { +# sensitive = true +# value = data.aws_secretsmanager_secret_version.simply.secret_string +# } output "mgmt_node_details" { value = { for i, instance in aws_instance.mgmt_nodes : diff --git a/tfengine.tf b/tfengine.tf index a19bf1ba..cf6aaa2b 100644 --- a/tfengine.tf +++ b/tfengine.tf @@ -15,29 +15,29 @@ data "aws_ami" "this" { } } -resource "aws_autoscaling_group" "tfengine_asg" { - min_size = 1 - max_size = 1 - desired_capacity = 1 - vpc_zone_identifier = [module.vpc.private_subnets[0]] - tag { - key = "Name" - value = "${terraform.workspace}-tfengine" - propagate_at_launch = true - } - tag { - key = "long-term-test" - value = "true" - propagate_at_launch = true - } - lifecycle { - create_before_destroy = true - } - launch_template { - id = aws_launch_template.tfengine_lc.id - version = "$Latest" - } -} +# resource "aws_autoscaling_group" "tfengine_asg" { +# min_size = 1 +# max_size = 1 +# desired_capacity = 1 +# vpc_zone_identifier = [module.vpc.private_subnets[0]] +# tag { +# key = "Name" +# value = "${terraform.workspace}-tfengine" +# propagate_at_launch = true +# } +# tag { +# key = "long-term-test" +# value = "true" +# propagate_at_launch = true +# } +# lifecycle { +# create_before_destroy = true +# } +# launch_template { +# id = aws_launch_template.tfengine_lc.id +# version = "$Latest" +# } +# } resource "aws_launch_template" "tfengine_lc" { name_prefix = "tfengine" @@ -208,10 +208,10 @@ resource "aws_iam_role_policy_attachment" "AmazonSSMManagedInstanceCore" { } # NOTE: Terraform uses the same role that we use to deploy the cluster to the customer's account -resource "aws_iam_role_policy_attachment" "sbdeployPolicy" { - policy_arn = "arn:aws:iam::${local.account_id}:policy/sbdeployPolicy" - role = aws_iam_role.tfengine.name -} +# resource "aws_iam_role_policy_attachment" "sbdeployPolicy" { +# policy_arn = "arn:aws:iam::${local.account_id}:policy/sbdeployPolicy" +# role = aws_iam_role.tfengine.name +# } # attach policy resource "aws_iam_role_policy_attachment" "s3policy" { diff --git a/variables.tf b/variables.tf index 65d5afb6..9eea67b3 100644 --- a/variables.tf +++ b/variables.tf @@ -15,7 +15,7 @@ variable "az" { } variable "env" { - default = "dev" + default = "staging" type = string } From 9a0f6e052ea88ade771ee714a114f7b63eb1215b Mon Sep 17 00:00:00 2001 From: geoffrey1330 Date: Mon, 4 Nov 2024 14:43:59 +0100 Subject: [PATCH 04/15] updated bucket name --- create_cluster.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/create_cluster.sh b/create_cluster.sh index 088f00de..c445f436 100644 --- a/create_cluster.sh +++ b/create_cluster.sh @@ -2,7 +2,7 @@ namespace="simplyblock" sbcli_cmd="sbcli-dev" -export TFSTATE_BUCKET=qdrant-simplyblock-staging-infra +export TFSTATE_BUCKET=xata-simplyblock-staging-infra export TFSTATE_KEY=staging/controlplane export TFSTATE_REGION=us-east-2 From 819a0c02cf1ccd78ba58f0acde57ebbb0712b3b0 Mon Sep 17 00:00:00 2001 From: geoffrey1330 Date: Mon, 4 Nov 2024 14:45:28 +0100 Subject: [PATCH 05/15] remove errored state --- errored.tfstate | 4597 ----------------------------------------------- 1 file changed, 4597 deletions(-) delete mode 100644 errored.tfstate diff --git a/errored.tfstate b/errored.tfstate deleted file mode 100644 index 91575ca1..00000000 --- a/errored.tfstate +++ /dev/null @@ -1,4597 +0,0 @@ -{ - "version": 4, - "terraform_version": "1.6.5", - "serial": 6445, - "lineage": "bd170668-716c-bd8b-71c2-078b758fc11a", - "outputs": { - "api_invoke_url": { - "value": "https://y9jloxzybl.execute-api.us-east-2.amazonaws.com/", - "type": "string" - }, - "bastion_public_ip": { - "value": "18.117.159.246", - "type": "string" - }, - "extra_nodes_private_ips": { - "value": "10.0.4.160", - "type": "string" - }, - "extra_nodes_public_ips": { - "value": "3.16.38.213", - "type": "string" - }, - "grafana_invoke_url": { - "value": "https://y9jloxzybl.execute-api.us-east-2.amazonaws.com/grafana", - "type": "string" - }, - "graylog_invoke_url": { - "value": "https://y9jloxzybl.execute-api.us-east-2.amazonaws.com/graylog", - "type": "string" - }, - "key_name": { - "value": "simplyblock-us-east-2.pem", - "type": "string" - }, - "mgmt_node_details": { - "value": { - "israel-mgmt-1": { - "private_ip": "10.0.3.110", - "public_ip": "", - "type": "m5.large" - } - }, - "type": [ - "object", - { - "israel-mgmt-1": [ - "object", - { - "private_ip": "string", - "public_ip": "string", - "type": "string" - } - ] - } - ] - }, - "mgmt_private_ips": { - "value": "10.0.3.110", - "type": "string" - }, - "mgmt_public_ips": { - "value": "", - "type": "string" - }, - "secret_value": { - "value": "-----BEGIN OPENSSH PRIVATE KEY-----\nb3BlbnNzaC1rZXktdjEAAAAABG5vbmUAAAAEbm9uZQAAAAAAAAABAAAAMwAAAAtz\nc2gtZWQyNTUxOQAAACA3Vn/Aq5mZiP9gsWHIROz4SfTqMIZxvlbTJusvgjLMowAA\nAIjs64g17OuINQAAAAtzc2gtZWQyNTUxOQAAACA3Vn/Aq5mZiP9gsWHIROz4SfTq\nMIZxvlbTJusvgjLMowAAAEAwUQIBATAFBgMrZXAEIgQgy3b2RGthAnDiTucFNF4s\npzdWf8CrmZmI/2CxYchE7PhJ9OowhnG+VtMm6y+CMsyjAAAAAAECAwQF\n-----END OPENSSH PRIVATE KEY-----", - "type": "string", - "sensitive": true - }, - "storage_node_details": { - "value": { - "israel-storage-1": { - "availability_zone": "us-east-2b", - "private_ip": "10.0.3.225", - "public_ip": "", - "type": "m7gd.8xlarge" - }, - "israel-storage-2": { - "availability_zone": "us-east-2b", - "private_ip": "10.0.3.117", - "public_ip": "", - "type": "m7gd.8xlarge" - }, - "israel-storage-3": { - "availability_zone": "us-east-2b", - "private_ip": "10.0.3.135", - "public_ip": "", - "type": "m7gd.8xlarge" - }, - "israel-storage-4": { - "availability_zone": "us-east-2b", - "private_ip": "10.0.3.133", - "public_ip": "", - "type": "m7gd.8xlarge" - }, - "israel-storage-5": { - "availability_zone": "us-east-2b", - "private_ip": "10.0.3.181", - "public_ip": "", - "type": "m7gd.8xlarge" - } - }, - "type": [ - "object", - { - "israel-storage-1": [ - "object", - { - "availability_zone": "string", - "private_ip": "string", - "public_ip": "string", - "type": "string" - } - ], - "israel-storage-2": [ - "object", - { - "availability_zone": "string", - "private_ip": "string", - "public_ip": "string", - "type": "string" - } - ], - "israel-storage-3": [ - "object", - { - "availability_zone": "string", - "private_ip": "string", - "public_ip": "string", - "type": "string" - } - ], - "israel-storage-4": [ - "object", - { - "availability_zone": "string", - "private_ip": "string", - "public_ip": "string", - "type": "string" - } - ], - "israel-storage-5": [ - "object", - { - "availability_zone": "string", - "private_ip": "string", - "public_ip": "string", - "type": "string" - } - ] - } - ] - }, - "storage_private_ips": { - "value": "10.0.3.225 10.0.3.117 10.0.3.135 10.0.3.133 10.0.3.181", - "type": "string" - }, - "storage_public_ips": { - "value": " ", - "type": "string" - }, - "tfengine_logs": { - "value": "simplyblock-tfengine-logs-165a52ea96", - "type": "string" - } - }, - "resources": [ - { - "mode": "data", - "type": "aws_ami", - "name": "this", - "provider": "provider[\"registry.terraform.io/hashicorp/aws\"]", - "instances": [ - { - "schema_version": 0, - "attributes": { - "architecture": "x86_64", - "arn": "arn:aws:ec2:us-east-2::image/ami-050cd642fd83388e4", - "block_device_mappings": [ - { - "device_name": "/dev/xvda", - "ebs": { - "delete_on_termination": "true", - "encrypted": "false", - "iops": "3000", - "snapshot_id": "snap-06d3e9d856ddfad76", - "throughput": "125", - "volume_size": "8", - "volume_type": "gp3" - }, - "no_device": "", - "virtual_name": "" - } - ], - "boot_mode": "uefi-preferred", - "creation_date": "2024-10-11T16:52:33.000Z", - "deprecation_time": "2025-01-09T16:53:00.000Z", - "description": "Amazon Linux 2023 AMI 2023.6.20241010.0 x86_64 HVM kernel-6.1", - "ena_support": true, - "executable_users": null, - "filter": [ - { - "name": "architecture", - "values": [ - "x86_64" - ] - }, - { - "name": "name", - "values": [ - "al2023-ami-2023*" - ] - } - ], - "hypervisor": "xen", - "id": "ami-050cd642fd83388e4", - "image_id": "ami-050cd642fd83388e4", - "image_location": "amazon/al2023-ami-2023.6.20241010.0-kernel-6.1-x86_64", - "image_owner_alias": "amazon", - "image_type": "machine", - "imds_support": "v2.0", - "include_deprecated": false, - "kernel_id": "", - "most_recent": true, - "name": "al2023-ami-2023.6.20241010.0-kernel-6.1-x86_64", - "name_regex": null, - "owner_id": "137112412989", - "owners": [ - "amazon" - ], - "platform": "", - "platform_details": "Linux/UNIX", - "product_codes": [], - "public": true, - "ramdisk_id": "", - "root_device_name": "/dev/xvda", - "root_device_type": "ebs", - "root_snapshot_id": "snap-06d3e9d856ddfad76", - "sriov_net_support": "simple", - "state": "available", - "state_reason": { - "code": "UNSET", - "message": "UNSET" - }, - "tags": {}, - "timeouts": null, - "tpm_support": "", - "usage_operation": "RunInstances", - "virtualization_type": "hvm" - }, - "sensitive_attributes": [] - } - ] - }, - { - "mode": "data", - "type": "aws_availability_zones", - "name": "available", - "provider": "provider[\"registry.terraform.io/hashicorp/aws\"]", - "instances": [ - { - "schema_version": 0, - "attributes": { - "all_availability_zones": null, - "exclude_names": null, - "exclude_zone_ids": null, - "filter": null, - "group_names": [ - "us-east-2" - ], - "id": "us-east-2", - "names": [ - "us-east-2a", - "us-east-2b", - "us-east-2c" - ], - "state": "available", - "timeouts": null, - "zone_ids": [ - "use2-az1", - "use2-az2", - "use2-az3" - ] - }, - "sensitive_attributes": [] - } - ] - }, - { - "mode": "data", - "type": "aws_caller_identity", - "name": "current", - "provider": "provider[\"registry.terraform.io/hashicorp/aws\"]", - "instances": [ - { - "schema_version": 0, - "attributes": { - "account_id": "565979732541", - "arn": "arn:aws:iam::565979732541:user/geoffrey", - "id": "565979732541", - "user_id": "AIDAYHRYFLI6UBEGYRSII" - }, - "sensitive_attributes": [] - } - ] - }, - { - "mode": "data", - "type": "aws_iam_policy_document", - "name": "assume_role_policy", - "provider": "provider[\"registry.terraform.io/hashicorp/aws\"]", - "instances": [ - { - "schema_version": 0, - "attributes": { - "id": "2851119427", - "json": "{\n \"Version\": \"2012-10-17\",\n \"Statement\": [\n {\n \"Effect\": \"Allow\",\n \"Action\": \"sts:AssumeRole\",\n \"Principal\": {\n \"Service\": \"ec2.amazonaws.com\"\n }\n }\n ]\n}", - "override_json": null, - "override_policy_documents": null, - "policy_id": null, - "source_json": null, - "source_policy_documents": null, - "statement": [ - { - "actions": [ - "sts:AssumeRole" - ], - "condition": [], - "effect": "Allow", - "not_actions": [], - "not_principals": [], - "not_resources": [], - "principals": [ - { - "identifiers": [ - "ec2.amazonaws.com" - ], - "type": "Service" - } - ], - "resources": [], - "sid": "" - } - ], - "version": "2012-10-17" - }, - "sensitive_attributes": [] - } - ] - }, - { - "mode": "data", - "type": "aws_secretsmanager_secret_version", - "name": "simply", - "provider": "provider[\"registry.terraform.io/hashicorp/aws\"]", - "instances": [ - { - "schema_version": 0, - "attributes": { - "arn": "arn:aws:secretsmanager:us-east-2:565979732541:secret:simplyblock-us-east-2.pem-CRZJWv", - "created_date": "2024-04-04T11:49:33Z", - "id": "simplyblock-us-east-2.pem|AWSCURRENT", - "secret_binary": "", - "secret_id": "simplyblock-us-east-2.pem", - "secret_string": "-----BEGIN OPENSSH PRIVATE KEY-----\nb3BlbnNzaC1rZXktdjEAAAAABG5vbmUAAAAEbm9uZQAAAAAAAAABAAAAMwAAAAtz\nc2gtZWQyNTUxOQAAACA3Vn/Aq5mZiP9gsWHIROz4SfTqMIZxvlbTJusvgjLMowAA\nAIjs64g17OuINQAAAAtzc2gtZWQyNTUxOQAAACA3Vn/Aq5mZiP9gsWHIROz4SfTq\nMIZxvlbTJusvgjLMowAAAEAwUQIBATAFBgMrZXAEIgQgy3b2RGthAnDiTucFNF4s\npzdWf8CrmZmI/2CxYchE7PhJ9OowhnG+VtMm6y+CMsyjAAAAAAECAwQF\n-----END OPENSSH PRIVATE KEY-----", - "version_id": "a4c27936-c1d7-4892-85c0-33b892358f25", - "version_stage": "AWSCURRENT", - "version_stages": [ - "AWSCURRENT" - ] - }, - "sensitive_attributes": [] - } - ] - }, - { - "mode": "managed", - "type": "aws_autoscaling_group", - "name": "tfengine_asg", - "provider": "provider[\"registry.terraform.io/hashicorp/aws\"]", - "instances": [ - { - "schema_version": 1, - "attributes": { - "arn": "arn:aws:autoscaling:us-east-2:565979732541:autoScalingGroup:1cebf1a8-7c95-463b-9bfb-e9f01eb30049:autoScalingGroupName/terraform-20241021142212537000000010", - "availability_zones": [ - "us-east-2a" - ], - "capacity_rebalance": false, - "context": "", - "default_cooldown": 300, - "default_instance_warmup": 0, - "desired_capacity": 1, - "desired_capacity_type": "", - "enabled_metrics": [], - "force_delete": false, - "force_delete_warm_pool": false, - "health_check_grace_period": 300, - "health_check_type": "EC2", - "id": "terraform-20241021142212537000000010", - "ignore_failed_scaling_activities": false, - "initial_lifecycle_hook": [], - "instance_maintenance_policy": [], - "instance_refresh": [], - "launch_configuration": "", - "launch_template": [ - { - "id": "lt-0592c1adb2ec17a36", - "name": "tfengine2024102114221133420000000e", - "version": "$Latest" - } - ], - "load_balancers": [], - "max_instance_lifetime": 0, - "max_size": 1, - "metrics_granularity": "1Minute", - "min_elb_capacity": null, - "min_size": 1, - "mixed_instances_policy": [], - "name": "terraform-20241021142212537000000010", - "name_prefix": "terraform-", - "placement_group": "", - "predicted_capacity": 0, - "protect_from_scale_in": false, - "service_linked_role_arn": "arn:aws:iam::565979732541:role/aws-service-role/autoscaling.amazonaws.com/AWSServiceRoleForAutoScaling", - "suspended_processes": [], - "tag": [ - { - "key": "Name", - "propagate_at_launch": true, - "value": "israel-tfengine" - }, - { - "key": "long-term-test", - "propagate_at_launch": true, - "value": "true" - } - ], - "target_group_arns": [], - "termination_policies": [], - "timeouts": null, - "traffic_source": [], - "vpc_zone_identifier": [ - "subnet-0d4485b4ba30cf005" - ], - "wait_for_capacity_timeout": "10m", - "wait_for_elb_capacity": null, - "warm_pool": [], - "warm_pool_size": 0 - }, - "sensitive_attributes": [], - "private": "eyJlMmJmYjczMC1lY2FhLTExZTYtOGY4OC0zNDM2M2JjN2M0YzAiOnsiZGVsZXRlIjo2MDAwMDAwMDAwMDAsInVwZGF0ZSI6NjAwMDAwMDAwMDAwfSwic2NoZW1hX3ZlcnNpb24iOiIxIn0=", - "dependencies": [ - "aws_iam_instance_profile.tfengine", - "aws_iam_role.tfengine", - "aws_launch_template.tfengine_lc", - "aws_security_group.tfengine_sg", - "data.aws_ami.this", - "data.aws_availability_zones.available", - "module.vpc.aws_subnet.private", - "module.vpc.aws_vpc.this", - "module.vpc.aws_vpc_ipv4_cidr_block_association.this" - ], - "create_before_destroy": true - } - ] - }, - { - "mode": "managed", - "type": "aws_iam_instance_profile", - "name": "inst_profile", - "provider": "provider[\"registry.terraform.io/hashicorp/aws\"]", - "instances": [ - { - "schema_version": 0, - "attributes": { - "arn": "arn:aws:iam::565979732541:instance-profile/simplyblock-instance-profile-israel", - "create_date": "2024-10-21T14:21:51Z", - "id": "simplyblock-instance-profile-israel", - "name": "simplyblock-instance-profile-israel", - "name_prefix": "", - "path": "/", - "role": "terraform-20241021142147963500000001", - "tags": {}, - "tags_all": {}, - "unique_id": "AIPAYHRYFLI62VI2ZI7QN" - }, - "sensitive_attributes": [], - "private": "bnVsbA==", - "dependencies": [ - "aws_iam_role.role", - "data.aws_iam_policy_document.assume_role_policy" - ] - } - ] - }, - { - "mode": "managed", - "type": "aws_iam_instance_profile", - "name": "tfengine", - "provider": "provider[\"registry.terraform.io/hashicorp/aws\"]", - "instances": [ - { - "schema_version": 0, - "attributes": { - "arn": "arn:aws:iam::565979732541:instance-profile/terraform-20241021142150560800000003", - "create_date": "2024-10-21T14:21:51Z", - "id": "terraform-20241021142150560800000003", - "name": "terraform-20241021142150560800000003", - "name_prefix": "terraform-", - "path": "/", - "role": "terraform-20241021142147963800000002", - "tags": {}, - "tags_all": {}, - "unique_id": "AIPAYHRYFLI63IHQFHU76" - }, - "sensitive_attributes": [], - "private": "bnVsbA==", - "dependencies": [ - "aws_iam_role.tfengine" - ], - "create_before_destroy": true - } - ] - }, - { - "mode": "managed", - "type": "aws_iam_policy", - "name": "mgmt_policy", - "provider": "provider[\"registry.terraform.io/hashicorp/aws\"]", - "instances": [ - { - "schema_version": 0, - "attributes": { - "arn": "arn:aws:iam::565979732541:policy/israel-mgmt_node_policy", - "description": "Policy for allowing EC2 to communicate with other resources", - "id": "arn:aws:iam::565979732541:policy/israel-mgmt_node_policy", - "name": "israel-mgmt_node_policy", - "name_prefix": "", - "path": "/", - "policy": "{\"Statement\":[{\"Action\":[\"ec2:DescribeAvailabilityZones\",\"ec2:DescribeSubnets\",\"ec2:DescribeNetworkInterfaces\",\"ec2:DescribeInstances\",\"ec2:DescribeSecurityGroups\",\"ec2:DescribeTags\"],\"Effect\":\"Allow\",\"Resource\":\"*\"},{\"Action\":\"sts:GetServiceBearerToken\",\"Effect\":\"Allow\",\"Resource\":\"*\"},{\"Action\":[\"codeartifact:GetAuthorizationToken\",\"codeartifact:GetRepositoryEndpoint\",\"codeartifact:ReadFromRepository\"],\"Effect\":\"Allow\",\"Resource\":[\"arn:aws:codeartifact:eu-west-1:565979732541:repository/simplyblock/sbcli\",\"arn:aws:codeartifact:eu-west-1:565979732541:domain/simplyblock\"]},{\"Action\":[\"ssm:SendCommand\"],\"Effect\":\"Allow\",\"Resource\":[\"arn:aws:ec2:us-east-2:565979732541:instance/*\",\"arn:aws:ssm:us-east-2::document/AWS-RunShellScript\",\"arn:aws:ssm:us-east-2:565979732541:*\"]},{\"Action\":[\"ssm:GetCommandInvocation\"],\"Effect\":\"Allow\",\"Resource\":[\"arn:aws:ssm:us-east-2:565979732541:*\"]},{\"Action\":[\"s3:GetObject\"],\"Effect\":\"Allow\",\"Resource\":[\"arn:aws:s3:::simplyblock-tfengine-logs-165a52ea96/*\",\"arn:aws:s3:::simplyblock-terraform-state-bucket/*\"]},{\"Action\":[\"s3:ListBucket\"],\"Effect\":\"Allow\",\"Resource\":[\"arn:aws:s3:::simplyblock-terraform-state-bucket\"]}],\"Version\":\"2012-10-17\"}", - "policy_id": "ANPAYHRYFLI6TBO6ZAGRH", - "tags": {}, - "tags_all": {} - }, - "sensitive_attributes": [], - "private": "bnVsbA==", - "dependencies": [ - "aws_s3_bucket.tfengine_logs", - "data.aws_caller_identity.current", - "random_id.id" - ] - } - ] - }, - { - "mode": "managed", - "type": "aws_iam_policy", - "name": "tfengine_dynamodb_policy", - "provider": "provider[\"registry.terraform.io/hashicorp/aws\"]", - "instances": [ - { - "schema_version": 0, - "attributes": { - "arn": "arn:aws:iam::565979732541:policy/israel-tfengine_dynamodb_policy", - "description": "S3 policy for tfengine dynamodb", - "id": "arn:aws:iam::565979732541:policy/israel-tfengine_dynamodb_policy", - "name": "israel-tfengine_dynamodb_policy", - "name_prefix": "", - "path": "/", - "policy": "{\"Statement\":[{\"Action\":[\"dynamodb:GetItem\",\"dynamodb:PutItem\"],\"Effect\":\"Allow\",\"Resource\":[\"*\"]}],\"Version\":\"2012-10-17\"}", - "policy_id": "ANPAYHRYFLI6WE45T7KIJ", - "tags": {}, - "tags_all": {} - }, - "sensitive_attributes": [], - "private": "bnVsbA==" - } - ] - }, - { - "mode": "managed", - "type": "aws_iam_policy", - "name": "tfengine_ecr_policy", - "provider": "provider[\"registry.terraform.io/hashicorp/aws\"]", - "instances": [ - { - "schema_version": 0, - "attributes": { - "arn": "arn:aws:iam::565979732541:policy/israel-tfengine_ecr_policy", - "description": "S3 policy for tfengine ecr", - "id": "arn:aws:iam::565979732541:policy/israel-tfengine_ecr_policy", - "name": "israel-tfengine_ecr_policy", - "name_prefix": "", - "path": "/", - "policy": "{\"Statement\":[{\"Action\":[\"ecr:GetDownloadUrlForLayer\",\"ecr:BatchGetImage\",\"ecr:BatchCheckLayerAvailability\",\"ecr:GetAuthorizationToken\"],\"Effect\":\"Allow\",\"Resource\":[\"*\"]}],\"Version\":\"2012-10-17\"}", - "policy_id": "ANPAYHRYFLI6VFXU4JKOK", - "tags": {}, - "tags_all": {} - }, - "sensitive_attributes": [], - "private": "bnVsbA==" - } - ] - }, - { - "mode": "managed", - "type": "aws_iam_policy", - "name": "tfengine_logs_policy", - "provider": "provider[\"registry.terraform.io/hashicorp/aws\"]", - "instances": [ - { - "schema_version": 0, - "attributes": { - "arn": "arn:aws:iam::565979732541:policy/israel-tfengine_logs_policy", - "description": "S3 policy for tfengine israel logs", - "id": "arn:aws:iam::565979732541:policy/israel-tfengine_logs_policy", - "name": "israel-tfengine_logs_policy", - "name_prefix": "", - "path": "/", - "policy": "{\"Statement\":[{\"Action\":[\"s3:PutObject\",\"s3:GetObject\"],\"Effect\":\"Allow\",\"Resource\":[\"arn:aws:s3:::simplyblock-tfengine-logs-165a52ea96/*\",\"arn:aws:s3:::simplyblock-terraform-state-bucket/*\"]},{\"Action\":[\"s3:ListBucket\"],\"Effect\":\"Allow\",\"Resource\":[\"arn:aws:s3:::simplyblock-terraform-state-bucket\"]}],\"Version\":\"2012-10-17\"}", - "policy_id": "ANPAYHRYFLI6VBF6LPLCM", - "tags": {}, - "tags_all": {} - }, - "sensitive_attributes": [], - "private": "bnVsbA==", - "dependencies": [ - "aws_s3_bucket.tfengine_logs", - "random_id.id" - ] - } - ] - }, - { - "mode": "managed", - "type": "aws_iam_role", - "name": "role", - "provider": "provider[\"registry.terraform.io/hashicorp/aws\"]", - "instances": [ - { - "schema_version": 0, - "attributes": { - "arn": "arn:aws:iam::565979732541:role/terraform-20241021142147963500000001", - "assume_role_policy": "{\"Statement\":[{\"Action\":\"sts:AssumeRole\",\"Effect\":\"Allow\",\"Principal\":{\"Service\":\"ec2.amazonaws.com\"}}],\"Version\":\"2012-10-17\"}", - "create_date": "2024-10-21T14:21:49Z", - "description": "", - "force_detach_policies": false, - "id": "terraform-20241021142147963500000001", - "inline_policy": [], - "managed_policy_arns": [ - "arn:aws:iam::565979732541:policy/israel-mgmt_node_policy" - ], - "max_session_duration": 3600, - "name": "terraform-20241021142147963500000001", - "name_prefix": "terraform-", - "path": "/", - "permissions_boundary": "", - "tags": {}, - "tags_all": {}, - "unique_id": "AROAYHRYFLI6QQ2JGIL7E" - }, - "sensitive_attributes": [], - "private": "bnVsbA==", - "dependencies": [ - "data.aws_iam_policy_document.assume_role_policy" - ] - } - ] - }, - { - "mode": "managed", - "type": "aws_iam_role", - "name": "tfengine", - "provider": "provider[\"registry.terraform.io/hashicorp/aws\"]", - "instances": [ - { - "schema_version": 0, - "attributes": { - "arn": "arn:aws:iam::565979732541:role/terraform-20241021142147963800000002", - "assume_role_policy": "{\"Statement\":[{\"Action\":\"sts:AssumeRole\",\"Effect\":\"Allow\",\"Principal\":{\"Service\":\"ec2.amazonaws.com\"}}],\"Version\":\"2012-10-17\"}", - "create_date": "2024-10-21T14:21:49Z", - "description": "", - "force_detach_policies": false, - "id": "terraform-20241021142147963800000002", - "inline_policy": [], - "managed_policy_arns": [ - "arn:aws:iam::565979732541:policy/israel-tfengine_dynamodb_policy", - "arn:aws:iam::565979732541:policy/israel-tfengine_ecr_policy", - "arn:aws:iam::565979732541:policy/israel-tfengine_logs_policy", - "arn:aws:iam::565979732541:policy/sbdeployPolicy", - "arn:aws:iam::aws:policy/AmazonSSMManagedInstanceCore" - ], - "max_session_duration": 3600, - "name": "terraform-20241021142147963800000002", - "name_prefix": "terraform-", - "path": "/", - "permissions_boundary": "", - "tags": {}, - "tags_all": {}, - "unique_id": "AROAYHRYFLI62U4SDMQ5R" - }, - "sensitive_attributes": [], - "private": "bnVsbA==", - "create_before_destroy": true - } - ] - }, - { - "mode": "managed", - "type": "aws_iam_role_policy_attachment", - "name": "AmazonSSMManagedInstanceCore", - "provider": "provider[\"registry.terraform.io/hashicorp/aws\"]", - "instances": [ - { - "schema_version": 0, - "attributes": { - "id": "terraform-20241021142147963800000002-20241021142151310200000007", - "policy_arn": "arn:aws:iam::aws:policy/AmazonSSMManagedInstanceCore", - "role": "terraform-20241021142147963800000002" - }, - "sensitive_attributes": [], - "private": "bnVsbA==", - "dependencies": [ - "aws_iam_role.tfengine" - ] - } - ] - }, - { - "mode": "managed", - "type": "aws_iam_role_policy_attachment", - "name": "ecrpolicy", - "provider": "provider[\"registry.terraform.io/hashicorp/aws\"]", - "instances": [ - { - "schema_version": 0, - "attributes": { - "id": "terraform-20241021142147963800000002-20241021142150974900000006", - "policy_arn": "arn:aws:iam::565979732541:policy/israel-tfengine_ecr_policy", - "role": "terraform-20241021142147963800000002" - }, - "sensitive_attributes": [], - "private": "bnVsbA==", - "dependencies": [ - "aws_iam_policy.tfengine_ecr_policy", - "aws_iam_role.tfengine" - ] - } - ] - }, - { - "mode": "managed", - "type": "aws_iam_role_policy_attachment", - "name": "s3_get_object_attachment", - "provider": "provider[\"registry.terraform.io/hashicorp/aws\"]", - "instances": [ - { - "schema_version": 0, - "attributes": { - "id": "terraform-20241021142147963500000001-20241021142156901700000008", - "policy_arn": "arn:aws:iam::565979732541:policy/israel-mgmt_node_policy", - "role": "terraform-20241021142147963500000001" - }, - "sensitive_attributes": [], - "private": "bnVsbA==", - "dependencies": [ - "aws_iam_policy.mgmt_policy", - "aws_iam_role.role", - "aws_s3_bucket.tfengine_logs", - "data.aws_caller_identity.current", - "data.aws_iam_policy_document.assume_role_policy", - "random_id.id" - ] - } - ] - }, - { - "mode": "managed", - "type": "aws_iam_role_policy_attachment", - "name": "s3policy", - "provider": "provider[\"registry.terraform.io/hashicorp/aws\"]", - "instances": [ - { - "schema_version": 0, - "attributes": { - "id": "terraform-20241021142147963800000002-20241021142156941300000009", - "policy_arn": "arn:aws:iam::565979732541:policy/israel-tfengine_logs_policy", - "role": "terraform-20241021142147963800000002" - }, - "sensitive_attributes": [], - "private": "bnVsbA==", - "dependencies": [ - "aws_iam_policy.tfengine_logs_policy", - "aws_iam_role.tfengine", - "aws_s3_bucket.tfengine_logs", - "random_id.id" - ] - } - ] - }, - { - "mode": "managed", - "type": "aws_iam_role_policy_attachment", - "name": "sbdeployPolicy", - "provider": "provider[\"registry.terraform.io/hashicorp/aws\"]", - "instances": [ - { - "schema_version": 0, - "attributes": { - "id": "terraform-20241021142147963800000002-20241021142150933900000004", - "policy_arn": "arn:aws:iam::565979732541:policy/sbdeployPolicy", - "role": "terraform-20241021142147963800000002" - }, - "sensitive_attributes": [], - "private": "bnVsbA==", - "dependencies": [ - "aws_iam_role.tfengine", - "data.aws_caller_identity.current" - ] - } - ] - }, - { - "mode": "managed", - "type": "aws_iam_role_policy_attachment", - "name": "tfengine_dynamodb_policy", - "provider": "provider[\"registry.terraform.io/hashicorp/aws\"]", - "instances": [ - { - "schema_version": 0, - "attributes": { - "id": "terraform-20241021142147963800000002-20241021142150938100000005", - "policy_arn": "arn:aws:iam::565979732541:policy/israel-tfengine_dynamodb_policy", - "role": "terraform-20241021142147963800000002" - }, - "sensitive_attributes": [], - "private": "bnVsbA==", - "dependencies": [ - "aws_iam_policy.tfengine_dynamodb_policy", - "aws_iam_role.tfengine" - ] - } - ] - }, - { - "mode": "managed", - "type": "aws_instance", - "name": "bastion", - "provider": "provider[\"registry.terraform.io/hashicorp/aws\"]", - "instances": [ - { - "schema_version": 1, - "attributes": { - "ami": "ami-00ff94d69b3ced2aa", - "arn": "arn:aws:ec2:us-east-2:565979732541:instance/i-036b585cd63e2f6e0", - "associate_public_ip_address": true, - "availability_zone": "us-east-2a", - "capacity_reservation_specification": [ - { - "capacity_reservation_preference": "open", - "capacity_reservation_target": [] - } - ], - "cpu_core_count": 1, - "cpu_options": [ - { - "amd_sev_snp": "", - "core_count": 1, - "threads_per_core": 1 - } - ], - "cpu_threads_per_core": 1, - "credit_specification": [ - { - "cpu_credits": "standard" - } - ], - "disable_api_stop": false, - "disable_api_termination": false, - "ebs_block_device": [], - "ebs_optimized": false, - "enclave_options": [ - { - "enabled": false - } - ], - "ephemeral_block_device": [], - "get_password_data": false, - "hibernation": false, - "host_id": "", - "host_resource_group_arn": null, - "iam_instance_profile": "simplyblock-instance-profile-israel", - "id": "i-036b585cd63e2f6e0", - "instance_initiated_shutdown_behavior": "stop", - "instance_lifecycle": "", - "instance_market_options": [], - "instance_state": "running", - "instance_type": "t2.micro", - "ipv6_address_count": 0, - "ipv6_addresses": [], - "key_name": "simplyblock-us-east-2.pem", - "launch_template": [], - "maintenance_options": [ - { - "auto_recovery": "default" - } - ], - "metadata_options": [ - { - "http_endpoint": "enabled", - "http_protocol_ipv6": "disabled", - "http_put_response_hop_limit": 1, - "http_tokens": "optional", - "instance_metadata_tags": "disabled" - } - ], - "monitoring": false, - "network_interface": [], - "outpost_arn": "", - "password_data": "", - "placement_group": "", - "placement_partition_number": 0, - "primary_network_interface_id": "eni-065e85a64e31ddc97", - "private_dns": "ip-10-0-2-7.us-east-2.compute.internal", - "private_dns_name_options": [ - { - "enable_resource_name_dns_a_record": false, - "enable_resource_name_dns_aaaa_record": false, - "hostname_type": "ip-name" - } - ], - "private_ip": "10.0.2.7", - "public_dns": "ec2-18-117-159-246.us-east-2.compute.amazonaws.com", - "public_ip": "18.117.159.246", - "root_block_device": [ - { - "delete_on_termination": true, - "device_name": "/dev/sda1", - "encrypted": false, - "iops": 135, - "kms_key_id": "", - "tags": {}, - "tags_all": {}, - "throughput": 0, - "volume_id": "vol-05fe25b08b4659653", - "volume_size": 45, - "volume_type": "gp2" - } - ], - "secondary_private_ips": [], - "security_groups": [], - "source_dest_check": true, - "spot_instance_request_id": "", - "subnet_id": "subnet-0624fa4ce4fc3c03c", - "tags": { - "Name": "israel-bastion" - }, - "tags_all": { - "Name": "israel-bastion" - }, - "tenancy": "default", - "timeouts": null, - "user_data": null, - "user_data_base64": null, - "user_data_replace_on_change": false, - "volume_tags": null, - "vpc_security_group_ids": [ - "sg-0265fa831715dc772" - ] - }, - "sensitive_attributes": [], - "private": "eyJlMmJmYjczMC1lY2FhLTExZTYtOGY4OC0zNDM2M2JjN2M0YzAiOnsiY3JlYXRlIjo2MDAwMDAwMDAwMDAsImRlbGV0ZSI6MTIwMDAwMDAwMDAwMCwicmVhZCI6OTAwMDAwMDAwMDAwLCJ1cGRhdGUiOjYwMDAwMDAwMDAwMH0sInNjaGVtYV92ZXJzaW9uIjoiMSJ9", - "dependencies": [ - "aws_iam_instance_profile.inst_profile", - "aws_iam_role.role", - "aws_security_group.bastion_sg", - "data.aws_availability_zones.available", - "data.aws_iam_policy_document.assume_role_policy", - "module.vpc.aws_subnet.public", - "module.vpc.aws_vpc.this", - "module.vpc.aws_vpc_ipv4_cidr_block_association.this" - ] - } - ] - }, - { - "mode": "managed", - "type": "aws_instance", - "name": "extra_nodes", - "provider": "provider[\"registry.terraform.io/hashicorp/aws\"]", - "instances": [ - { - "index_key": 0, - "schema_version": 1, - "attributes": { - "ami": "ami-08f9f3bb075432791", - "arn": "arn:aws:ec2:us-east-2:565979732541:instance/i-0b5fa9f6db1ed98eb", - "associate_public_ip_address": true, - "availability_zone": "us-east-2b", - "capacity_reservation_specification": [ - { - "capacity_reservation_preference": "open", - "capacity_reservation_target": [] - } - ], - "cpu_core_count": 4, - "cpu_options": [ - { - "amd_sev_snp": "", - "core_count": 4, - "threads_per_core": 1 - } - ], - "cpu_threads_per_core": 1, - "credit_specification": [], - "disable_api_stop": false, - "disable_api_termination": false, - "ebs_block_device": [], - "ebs_optimized": false, - "enclave_options": [ - { - "enabled": false - } - ], - "ephemeral_block_device": [], - "get_password_data": false, - "hibernation": false, - "host_id": "", - "host_resource_group_arn": null, - "iam_instance_profile": "simplyblock-instance-profile-israel", - "id": "i-0b5fa9f6db1ed98eb", - "instance_initiated_shutdown_behavior": "stop", - "instance_lifecycle": "", - "instance_market_options": [], - "instance_state": "running", - "instance_type": "m6gd.xlarge", - "ipv6_address_count": 0, - "ipv6_addresses": [], - "key_name": "simplyblock-us-east-2.pem", - "launch_template": [], - "maintenance_options": [ - { - "auto_recovery": "default" - } - ], - "metadata_options": [ - { - "http_endpoint": "enabled", - "http_protocol_ipv6": "disabled", - "http_put_response_hop_limit": 1, - "http_tokens": "optional", - "instance_metadata_tags": "disabled" - } - ], - "monitoring": false, - "network_interface": [], - "outpost_arn": "", - "password_data": "", - "placement_group": "", - "placement_partition_number": 0, - "primary_network_interface_id": "eni-09a247447d27095e2", - "private_dns": "ip-10-0-4-160.us-east-2.compute.internal", - "private_dns_name_options": [ - { - "enable_resource_name_dns_a_record": false, - "enable_resource_name_dns_aaaa_record": false, - "hostname_type": "ip-name" - } - ], - "private_ip": "10.0.4.160", - "public_dns": "ec2-3-16-38-213.us-east-2.compute.amazonaws.com", - "public_ip": "3.16.38.213", - "root_block_device": [ - { - "delete_on_termination": true, - "device_name": "/dev/sda1", - "encrypted": false, - "iops": 3000, - "kms_key_id": "", - "tags": {}, - "tags_all": {}, - "throughput": 125, - "volume_id": "vol-0eec593edb822c0bf", - "volume_size": 45, - "volume_type": "gp3" - } - ], - "secondary_private_ips": [], - "security_groups": [], - "source_dest_check": true, - "spot_instance_request_id": "", - "subnet_id": "subnet-0543a02417c794f33", - "tags": { - "Name": "israel-k8scluster-1" - }, - "tags_all": { - "Name": "israel-k8scluster-1" - }, - "tenancy": "default", - "timeouts": null, - "user_data": "dc4f10a00e15e488916c8c00195200e0ebf91b5e", - "user_data_base64": null, - "user_data_replace_on_change": false, - "volume_tags": null, - "vpc_security_group_ids": [ - "sg-0254cbe75e9f87a8e" - ] - }, - "sensitive_attributes": [], - "private": "eyJlMmJmYjczMC1lY2FhLTExZTYtOGY4OC0zNDM2M2JjN2M0YzAiOnsiY3JlYXRlIjo2MDAwMDAwMDAwMDAsImRlbGV0ZSI6MTIwMDAwMDAwMDAwMCwicmVhZCI6OTAwMDAwMDAwMDAwLCJ1cGRhdGUiOjYwMDAwMDAwMDAwMH0sInNjaGVtYV92ZXJzaW9uIjoiMSJ9", - "dependencies": [ - "aws_iam_instance_profile.inst_profile", - "aws_iam_role.role", - "aws_security_group.api_gateway_sg", - "aws_security_group.bastion_sg", - "aws_security_group.extra_nodes_sg", - "aws_security_group.loadbalancer_sg", - "aws_security_group.mgmt_node_sg", - "data.aws_availability_zones.available", - "data.aws_iam_policy_document.assume_role_policy", - "module.vpc.aws_subnet.public", - "module.vpc.aws_vpc.this", - "module.vpc.aws_vpc_ipv4_cidr_block_association.this" - ] - } - ] - }, - { - "mode": "managed", - "type": "aws_instance", - "name": "mgmt_nodes", - "provider": "provider[\"registry.terraform.io/hashicorp/aws\"]", - "instances": [ - { - "index_key": 0, - "schema_version": 1, - "attributes": { - "ami": "ami-00ff94d69b3ced2aa", - "arn": "arn:aws:ec2:us-east-2:565979732541:instance/i-099e0f4d4d67759b6", - "associate_public_ip_address": false, - "availability_zone": "us-east-2b", - "capacity_reservation_specification": [ - { - "capacity_reservation_preference": "open", - "capacity_reservation_target": [] - } - ], - "cpu_core_count": 1, - "cpu_options": [ - { - "amd_sev_snp": "", - "core_count": 1, - "threads_per_core": 2 - } - ], - "cpu_threads_per_core": 2, - "credit_specification": [], - "disable_api_stop": false, - "disable_api_termination": false, - "ebs_block_device": [], - "ebs_optimized": false, - "enclave_options": [ - { - "enabled": false - } - ], - "ephemeral_block_device": [], - "get_password_data": false, - "hibernation": false, - "host_id": "", - "host_resource_group_arn": null, - "iam_instance_profile": "simplyblock-instance-profile-israel", - "id": "i-099e0f4d4d67759b6", - "instance_initiated_shutdown_behavior": "stop", - "instance_lifecycle": "", - "instance_market_options": [], - "instance_state": "running", - "instance_type": "m5.large", - "ipv6_address_count": 0, - "ipv6_addresses": [], - "key_name": "simplyblock-us-east-2.pem", - "launch_template": [], - "maintenance_options": [ - { - "auto_recovery": "default" - } - ], - "metadata_options": [ - { - "http_endpoint": "enabled", - "http_protocol_ipv6": "disabled", - "http_put_response_hop_limit": 1, - "http_tokens": "optional", - "instance_metadata_tags": "disabled" - } - ], - "monitoring": false, - "network_interface": [], - "outpost_arn": "", - "password_data": "", - "placement_group": "", - "placement_partition_number": 0, - "primary_network_interface_id": "eni-0e578e7645b4bb773", - "private_dns": "ip-10-0-3-110.us-east-2.compute.internal", - "private_dns_name_options": [ - { - "enable_resource_name_dns_a_record": false, - "enable_resource_name_dns_aaaa_record": false, - "hostname_type": "ip-name" - } - ], - "private_ip": "10.0.3.110", - "public_dns": "", - "public_ip": "", - "root_block_device": [ - { - "delete_on_termination": true, - "device_name": "/dev/sda1", - "encrypted": false, - "iops": 300, - "kms_key_id": "", - "tags": {}, - "tags_all": {}, - "throughput": 0, - "volume_id": "vol-05f93e914e49a760a", - "volume_size": 100, - "volume_type": "gp2" - } - ], - "secondary_private_ips": [], - "security_groups": [], - "source_dest_check": true, - "spot_instance_request_id": "", - "subnet_id": "subnet-03c180e84f6854a15", - "tags": { - "Name": "israel-mgmt-1" - }, - "tags_all": { - "Name": "israel-mgmt-1" - }, - "tenancy": "default", - "timeouts": null, - "user_data": "2a3a0285b44df436b6f0bade754bffade8ceba67", - "user_data_base64": null, - "user_data_replace_on_change": false, - "volume_tags": null, - "vpc_security_group_ids": [ - "sg-014b0598b9509d331" - ] - }, - "sensitive_attributes": [], - "private": "eyJlMmJmYjczMC1lY2FhLTExZTYtOGY4OC0zNDM2M2JjN2M0YzAiOnsiY3JlYXRlIjo2MDAwMDAwMDAwMDAsImRlbGV0ZSI6MTIwMDAwMDAwMDAwMCwicmVhZCI6OTAwMDAwMDAwMDAwLCJ1cGRhdGUiOjYwMDAwMDAwMDAwMH0sInNjaGVtYV92ZXJzaW9uIjoiMSJ9", - "dependencies": [ - "aws_iam_instance_profile.inst_profile", - "aws_iam_role.role", - "aws_security_group.api_gateway_sg", - "aws_security_group.bastion_sg", - "aws_security_group.loadbalancer_sg", - "aws_security_group.mgmt_node_sg", - "data.aws_availability_zones.available", - "data.aws_iam_policy_document.assume_role_policy", - "module.vpc.aws_subnet.private", - "module.vpc.aws_vpc.this", - "module.vpc.aws_vpc_ipv4_cidr_block_association.this" - ] - } - ] - }, - { - "mode": "managed", - "type": "aws_instance", - "name": "storage_nodes", - "provider": "provider[\"registry.terraform.io/hashicorp/aws\"]", - "instances": [ - { - "index_key": "0", - "schema_version": 1, - "attributes": { - "ami": "ami-08f9f3bb075432791", - "arn": "arn:aws:ec2:us-east-2:565979732541:instance/i-0aee76dc7e7146880", - "associate_public_ip_address": false, - "availability_zone": "us-east-2b", - "capacity_reservation_specification": [ - { - "capacity_reservation_preference": "open", - "capacity_reservation_target": [] - } - ], - "cpu_core_count": 32, - "cpu_options": [ - { - "amd_sev_snp": "", - "core_count": 32, - "threads_per_core": 1 - } - ], - "cpu_threads_per_core": 1, - "credit_specification": [], - "disable_api_stop": false, - "disable_api_termination": false, - "ebs_block_device": [], - "ebs_optimized": false, - "enclave_options": [ - { - "enabled": false - } - ], - "ephemeral_block_device": [], - "get_password_data": false, - "hibernation": false, - "host_id": "", - "host_resource_group_arn": null, - "iam_instance_profile": "simplyblock-instance-profile-israel", - "id": "i-0aee76dc7e7146880", - "instance_initiated_shutdown_behavior": "stop", - "instance_lifecycle": "", - "instance_market_options": [], - "instance_state": "running", - "instance_type": "m7gd.8xlarge", - "ipv6_address_count": 0, - "ipv6_addresses": [], - "key_name": "simplyblock-us-east-2.pem", - "launch_template": [], - "maintenance_options": [ - { - "auto_recovery": "default" - } - ], - "metadata_options": [ - { - "http_endpoint": "enabled", - "http_protocol_ipv6": "disabled", - "http_put_response_hop_limit": 1, - "http_tokens": "optional", - "instance_metadata_tags": "disabled" - } - ], - "monitoring": false, - "network_interface": [], - "outpost_arn": "", - "password_data": "", - "placement_group": "", - "placement_partition_number": 0, - "primary_network_interface_id": "eni-0f19d99cfd174d543", - "private_dns": "ip-10-0-3-225.us-east-2.compute.internal", - "private_dns_name_options": [ - { - "enable_resource_name_dns_a_record": false, - "enable_resource_name_dns_aaaa_record": false, - "hostname_type": "ip-name" - } - ], - "private_ip": "10.0.3.225", - "public_dns": "", - "public_ip": "", - "root_block_device": [ - { - "delete_on_termination": true, - "device_name": "/dev/sda1", - "encrypted": false, - "iops": 3000, - "kms_key_id": "", - "tags": {}, - "tags_all": {}, - "throughput": 125, - "volume_id": "vol-02ae9bb9c0edfab46", - "volume_size": 45, - "volume_type": "gp3" - } - ], - "secondary_private_ips": [], - "security_groups": [], - "source_dest_check": true, - "spot_instance_request_id": "", - "subnet_id": "subnet-03c180e84f6854a15", - "tags": { - "Name": "israel-storage-1" - }, - "tags_all": { - "Name": "israel-storage-1" - }, - "tenancy": "default", - "timeouts": null, - "user_data": "e7c67957c201291c4db4e41bea36a971c03febc0", - "user_data_base64": null, - "user_data_replace_on_change": false, - "volume_tags": null, - "vpc_security_group_ids": [ - "sg-0489217a5244cd1fa" - ] - }, - "sensitive_attributes": [], - "private": "eyJlMmJmYjczMC1lY2FhLTExZTYtOGY4OC0zNDM2M2JjN2M0YzAiOnsiY3JlYXRlIjo2MDAwMDAwMDAwMDAsImRlbGV0ZSI6MTIwMDAwMDAwMDAwMCwicmVhZCI6OTAwMDAwMDAwMDAwLCJ1cGRhdGUiOjYwMDAwMDAwMDAwMH0sInNjaGVtYV92ZXJzaW9uIjoiMSJ9", - "dependencies": [ - "aws_iam_instance_profile.inst_profile", - "aws_iam_role.role", - "aws_security_group.api_gateway_sg", - "aws_security_group.bastion_sg", - "aws_security_group.extra_nodes_sg", - "aws_security_group.loadbalancer_sg", - "aws_security_group.mgmt_node_sg", - "aws_security_group.storage_nodes_sg", - "data.aws_availability_zones.available", - "data.aws_iam_policy_document.assume_role_policy", - "module.vpc.aws_subnet.private", - "module.vpc.aws_vpc.this", - "module.vpc.aws_vpc_ipv4_cidr_block_association.this" - ] - }, - { - "index_key": "1", - "schema_version": 1, - "attributes": { - "ami": "ami-08f9f3bb075432791", - "arn": "arn:aws:ec2:us-east-2:565979732541:instance/i-007110c77189b87fe", - "associate_public_ip_address": false, - "availability_zone": "us-east-2b", - "capacity_reservation_specification": [ - { - "capacity_reservation_preference": "open", - "capacity_reservation_target": [] - } - ], - "cpu_core_count": 32, - "cpu_options": [ - { - "amd_sev_snp": "", - "core_count": 32, - "threads_per_core": 1 - } - ], - "cpu_threads_per_core": 1, - "credit_specification": [], - "disable_api_stop": false, - "disable_api_termination": false, - "ebs_block_device": [], - "ebs_optimized": false, - "enclave_options": [ - { - "enabled": false - } - ], - "ephemeral_block_device": [], - "get_password_data": false, - "hibernation": false, - "host_id": "", - "host_resource_group_arn": null, - "iam_instance_profile": "simplyblock-instance-profile-israel", - "id": "i-007110c77189b87fe", - "instance_initiated_shutdown_behavior": "stop", - "instance_lifecycle": "", - "instance_market_options": [], - "instance_state": "running", - "instance_type": "m7gd.8xlarge", - "ipv6_address_count": 0, - "ipv6_addresses": [], - "key_name": "simplyblock-us-east-2.pem", - "launch_template": [], - "maintenance_options": [ - { - "auto_recovery": "default" - } - ], - "metadata_options": [ - { - "http_endpoint": "enabled", - "http_protocol_ipv6": "disabled", - "http_put_response_hop_limit": 1, - "http_tokens": "optional", - "instance_metadata_tags": "disabled" - } - ], - "monitoring": false, - "network_interface": [], - "outpost_arn": "", - "password_data": "", - "placement_group": "", - "placement_partition_number": 0, - "primary_network_interface_id": "eni-01715f80049613e51", - "private_dns": "ip-10-0-3-117.us-east-2.compute.internal", - "private_dns_name_options": [ - { - "enable_resource_name_dns_a_record": false, - "enable_resource_name_dns_aaaa_record": false, - "hostname_type": "ip-name" - } - ], - "private_ip": "10.0.3.117", - "public_dns": "", - "public_ip": "", - "root_block_device": [ - { - "delete_on_termination": true, - "device_name": "/dev/sda1", - "encrypted": false, - "iops": 3000, - "kms_key_id": "", - "tags": {}, - "tags_all": {}, - "throughput": 125, - "volume_id": "vol-09cbd9fcfdb4f1696", - "volume_size": 45, - "volume_type": "gp3" - } - ], - "secondary_private_ips": [], - "security_groups": [], - "source_dest_check": true, - "spot_instance_request_id": "", - "subnet_id": "subnet-03c180e84f6854a15", - "tags": { - "Name": "israel-storage-2" - }, - "tags_all": { - "Name": "israel-storage-2" - }, - "tenancy": "default", - "timeouts": null, - "user_data": "e7c67957c201291c4db4e41bea36a971c03febc0", - "user_data_base64": null, - "user_data_replace_on_change": false, - "volume_tags": null, - "vpc_security_group_ids": [ - "sg-0489217a5244cd1fa" - ] - }, - "sensitive_attributes": [], - "private": "eyJlMmJmYjczMC1lY2FhLTExZTYtOGY4OC0zNDM2M2JjN2M0YzAiOnsiY3JlYXRlIjo2MDAwMDAwMDAwMDAsImRlbGV0ZSI6MTIwMDAwMDAwMDAwMCwicmVhZCI6OTAwMDAwMDAwMDAwLCJ1cGRhdGUiOjYwMDAwMDAwMDAwMH0sInNjaGVtYV92ZXJzaW9uIjoiMSJ9", - "dependencies": [ - "aws_iam_instance_profile.inst_profile", - "aws_iam_role.role", - "aws_security_group.api_gateway_sg", - "aws_security_group.bastion_sg", - "aws_security_group.extra_nodes_sg", - "aws_security_group.loadbalancer_sg", - "aws_security_group.mgmt_node_sg", - "aws_security_group.storage_nodes_sg", - "data.aws_availability_zones.available", - "data.aws_iam_policy_document.assume_role_policy", - "module.vpc.aws_subnet.private", - "module.vpc.aws_vpc.this", - "module.vpc.aws_vpc_ipv4_cidr_block_association.this" - ] - }, - { - "index_key": "2", - "schema_version": 1, - "attributes": { - "ami": "ami-08f9f3bb075432791", - "arn": "arn:aws:ec2:us-east-2:565979732541:instance/i-0cd35be22adb916da", - "associate_public_ip_address": false, - "availability_zone": "us-east-2b", - "capacity_reservation_specification": [ - { - "capacity_reservation_preference": "open", - "capacity_reservation_target": [] - } - ], - "cpu_core_count": 32, - "cpu_options": [ - { - "amd_sev_snp": "", - "core_count": 32, - "threads_per_core": 1 - } - ], - "cpu_threads_per_core": 1, - "credit_specification": [], - "disable_api_stop": false, - "disable_api_termination": false, - "ebs_block_device": [], - "ebs_optimized": false, - "enclave_options": [ - { - "enabled": false - } - ], - "ephemeral_block_device": [], - "get_password_data": false, - "hibernation": false, - "host_id": "", - "host_resource_group_arn": null, - "iam_instance_profile": "simplyblock-instance-profile-israel", - "id": "i-0cd35be22adb916da", - "instance_initiated_shutdown_behavior": "stop", - "instance_lifecycle": "", - "instance_market_options": [], - "instance_state": "running", - "instance_type": "m7gd.8xlarge", - "ipv6_address_count": 0, - "ipv6_addresses": [], - "key_name": "simplyblock-us-east-2.pem", - "launch_template": [], - "maintenance_options": [ - { - "auto_recovery": "default" - } - ], - "metadata_options": [ - { - "http_endpoint": "enabled", - "http_protocol_ipv6": "disabled", - "http_put_response_hop_limit": 1, - "http_tokens": "optional", - "instance_metadata_tags": "disabled" - } - ], - "monitoring": false, - "network_interface": [], - "outpost_arn": "", - "password_data": "", - "placement_group": "", - "placement_partition_number": 0, - "primary_network_interface_id": "eni-03131dee902cb6d9e", - "private_dns": "ip-10-0-3-135.us-east-2.compute.internal", - "private_dns_name_options": [ - { - "enable_resource_name_dns_a_record": false, - "enable_resource_name_dns_aaaa_record": false, - "hostname_type": "ip-name" - } - ], - "private_ip": "10.0.3.135", - "public_dns": "", - "public_ip": "", - "root_block_device": [ - { - "delete_on_termination": true, - "device_name": "/dev/sda1", - "encrypted": false, - "iops": 3000, - "kms_key_id": "", - "tags": {}, - "tags_all": {}, - "throughput": 125, - "volume_id": "vol-0a7cb3589b4d6ce33", - "volume_size": 45, - "volume_type": "gp3" - } - ], - "secondary_private_ips": [], - "security_groups": [], - "source_dest_check": true, - "spot_instance_request_id": "", - "subnet_id": "subnet-03c180e84f6854a15", - "tags": { - "Name": "israel-storage-3" - }, - "tags_all": { - "Name": "israel-storage-3" - }, - "tenancy": "default", - "timeouts": null, - "user_data": "e7c67957c201291c4db4e41bea36a971c03febc0", - "user_data_base64": null, - "user_data_replace_on_change": false, - "volume_tags": null, - "vpc_security_group_ids": [ - "sg-0489217a5244cd1fa" - ] - }, - "sensitive_attributes": [], - "private": "eyJlMmJmYjczMC1lY2FhLTExZTYtOGY4OC0zNDM2M2JjN2M0YzAiOnsiY3JlYXRlIjo2MDAwMDAwMDAwMDAsImRlbGV0ZSI6MTIwMDAwMDAwMDAwMCwicmVhZCI6OTAwMDAwMDAwMDAwLCJ1cGRhdGUiOjYwMDAwMDAwMDAwMH0sInNjaGVtYV92ZXJzaW9uIjoiMSJ9", - "dependencies": [ - "aws_iam_instance_profile.inst_profile", - "aws_iam_role.role", - "aws_security_group.api_gateway_sg", - "aws_security_group.bastion_sg", - "aws_security_group.extra_nodes_sg", - "aws_security_group.loadbalancer_sg", - "aws_security_group.mgmt_node_sg", - "aws_security_group.storage_nodes_sg", - "data.aws_availability_zones.available", - "data.aws_iam_policy_document.assume_role_policy", - "module.vpc.aws_subnet.private", - "module.vpc.aws_vpc.this", - "module.vpc.aws_vpc_ipv4_cidr_block_association.this" - ] - }, - { - "index_key": "3", - "schema_version": 1, - "attributes": { - "ami": "ami-08f9f3bb075432791", - "arn": "arn:aws:ec2:us-east-2:565979732541:instance/i-04f4a8d1efa55b31d", - "associate_public_ip_address": false, - "availability_zone": "us-east-2b", - "capacity_reservation_specification": [ - { - "capacity_reservation_preference": "open", - "capacity_reservation_target": [] - } - ], - "cpu_core_count": 32, - "cpu_options": [ - { - "amd_sev_snp": "", - "core_count": 32, - "threads_per_core": 1 - } - ], - "cpu_threads_per_core": 1, - "credit_specification": [], - "disable_api_stop": false, - "disable_api_termination": false, - "ebs_block_device": [], - "ebs_optimized": false, - "enclave_options": [ - { - "enabled": false - } - ], - "ephemeral_block_device": [], - "get_password_data": false, - "hibernation": false, - "host_id": "", - "host_resource_group_arn": null, - "iam_instance_profile": "simplyblock-instance-profile-israel", - "id": "i-04f4a8d1efa55b31d", - "instance_initiated_shutdown_behavior": "stop", - "instance_lifecycle": "", - "instance_market_options": [], - "instance_state": "running", - "instance_type": "m7gd.8xlarge", - "ipv6_address_count": 0, - "ipv6_addresses": [], - "key_name": "simplyblock-us-east-2.pem", - "launch_template": [], - "maintenance_options": [ - { - "auto_recovery": "default" - } - ], - "metadata_options": [ - { - "http_endpoint": "enabled", - "http_protocol_ipv6": "disabled", - "http_put_response_hop_limit": 1, - "http_tokens": "optional", - "instance_metadata_tags": "disabled" - } - ], - "monitoring": false, - "network_interface": [], - "outpost_arn": "", - "password_data": "", - "placement_group": "", - "placement_partition_number": 0, - "primary_network_interface_id": "eni-0184db45f1f8f869e", - "private_dns": "ip-10-0-3-133.us-east-2.compute.internal", - "private_dns_name_options": [ - { - "enable_resource_name_dns_a_record": false, - "enable_resource_name_dns_aaaa_record": false, - "hostname_type": "ip-name" - } - ], - "private_ip": "10.0.3.133", - "public_dns": "", - "public_ip": "", - "root_block_device": [ - { - "delete_on_termination": true, - "device_name": "/dev/sda1", - "encrypted": false, - "iops": 3000, - "kms_key_id": "", - "tags": {}, - "tags_all": {}, - "throughput": 125, - "volume_id": "vol-06b4b61f392d0d3fa", - "volume_size": 45, - "volume_type": "gp3" - } - ], - "secondary_private_ips": [], - "security_groups": [], - "source_dest_check": true, - "spot_instance_request_id": "", - "subnet_id": "subnet-03c180e84f6854a15", - "tags": { - "Name": "israel-storage-4" - }, - "tags_all": { - "Name": "israel-storage-4" - }, - "tenancy": "default", - "timeouts": null, - "user_data": "e7c67957c201291c4db4e41bea36a971c03febc0", - "user_data_base64": null, - "user_data_replace_on_change": false, - "volume_tags": null, - "vpc_security_group_ids": [ - "sg-0489217a5244cd1fa" - ] - }, - "sensitive_attributes": [], - "private": "eyJlMmJmYjczMC1lY2FhLTExZTYtOGY4OC0zNDM2M2JjN2M0YzAiOnsiY3JlYXRlIjo2MDAwMDAwMDAwMDAsImRlbGV0ZSI6MTIwMDAwMDAwMDAwMCwicmVhZCI6OTAwMDAwMDAwMDAwLCJ1cGRhdGUiOjYwMDAwMDAwMDAwMH0sInNjaGVtYV92ZXJzaW9uIjoiMSJ9", - "dependencies": [ - "aws_iam_instance_profile.inst_profile", - "aws_iam_role.role", - "aws_security_group.api_gateway_sg", - "aws_security_group.bastion_sg", - "aws_security_group.extra_nodes_sg", - "aws_security_group.loadbalancer_sg", - "aws_security_group.mgmt_node_sg", - "aws_security_group.storage_nodes_sg", - "data.aws_availability_zones.available", - "data.aws_iam_policy_document.assume_role_policy", - "module.vpc.aws_subnet.private", - "module.vpc.aws_vpc.this", - "module.vpc.aws_vpc_ipv4_cidr_block_association.this" - ] - }, - { - "index_key": "4", - "schema_version": 1, - "attributes": { - "ami": "ami-08f9f3bb075432791", - "arn": "arn:aws:ec2:us-east-2:565979732541:instance/i-0652fa5ba7bff8961", - "associate_public_ip_address": false, - "availability_zone": "us-east-2b", - "capacity_reservation_specification": [ - { - "capacity_reservation_preference": "open", - "capacity_reservation_target": [] - } - ], - "cpu_core_count": 32, - "cpu_options": [ - { - "amd_sev_snp": "", - "core_count": 32, - "threads_per_core": 1 - } - ], - "cpu_threads_per_core": 1, - "credit_specification": [], - "disable_api_stop": false, - "disable_api_termination": false, - "ebs_block_device": [], - "ebs_optimized": false, - "enclave_options": [ - { - "enabled": false - } - ], - "ephemeral_block_device": [], - "get_password_data": false, - "hibernation": false, - "host_id": "", - "host_resource_group_arn": null, - "iam_instance_profile": "simplyblock-instance-profile-israel", - "id": "i-0652fa5ba7bff8961", - "instance_initiated_shutdown_behavior": "stop", - "instance_lifecycle": "", - "instance_market_options": [], - "instance_state": "running", - "instance_type": "m7gd.8xlarge", - "ipv6_address_count": 0, - "ipv6_addresses": [], - "key_name": "simplyblock-us-east-2.pem", - "launch_template": [], - "maintenance_options": [ - { - "auto_recovery": "default" - } - ], - "metadata_options": [ - { - "http_endpoint": "enabled", - "http_protocol_ipv6": "disabled", - "http_put_response_hop_limit": 1, - "http_tokens": "optional", - "instance_metadata_tags": "disabled" - } - ], - "monitoring": false, - "network_interface": [], - "outpost_arn": "", - "password_data": "", - "placement_group": "", - "placement_partition_number": 0, - "primary_network_interface_id": "eni-0f0ed7b886d4c4b78", - "private_dns": "ip-10-0-3-181.us-east-2.compute.internal", - "private_dns_name_options": [ - { - "enable_resource_name_dns_a_record": false, - "enable_resource_name_dns_aaaa_record": false, - "hostname_type": "ip-name" - } - ], - "private_ip": "10.0.3.181", - "public_dns": "", - "public_ip": "", - "root_block_device": [ - { - "delete_on_termination": true, - "device_name": "/dev/sda1", - "encrypted": false, - "iops": 3000, - "kms_key_id": "", - "tags": null, - "tags_all": {}, - "throughput": 125, - "volume_id": "vol-0d01a1c39cd3f7154", - "volume_size": 45, - "volume_type": "gp3" - } - ], - "secondary_private_ips": [], - "security_groups": [], - "source_dest_check": true, - "spot_instance_request_id": "", - "subnet_id": "subnet-03c180e84f6854a15", - "tags": { - "Name": "israel-storage-5" - }, - "tags_all": { - "Name": "israel-storage-5" - }, - "tenancy": "default", - "timeouts": null, - "user_data": "e7c67957c201291c4db4e41bea36a971c03febc0", - "user_data_base64": null, - "user_data_replace_on_change": false, - "volume_tags": null, - "vpc_security_group_ids": [ - "sg-0489217a5244cd1fa" - ] - }, - "sensitive_attributes": [], - "private": "eyJlMmJmYjczMC1lY2FhLTExZTYtOGY4OC0zNDM2M2JjN2M0YzAiOnsiY3JlYXRlIjo2MDAwMDAwMDAwMDAsImRlbGV0ZSI6MTIwMDAwMDAwMDAwMCwicmVhZCI6OTAwMDAwMDAwMDAwLCJ1cGRhdGUiOjYwMDAwMDAwMDAwMH0sInNjaGVtYV92ZXJzaW9uIjoiMSJ9", - "dependencies": [ - "aws_iam_instance_profile.inst_profile", - "aws_iam_role.role", - "aws_security_group.api_gateway_sg", - "aws_security_group.bastion_sg", - "aws_security_group.extra_nodes_sg", - "aws_security_group.loadbalancer_sg", - "aws_security_group.mgmt_node_sg", - "aws_security_group.storage_nodes_sg", - "data.aws_availability_zones.available", - "data.aws_iam_policy_document.assume_role_policy", - "module.vpc.aws_subnet.private", - "module.vpc.aws_vpc.this", - "module.vpc.aws_vpc_ipv4_cidr_block_association.this" - ] - } - ] - }, - { - "mode": "managed", - "type": "aws_launch_template", - "name": "tfengine_lc", - "provider": "provider[\"registry.terraform.io/hashicorp/aws\"]", - "instances": [ - { - "schema_version": 0, - "attributes": { - "arn": "arn:aws:ec2:us-east-2:565979732541:launch-template/lt-0592c1adb2ec17a36", - "block_device_mappings": [], - "capacity_reservation_specification": [], - "cpu_options": [], - "credit_specification": [], - "default_version": 1, - "description": "", - "disable_api_stop": false, - "disable_api_termination": false, - "ebs_optimized": "", - "elastic_gpu_specifications": [], - "elastic_inference_accelerator": [], - "enclave_options": [], - "hibernation_options": [], - "iam_instance_profile": [ - { - "arn": "", - "name": "terraform-20241021142150560800000003" - } - ], - "id": "lt-0592c1adb2ec17a36", - "image_id": "ami-050cd642fd83388e4", - "instance_initiated_shutdown_behavior": "", - "instance_market_options": [], - "instance_requirements": [], - "instance_type": "t3.medium", - "kernel_id": "", - "key_name": "", - "latest_version": 1, - "license_specification": [], - "maintenance_options": [], - "metadata_options": [], - "monitoring": [], - "name": "tfengine2024102114221133420000000e", - "name_prefix": "tfengine", - "network_interfaces": [ - { - "associate_carrier_ip_address": "", - "associate_public_ip_address": "false", - "delete_on_termination": "", - "description": "", - "device_index": 0, - "interface_type": "", - "ipv4_address_count": 0, - "ipv4_addresses": [], - "ipv4_prefix_count": 0, - "ipv4_prefixes": [], - "ipv6_address_count": 0, - "ipv6_addresses": [], - "ipv6_prefix_count": 0, - "ipv6_prefixes": [], - "network_card_index": 0, - "network_interface_id": "", - "private_ip_address": "", - "security_groups": [ - "sg-056dcd70dfcbd4456" - ], - "subnet_id": "" - } - ], - "placement": [], - "private_dns_name_options": [], - "ram_disk_id": "", - "security_group_names": [], - "tag_specifications": [ - { - "resource_type": "instance", - "tags": { - "Name": "israel-tfengine" - } - } - ], - "tags": {}, - "tags_all": {}, - "update_default_version": null, - "user_data": "IyEvYmluL2Jhc2gKZG5mIGluc3RhbGwgLXkgZG9ja2VyCnN5c3RlbWN0bCBlbmFibGUgZG9ja2VyCnN5c3RlbWN0bCBzdGFydCBkb2NrZXIKZG5mIGluc3RhbGwgLXkgYW1hem9uLWVjci1jcmVkZW50aWFsLWhlbHBlcgpta2RpciAtcCB+Ly5kb2NrZXIKZWNobyAneyJjcmVkc1N0b3JlIjogImVjci1sb2dpbiJ9JyA+IH4vLmRvY2tlci9jb25maWcuanNvbgo=", - "vpc_security_group_ids": [] - }, - "sensitive_attributes": [], - "private": "bnVsbA==", - "dependencies": [ - "aws_iam_instance_profile.tfengine", - "aws_iam_role.tfengine", - "aws_security_group.tfengine_sg", - "data.aws_ami.this", - "module.vpc.aws_vpc.this" - ], - "create_before_destroy": true - } - ] - }, - { - "mode": "managed", - "type": "aws_s3_bucket", - "name": "tfengine_logs", - "provider": "provider[\"registry.terraform.io/hashicorp/aws\"]", - "instances": [ - { - "schema_version": 0, - "attributes": { - "acceleration_status": "", - "acl": null, - "arn": "arn:aws:s3:::simplyblock-tfengine-logs-165a52ea96", - "bucket": "simplyblock-tfengine-logs-165a52ea96", - "bucket_domain_name": "simplyblock-tfengine-logs-165a52ea96.s3.amazonaws.com", - "bucket_prefix": "", - "bucket_regional_domain_name": "simplyblock-tfengine-logs-165a52ea96.s3.us-east-2.amazonaws.com", - "cors_rule": [], - "force_destroy": true, - "grant": [ - { - "id": "2c785a94656626e4f31f20ace2c13fd77b92f1b24cfa077e87bdacaf29da685a", - "permissions": [ - "FULL_CONTROL" - ], - "type": "CanonicalUser", - "uri": "" - } - ], - "hosted_zone_id": "Z2O1EMRO9K5GLX", - "id": "simplyblock-tfengine-logs-165a52ea96", - "lifecycle_rule": [], - "logging": [], - "object_lock_configuration": [], - "object_lock_enabled": false, - "policy": "", - "region": "us-east-2", - "replication_configuration": [], - "request_payer": "BucketOwner", - "server_side_encryption_configuration": [ - { - "rule": [ - { - "apply_server_side_encryption_by_default": [ - { - "kms_master_key_id": "", - "sse_algorithm": "AES256" - } - ], - "bucket_key_enabled": false - } - ] - } - ], - "tags": {}, - "tags_all": {}, - "timeouts": null, - "versioning": [ - { - "enabled": false, - "mfa_delete": false - } - ], - "website": [], - "website_domain": null, - "website_endpoint": null - }, - "sensitive_attributes": [], - "private": "eyJlMmJmYjczMC1lY2FhLTExZTYtOGY4OC0zNDM2M2JjN2M0YzAiOnsiY3JlYXRlIjoxMjAwMDAwMDAwMDAwLCJkZWxldGUiOjM2MDAwMDAwMDAwMDAsInJlYWQiOjEyMDAwMDAwMDAwMDAsInVwZGF0ZSI6MTIwMDAwMDAwMDAwMH19", - "dependencies": [ - "random_id.id" - ] - } - ] - }, - { - "mode": "managed", - "type": "aws_security_group", - "name": "api_gateway_sg", - "provider": "provider[\"registry.terraform.io/hashicorp/aws\"]", - "instances": [ - { - "schema_version": 1, - "attributes": { - "arn": "arn:aws:ec2:us-east-2:565979732541:security-group/sg-0c559d0b29509c103", - "description": "API Gateway Security Group", - "egress": [ - { - "cidr_blocks": [ - "0.0.0.0/0" - ], - "description": "allow traffic from API gateway to Loadbalancer", - "from_port": 0, - "ipv6_cidr_blocks": [], - "prefix_list_ids": [], - "protocol": "-1", - "security_groups": [], - "self": false, - "to_port": 0 - } - ], - "id": "sg-0c559d0b29509c103", - "ingress": [], - "name": "israel-api_gateway_sg", - "name_prefix": "", - "owner_id": "565979732541", - "revoke_rules_on_delete": false, - "tags": {}, - "tags_all": {}, - "timeouts": null, - "vpc_id": "vpc-0365a16226384093d" - }, - "sensitive_attributes": [], - "private": "eyJlMmJmYjczMC1lY2FhLTExZTYtOGY4OC0zNDM2M2JjN2M0YzAiOnsiY3JlYXRlIjo2MDAwMDAwMDAwMDAsImRlbGV0ZSI6OTAwMDAwMDAwMDAwfSwic2NoZW1hX3ZlcnNpb24iOiIxIn0=", - "dependencies": [ - "module.vpc.aws_vpc.this" - ], - "create_before_destroy": true - } - ] - }, - { - "mode": "managed", - "type": "aws_security_group", - "name": "bastion_sg", - "provider": "provider[\"registry.terraform.io/hashicorp/aws\"]", - "instances": [ - { - "schema_version": 1, - "attributes": { - "arn": "arn:aws:ec2:us-east-2:565979732541:security-group/sg-0265fa831715dc772", - "description": "CSI Cluster Container Security Group", - "egress": [ - { - "cidr_blocks": [ - "0.0.0.0/0" - ], - "description": "", - "from_port": 0, - "ipv6_cidr_blocks": [], - "prefix_list_ids": [], - "protocol": "-1", - "security_groups": [], - "self": false, - "to_port": 0 - } - ], - "id": "sg-0265fa831715dc772", - "ingress": [ - { - "cidr_blocks": [ - "0.0.0.0/0" - ], - "description": "", - "from_port": 22, - "ipv6_cidr_blocks": [], - "prefix_list_ids": [], - "protocol": "tcp", - "security_groups": [], - "self": false, - "to_port": 22 - } - ], - "name": "israel-bastion_sg", - "name_prefix": "", - "owner_id": "565979732541", - "revoke_rules_on_delete": false, - "tags": {}, - "tags_all": {}, - "timeouts": null, - "vpc_id": "vpc-0365a16226384093d" - }, - "sensitive_attributes": [], - "private": "eyJlMmJmYjczMC1lY2FhLTExZTYtOGY4OC0zNDM2M2JjN2M0YzAiOnsiY3JlYXRlIjo2MDAwMDAwMDAwMDAsImRlbGV0ZSI6OTAwMDAwMDAwMDAwfSwic2NoZW1hX3ZlcnNpb24iOiIxIn0=", - "dependencies": [ - "module.vpc.aws_vpc.this" - ], - "create_before_destroy": true - } - ] - }, - { - "mode": "managed", - "type": "aws_security_group", - "name": "extra_nodes_sg", - "provider": "provider[\"registry.terraform.io/hashicorp/aws\"]", - "instances": [ - { - "schema_version": 1, - "attributes": { - "arn": "arn:aws:ec2:us-east-2:565979732541:security-group/sg-0254cbe75e9f87a8e", - "description": "CSI Cluster Container Security Group", - "egress": [ - { - "cidr_blocks": [ - "0.0.0.0/0" - ], - "description": "", - "from_port": 0, - "ipv6_cidr_blocks": [], - "prefix_list_ids": [], - "protocol": "-1", - "security_groups": [], - "self": false, - "to_port": 0 - } - ], - "id": "sg-0254cbe75e9f87a8e", - "ingress": [ - { - "cidr_blocks": [ - "0.0.0.0/0" - ], - "description": "", - "from_port": 22, - "ipv6_cidr_blocks": [], - "prefix_list_ids": [], - "protocol": "tcp", - "security_groups": [], - "self": false, - "to_port": 22 - }, - { - "cidr_blocks": [ - "0.0.0.0/0" - ], - "description": "Allow DNS resolution from worker nodes", - "from_port": 53, - "ipv6_cidr_blocks": [], - "prefix_list_ids": [], - "protocol": "udp", - "security_groups": [], - "self": false, - "to_port": 53 - }, - { - "cidr_blocks": [ - "0.0.0.0/0" - ], - "description": "Allow UDP traffic on ephemeral ports", - "from_port": 1025, - "ipv6_cidr_blocks": [], - "prefix_list_ids": [], - "protocol": "udp", - "security_groups": [], - "self": false, - "to_port": 65535 - }, - { - "cidr_blocks": [ - "0.0.0.0/0" - ], - "description": "k3s cluster", - "from_port": 5000, - "ipv6_cidr_blocks": [], - "prefix_list_ids": [], - "protocol": "tcp", - "security_groups": [], - "self": false, - "to_port": 5000 - }, - { - "cidr_blocks": [ - "0.0.0.0/0" - ], - "description": "k3s cluster", - "from_port": 6443, - "ipv6_cidr_blocks": [], - "prefix_list_ids": [], - "protocol": "tcp", - "security_groups": [], - "self": false, - "to_port": 6443 - }, - { - "cidr_blocks": [ - "0.0.0.0/0" - ], - "description": "k8s node communication", - "from_port": 10250, - "ipv6_cidr_blocks": [], - "prefix_list_ids": [], - "protocol": "tcp", - "security_groups": [], - "self": false, - "to_port": 10255 - }, - { - "cidr_blocks": [], - "description": "For SPDK Proxy for the storage node", - "from_port": 8080, - "ipv6_cidr_blocks": [], - "prefix_list_ids": [], - "protocol": "tcp", - "security_groups": [ - "sg-014b0598b9509d331" - ], - "self": false, - "to_port": 8080 - }, - { - "cidr_blocks": [], - "description": "allow ICMP Echo", - "from_port": 8, - "ipv6_cidr_blocks": [], - "prefix_list_ids": [], - "protocol": "icmp", - "security_groups": [ - "sg-014b0598b9509d331" - ], - "self": false, - "to_port": 0 - }, - { - "cidr_blocks": [], - "description": "docker engine API", - "from_port": 2375, - "ipv6_cidr_blocks": [], - "prefix_list_ids": [], - "protocol": "tcp", - "security_groups": [ - "sg-014b0598b9509d331" - ], - "self": false, - "to_port": 2375 - } - ], - "name": "israel-extra_nodes_sg", - "name_prefix": "", - "owner_id": "565979732541", - "revoke_rules_on_delete": false, - "tags": {}, - "tags_all": {}, - "timeouts": null, - "vpc_id": "vpc-0365a16226384093d" - }, - "sensitive_attributes": [], - "private": "eyJlMmJmYjczMC1lY2FhLTExZTYtOGY4OC0zNDM2M2JjN2M0YzAiOnsiY3JlYXRlIjo2MDAwMDAwMDAwMDAsImRlbGV0ZSI6OTAwMDAwMDAwMDAwfSwic2NoZW1hX3ZlcnNpb24iOiIxIn0=", - "dependencies": [ - "aws_security_group.api_gateway_sg", - "aws_security_group.bastion_sg", - "aws_security_group.loadbalancer_sg", - "aws_security_group.mgmt_node_sg", - "module.vpc.aws_vpc.this" - ] - } - ] - }, - { - "mode": "managed", - "type": "aws_security_group", - "name": "loadbalancer_sg", - "provider": "provider[\"registry.terraform.io/hashicorp/aws\"]", - "instances": [ - { - "schema_version": 1, - "attributes": { - "arn": "arn:aws:ec2:us-east-2:565979732541:security-group/sg-01795d3a1629fb919", - "description": "Loadbalancer Security Group", - "egress": [ - { - "cidr_blocks": [ - "0.0.0.0/0" - ], - "description": "allow traffic from API gateway to Mgmt nodes", - "from_port": 0, - "ipv6_cidr_blocks": [], - "prefix_list_ids": [], - "protocol": "-1", - "security_groups": [], - "self": false, - "to_port": 0 - } - ], - "id": "sg-01795d3a1629fb919", - "ingress": [ - { - "cidr_blocks": [], - "description": "Grafana from API gateway", - "from_port": 3000, - "ipv6_cidr_blocks": [], - "prefix_list_ids": [], - "protocol": "tcp", - "security_groups": [ - "sg-0c559d0b29509c103" - ], - "self": false, - "to_port": 3000 - }, - { - "cidr_blocks": [], - "description": "Graylog from API gateway", - "from_port": 9000, - "ipv6_cidr_blocks": [], - "prefix_list_ids": [], - "protocol": "tcp", - "security_groups": [ - "sg-0c559d0b29509c103" - ], - "self": false, - "to_port": 9000 - }, - { - "cidr_blocks": [], - "description": "HTTP from API gateway", - "from_port": 80, - "ipv6_cidr_blocks": [], - "prefix_list_ids": [], - "protocol": "tcp", - "security_groups": [ - "sg-0c559d0b29509c103" - ], - "self": false, - "to_port": 80 - } - ], - "name": "israel-loadbalancer_sg", - "name_prefix": "", - "owner_id": "565979732541", - "revoke_rules_on_delete": false, - "tags": {}, - "tags_all": {}, - "timeouts": null, - "vpc_id": "vpc-0365a16226384093d" - }, - "sensitive_attributes": [], - "private": "eyJlMmJmYjczMC1lY2FhLTExZTYtOGY4OC0zNDM2M2JjN2M0YzAiOnsiY3JlYXRlIjo2MDAwMDAwMDAwMDAsImRlbGV0ZSI6OTAwMDAwMDAwMDAwfSwic2NoZW1hX3ZlcnNpb24iOiIxIn0=", - "dependencies": [ - "aws_security_group.api_gateway_sg", - "module.vpc.aws_vpc.this" - ], - "create_before_destroy": true - } - ] - }, - { - "mode": "managed", - "type": "aws_security_group", - "name": "mgmt_node_sg", - "provider": "provider[\"registry.terraform.io/hashicorp/aws\"]", - "instances": [ - { - "schema_version": 1, - "attributes": { - "arn": "arn:aws:ec2:us-east-2:565979732541:security-group/sg-014b0598b9509d331", - "description": "CSI Cluster Container Security Group", - "egress": [ - { - "cidr_blocks": [ - "0.0.0.0/0" - ], - "description": "all output traffic so that packages can be downloaded", - "from_port": 0, - "ipv6_cidr_blocks": [], - "prefix_list_ids": [], - "protocol": "-1", - "security_groups": [], - "self": false, - "to_port": 0 - } - ], - "id": "sg-014b0598b9509d331", - "ingress": [ - { - "cidr_blocks": [ - "0.0.0.0/0" - ], - "description": "", - "from_port": 4500, - "ipv6_cidr_blocks": [], - "prefix_list_ids": [], - "protocol": "tcp", - "security_groups": [], - "self": false, - "to_port": 4500 - }, - { - "cidr_blocks": [ - "0.0.0.0/0" - ], - "description": "", - "from_port": 4800, - "ipv6_cidr_blocks": [], - "prefix_list_ids": [], - "protocol": "tcp", - "security_groups": [], - "self": false, - "to_port": 4800 - }, - { - "cidr_blocks": [ - "0.0.0.0/0" - ], - "description": "Docker Swarm Manager Communication", - "from_port": 2377, - "ipv6_cidr_blocks": [], - "prefix_list_ids": [], - "protocol": "tcp", - "security_groups": [], - "self": false, - "to_port": 2377 - }, - { - "cidr_blocks": [ - "0.0.0.0/0" - ], - "description": "Docker Swarm Node Communication TCP", - "from_port": 7946, - "ipv6_cidr_blocks": [], - "prefix_list_ids": [], - "protocol": "tcp", - "security_groups": [], - "self": false, - "to_port": 7946 - }, - { - "cidr_blocks": [ - "0.0.0.0/0" - ], - "description": "Docker Swarm Node Communication UDP", - "from_port": 7946, - "ipv6_cidr_blocks": [], - "prefix_list_ids": [], - "protocol": "udp", - "security_groups": [], - "self": false, - "to_port": 7946 - }, - { - "cidr_blocks": [ - "0.0.0.0/0" - ], - "description": "Docker Swarm Overlay Network", - "from_port": 4789, - "ipv6_cidr_blocks": [], - "prefix_list_ids": [], - "protocol": "udp", - "security_groups": [], - "self": false, - "to_port": 4789 - }, - { - "cidr_blocks": [ - "0.0.0.0/0" - ], - "description": "Graylog GELF Communication TCP", - "from_port": 12201, - "ipv6_cidr_blocks": [], - "prefix_list_ids": [], - "protocol": "tcp", - "security_groups": [], - "self": false, - "to_port": 12201 - }, - { - "cidr_blocks": [ - "0.0.0.0/0" - ], - "description": "Graylog GELF Communication TCP", - "from_port": 12201, - "ipv6_cidr_blocks": [], - "prefix_list_ids": [], - "protocol": "udp", - "security_groups": [], - "self": false, - "to_port": 12201 - }, - { - "cidr_blocks": [ - "0.0.0.0/0" - ], - "description": "docker engine API", - "from_port": 2375, - "ipv6_cidr_blocks": [], - "prefix_list_ids": [], - "protocol": "tcp", - "security_groups": [], - "self": false, - "to_port": 2375 - }, - { - "cidr_blocks": [], - "description": "EFS from mgmt nodes", - "from_port": 2049, - "ipv6_cidr_blocks": [], - "prefix_list_ids": [], - "protocol": "tcp", - "security_groups": [], - "self": true, - "to_port": 2049 - }, - { - "cidr_blocks": [], - "description": "Grafana from Loadbalancer", - "from_port": 3000, - "ipv6_cidr_blocks": [], - "prefix_list_ids": [], - "protocol": "tcp", - "security_groups": [ - "sg-01795d3a1629fb919" - ], - "self": false, - "to_port": 3000 - }, - { - "cidr_blocks": [], - "description": "Graylog from Loadbalancer", - "from_port": 9000, - "ipv6_cidr_blocks": [], - "prefix_list_ids": [], - "protocol": "tcp", - "security_groups": [ - "sg-01795d3a1629fb919" - ], - "self": false, - "to_port": 9000 - }, - { - "cidr_blocks": [], - "description": "HTTP from Loadbalancer", - "from_port": 80, - "ipv6_cidr_blocks": [], - "prefix_list_ids": [], - "protocol": "tcp", - "security_groups": [ - "sg-01795d3a1629fb919" - ], - "self": false, - "to_port": 80 - }, - { - "cidr_blocks": [], - "description": "HTTP from other mgmt nodes", - "from_port": 80, - "ipv6_cidr_blocks": [], - "prefix_list_ids": [], - "protocol": "tcp", - "security_groups": [], - "self": true, - "to_port": 80 - }, - { - "cidr_blocks": [], - "description": "SSH from Bastion Server", - "from_port": 22, - "ipv6_cidr_blocks": [], - "prefix_list_ids": [], - "protocol": "tcp", - "security_groups": [ - "sg-0265fa831715dc772" - ], - "self": false, - "to_port": 22 - }, - { - "cidr_blocks": [], - "description": "allow ICMP Echo", - "from_port": 8, - "ipv6_cidr_blocks": [], - "prefix_list_ids": [], - "protocol": "icmp", - "security_groups": [], - "self": true, - "to_port": 0 - } - ], - "name": "israel-mgmt_node_sg", - "name_prefix": "", - "owner_id": "565979732541", - "revoke_rules_on_delete": false, - "tags": {}, - "tags_all": {}, - "timeouts": null, - "vpc_id": "vpc-0365a16226384093d" - }, - "sensitive_attributes": [], - "private": "eyJlMmJmYjczMC1lY2FhLTExZTYtOGY4OC0zNDM2M2JjN2M0YzAiOnsiY3JlYXRlIjo2MDAwMDAwMDAwMDAsImRlbGV0ZSI6OTAwMDAwMDAwMDAwfSwic2NoZW1hX3ZlcnNpb24iOiIxIn0=", - "dependencies": [ - "aws_security_group.api_gateway_sg", - "aws_security_group.bastion_sg", - "aws_security_group.loadbalancer_sg", - "module.vpc.aws_vpc.this" - ], - "create_before_destroy": true - } - ] - }, - { - "mode": "managed", - "type": "aws_security_group", - "name": "storage_nodes_sg", - "provider": "provider[\"registry.terraform.io/hashicorp/aws\"]", - "instances": [ - { - "schema_version": 1, - "attributes": { - "arn": "arn:aws:ec2:us-east-2:565979732541:security-group/sg-0489217a5244cd1fa", - "description": "CSI Cluster Container Security Group", - "egress": [ - { - "cidr_blocks": [ - "0.0.0.0/0" - ], - "description": "all output traffic so that packages can be downloaded", - "from_port": 0, - "ipv6_cidr_blocks": [], - "prefix_list_ids": [], - "protocol": "-1", - "security_groups": [], - "self": false, - "to_port": 0 - } - ], - "id": "sg-0489217a5244cd1fa", - "ingress": [ - { - "cidr_blocks": [ - "0.0.0.0/0" - ], - "description": "Allow DNS resolution from worker nodes", - "from_port": 53, - "ipv6_cidr_blocks": [], - "prefix_list_ids": [], - "protocol": "udp", - "security_groups": [], - "self": false, - "to_port": 53 - }, - { - "cidr_blocks": [ - "0.0.0.0/0" - ], - "description": "Allow UDP traffic on ephemeral ports", - "from_port": 1025, - "ipv6_cidr_blocks": [], - "prefix_list_ids": [], - "protocol": "udp", - "security_groups": [], - "self": false, - "to_port": 65535 - }, - { - "cidr_blocks": [ - "0.0.0.0/0" - ], - "description": "Docker Swarm Manager Communication", - "from_port": 2377, - "ipv6_cidr_blocks": [], - "prefix_list_ids": [], - "protocol": "tcp", - "security_groups": [], - "self": false, - "to_port": 2377 - }, - { - "cidr_blocks": [ - "0.0.0.0/0" - ], - "description": "Docker Swarm Node Communication TCP", - "from_port": 7946, - "ipv6_cidr_blocks": [], - "prefix_list_ids": [], - "protocol": "tcp", - "security_groups": [], - "self": false, - "to_port": 7946 - }, - { - "cidr_blocks": [ - "0.0.0.0/0" - ], - "description": "Docker Swarm Node Communication UDP", - "from_port": 7946, - "ipv6_cidr_blocks": [], - "prefix_list_ids": [], - "protocol": "udp", - "security_groups": [], - "self": false, - "to_port": 7946 - }, - { - "cidr_blocks": [ - "0.0.0.0/0" - ], - "description": "Docker Swarm Overlay Network", - "from_port": 4789, - "ipv6_cidr_blocks": [], - "prefix_list_ids": [], - "protocol": "udp", - "security_groups": [], - "self": false, - "to_port": 4789 - }, - { - "cidr_blocks": [ - "0.0.0.0/0" - ], - "description": "Graylog GELF Communication TCP", - "from_port": 12201, - "ipv6_cidr_blocks": [], - "prefix_list_ids": [], - "protocol": "tcp", - "security_groups": [], - "self": false, - "to_port": 12201 - }, - { - "cidr_blocks": [ - "0.0.0.0/0" - ], - "description": "Graylog GELF Communication TCP", - "from_port": 12201, - "ipv6_cidr_blocks": [], - "prefix_list_ids": [], - "protocol": "udp", - "security_groups": [], - "self": false, - "to_port": 12201 - }, - { - "cidr_blocks": [ - "0.0.0.0/0" - ], - "description": "k3s cluster", - "from_port": 6443, - "ipv6_cidr_blocks": [], - "prefix_list_ids": [], - "protocol": "tcp", - "security_groups": [], - "self": false, - "to_port": 6443 - }, - { - "cidr_blocks": [ - "0.0.0.0/0" - ], - "description": "k8s node communication", - "from_port": 10250, - "ipv6_cidr_blocks": [], - "prefix_list_ids": [], - "protocol": "tcp", - "security_groups": [], - "self": false, - "to_port": 10255 - }, - { - "cidr_blocks": [ - "0.0.0.0/0" - ], - "description": "storage node lvol connect", - "from_port": 4420, - "ipv6_cidr_blocks": [], - "prefix_list_ids": [], - "protocol": "tcp", - "security_groups": [], - "self": false, - "to_port": 4420 - }, - { - "cidr_blocks": [], - "description": "For SPDK Proxy for the storage node from mgmt node", - "from_port": 8080, - "ipv6_cidr_blocks": [], - "prefix_list_ids": [], - "protocol": "tcp", - "security_groups": [ - "sg-014b0598b9509d331" - ], - "self": false, - "to_port": 8080 - }, - { - "cidr_blocks": [], - "description": "For SPDK Proxy for the storage node from other storage nodes", - "from_port": 8080, - "ipv6_cidr_blocks": [], - "prefix_list_ids": [], - "protocol": "tcp", - "security_groups": [], - "self": true, - "to_port": 8080 - }, - { - "cidr_blocks": [], - "description": "SSH from Bastion Server", - "from_port": 22, - "ipv6_cidr_blocks": [], - "prefix_list_ids": [], - "protocol": "tcp", - "security_groups": [ - "sg-0265fa831715dc772" - ], - "self": false, - "to_port": 22 - }, - { - "cidr_blocks": [], - "description": "access SNodeAPI from mgmt and k3s nodes", - "from_port": 5000, - "ipv6_cidr_blocks": [], - "prefix_list_ids": [], - "protocol": "tcp", - "security_groups": [ - "sg-014b0598b9509d331", - "sg-0254cbe75e9f87a8e" - ], - "self": false, - "to_port": 5000 - }, - { - "cidr_blocks": [], - "description": "access SNodeAPI from snode node workers", - "from_port": 5000, - "ipv6_cidr_blocks": [], - "prefix_list_ids": [], - "protocol": "tcp", - "security_groups": [], - "self": true, - "to_port": 5000 - }, - { - "cidr_blocks": [], - "description": "allow ICMP Echo", - "from_port": 8, - "ipv6_cidr_blocks": [], - "prefix_list_ids": [], - "protocol": "icmp", - "security_groups": [ - "sg-014b0598b9509d331" - ], - "self": false, - "to_port": 0 - }, - { - "cidr_blocks": [], - "description": "docker engine API", - "from_port": 2375, - "ipv6_cidr_blocks": [], - "prefix_list_ids": [], - "protocol": "tcp", - "security_groups": [ - "sg-014b0598b9509d331" - ], - "self": false, - "to_port": 2375 - }, - { - "cidr_blocks": [], - "description": "prometheus scrape from mgmt nodes", - "from_port": 9100, - "ipv6_cidr_blocks": [], - "prefix_list_ids": [], - "protocol": "tcp", - "security_groups": [ - "sg-014b0598b9509d331" - ], - "self": false, - "to_port": 9100 - } - ], - "name": "israel-storage_nodes_sg", - "name_prefix": "", - "owner_id": "565979732541", - "revoke_rules_on_delete": false, - "tags": {}, - "tags_all": {}, - "timeouts": null, - "vpc_id": "vpc-0365a16226384093d" - }, - "sensitive_attributes": [], - "private": "eyJlMmJmYjczMC1lY2FhLTExZTYtOGY4OC0zNDM2M2JjN2M0YzAiOnsiY3JlYXRlIjo2MDAwMDAwMDAwMDAsImRlbGV0ZSI6OTAwMDAwMDAwMDAwfSwic2NoZW1hX3ZlcnNpb24iOiIxIn0=", - "dependencies": [ - "aws_security_group.api_gateway_sg", - "aws_security_group.bastion_sg", - "aws_security_group.extra_nodes_sg", - "aws_security_group.loadbalancer_sg", - "aws_security_group.mgmt_node_sg", - "module.vpc.aws_vpc.this" - ] - } - ] - }, - { - "mode": "managed", - "type": "aws_security_group", - "name": "tfengine_sg", - "provider": "provider[\"registry.terraform.io/hashicorp/aws\"]", - "instances": [ - { - "schema_version": 1, - "attributes": { - "arn": "arn:aws:ec2:us-east-2:565979732541:security-group/sg-056dcd70dfcbd4456", - "description": "tfEngine security group", - "egress": [ - { - "cidr_blocks": [ - "0.0.0.0/0" - ], - "description": "", - "from_port": 0, - "ipv6_cidr_blocks": [], - "prefix_list_ids": [], - "protocol": "-1", - "security_groups": [], - "self": false, - "to_port": 0 - } - ], - "id": "sg-056dcd70dfcbd4456", - "ingress": [], - "name": "terraform-2024102114220439070000000c", - "name_prefix": "terraform-", - "owner_id": "565979732541", - "revoke_rules_on_delete": false, - "tags": {}, - "tags_all": {}, - "timeouts": null, - "vpc_id": "vpc-0365a16226384093d" - }, - "sensitive_attributes": [], - "private": "eyJlMmJmYjczMC1lY2FhLTExZTYtOGY4OC0zNDM2M2JjN2M0YzAiOnsiY3JlYXRlIjo2MDAwMDAwMDAwMDAsImRlbGV0ZSI6OTAwMDAwMDAwMDAwfSwic2NoZW1hX3ZlcnNpb24iOiIxIn0=", - "dependencies": [ - "module.vpc.aws_vpc.this" - ], - "create_before_destroy": true - } - ] - }, - { - "mode": "managed", - "type": "random_id", - "name": "id", - "provider": "provider[\"registry.terraform.io/hashicorp/random\"]", - "instances": [ - { - "schema_version": 0, - "attributes": { - "b64_std": "FlpS6pY=", - "b64_url": "FlpS6pY", - "byte_length": 5, - "dec": "96004663958", - "hex": "165a52ea96", - "id": "FlpS6pY", - "keepers": null, - "prefix": null - }, - "sensitive_attributes": [] - } - ] - }, - { - "module": "module.apigatewayendpoint[0]", - "mode": "managed", - "type": "aws_apigatewayv2_api", - "name": "simplyblock_api", - "provider": "provider[\"registry.terraform.io/hashicorp/aws\"]", - "instances": [ - { - "schema_version": 0, - "attributes": { - "api_endpoint": "https://y9jloxzybl.execute-api.us-east-2.amazonaws.com", - "api_key_selection_expression": "$request.header.x-api-key", - "arn": "arn:aws:apigateway:us-east-2::/apis/y9jloxzybl", - "body": null, - "cors_configuration": [], - "credentials_arn": null, - "description": "", - "disable_execute_api_endpoint": false, - "execution_arn": "arn:aws:execute-api:us-east-2:565979732541:y9jloxzybl", - "fail_on_warnings": null, - "id": "y9jloxzybl", - "name": "israel-simplyblock-mgmt-api-http", - "protocol_type": "HTTP", - "route_key": null, - "route_selection_expression": "$request.method $request.path", - "tags": {}, - "tags_all": {}, - "target": null, - "version": "" - }, - "sensitive_attributes": [], - "private": "bnVsbA==" - } - ] - }, - { - "module": "module.apigatewayendpoint[0]", - "mode": "managed", - "type": "aws_apigatewayv2_integration", - "name": "root_integration", - "provider": "provider[\"registry.terraform.io/hashicorp/aws\"]", - "instances": [ - { - "schema_version": 0, - "attributes": { - "api_id": "y9jloxzybl", - "connection_id": "d8lm0m", - "connection_type": "VPC_LINK", - "content_handling_strategy": "", - "credentials_arn": "", - "description": "", - "id": "b9saavk", - "integration_method": "ANY", - "integration_response_selection_expression": "", - "integration_subtype": "", - "integration_type": "HTTP_PROXY", - "integration_uri": "arn:aws:elasticloadbalancing:us-east-2:565979732541:listener/net/israel-root-lb/0572a73e75df8550/7cb6317376bf1bfa", - "passthrough_behavior": "", - "payload_format_version": "1.0", - "request_parameters": {}, - "request_templates": {}, - "response_parameters": [], - "template_selection_expression": "", - "timeout_milliseconds": 30000, - "tls_config": [] - }, - "sensitive_attributes": [], - "private": "bnVsbA==", - "dependencies": [ - "aws_security_group.api_gateway_sg", - "aws_security_group.loadbalancer_sg", - "data.aws_availability_zones.available", - "module.apigatewayendpoint.aws_apigatewayv2_api.simplyblock_api", - "module.apigatewayendpoint.aws_apigatewayv2_vpc_link.vpc_link", - "module.apigatewayendpoint.aws_lb.root_internal_lb", - "module.apigatewayendpoint.aws_lb_listener.root_lb_listener", - "module.apigatewayendpoint.aws_lb_target_group.root_target", - "module.vpc.aws_subnet.public", - "module.vpc.aws_vpc.this", - "module.vpc.aws_vpc_ipv4_cidr_block_association.this" - ] - } - ] - }, - { - "module": "module.apigatewayendpoint[0]", - "mode": "managed", - "type": "aws_apigatewayv2_route", - "name": "root", - "provider": "provider[\"registry.terraform.io/hashicorp/aws\"]", - "instances": [ - { - "schema_version": 0, - "attributes": { - "api_id": "y9jloxzybl", - "api_key_required": false, - "authorization_scopes": [], - "authorization_type": "NONE", - "authorizer_id": "", - "id": "8v9s91e", - "model_selection_expression": "", - "operation_name": "", - "request_models": {}, - "request_parameter": [], - "route_key": "ANY /{proxy+}", - "route_response_selection_expression": "", - "target": "integrations/b9saavk" - }, - "sensitive_attributes": [], - "private": "bnVsbA==", - "dependencies": [ - "aws_security_group.api_gateway_sg", - "aws_security_group.loadbalancer_sg", - "data.aws_availability_zones.available", - "module.apigatewayendpoint.aws_apigatewayv2_api.simplyblock_api", - "module.apigatewayendpoint.aws_apigatewayv2_integration.root_integration", - "module.apigatewayendpoint.aws_apigatewayv2_vpc_link.vpc_link", - "module.apigatewayendpoint.aws_lb.root_internal_lb", - "module.apigatewayendpoint.aws_lb_listener.root_lb_listener", - "module.apigatewayendpoint.aws_lb_target_group.root_target", - "module.vpc.aws_subnet.public", - "module.vpc.aws_vpc.this", - "module.vpc.aws_vpc_ipv4_cidr_block_association.this" - ] - } - ] - }, - { - "module": "module.apigatewayendpoint[0]", - "mode": "managed", - "type": "aws_apigatewayv2_stage", - "name": "default", - "provider": "provider[\"registry.terraform.io/hashicorp/aws\"]", - "instances": [ - { - "schema_version": 0, - "attributes": { - "access_log_settings": [], - "api_id": "y9jloxzybl", - "arn": "arn:aws:apigateway:us-east-2::/apis/y9jloxzybl/stages/$default", - "auto_deploy": true, - "client_certificate_id": "", - "default_route_settings": [ - { - "data_trace_enabled": false, - "detailed_metrics_enabled": false, - "logging_level": "", - "throttling_burst_limit": 0, - "throttling_rate_limit": 0 - } - ], - "deployment_id": "nuqewo", - "description": "", - "execution_arn": "arn:aws:execute-api:us-east-2:565979732541:y9jloxzybl/$default", - "id": "$default", - "invoke_url": "https://y9jloxzybl.execute-api.us-east-2.amazonaws.com/", - "name": "$default", - "route_settings": [], - "stage_variables": {}, - "tags": {}, - "tags_all": {} - }, - "sensitive_attributes": [], - "private": "bnVsbA==", - "dependencies": [ - "module.apigatewayendpoint.aws_apigatewayv2_api.simplyblock_api" - ] - } - ] - }, - { - "module": "module.apigatewayendpoint[0]", - "mode": "managed", - "type": "aws_apigatewayv2_vpc_link", - "name": "vpc_link", - "provider": "provider[\"registry.terraform.io/hashicorp/aws\"]", - "instances": [ - { - "schema_version": 0, - "attributes": { - "arn": "arn:aws:apigateway:us-east-2::/vpclinks/d8lm0m", - "id": "d8lm0m", - "name": "israel-simplyblock-vpclink", - "security_group_ids": [ - "sg-0c559d0b29509c103" - ], - "subnet_ids": [ - "subnet-0543a02417c794f33", - "subnet-0624fa4ce4fc3c03c" - ], - "tags": {}, - "tags_all": {} - }, - "sensitive_attributes": [], - "private": "bnVsbA==", - "dependencies": [ - "aws_security_group.api_gateway_sg", - "data.aws_availability_zones.available", - "module.vpc.aws_subnet.public", - "module.vpc.aws_vpc.this", - "module.vpc.aws_vpc_ipv4_cidr_block_association.this" - ] - } - ] - }, - { - "module": "module.apigatewayendpoint[0]", - "mode": "managed", - "type": "aws_lb", - "name": "root_internal_lb", - "provider": "provider[\"registry.terraform.io/hashicorp/aws\"]", - "instances": [ - { - "schema_version": 0, - "attributes": { - "access_logs": [ - { - "bucket": "", - "enabled": false, - "prefix": "" - } - ], - "arn": "arn:aws:elasticloadbalancing:us-east-2:565979732541:loadbalancer/net/israel-root-lb/0572a73e75df8550", - "arn_suffix": "net/israel-root-lb/0572a73e75df8550", - "connection_logs": [], - "customer_owned_ipv4_pool": "", - "desync_mitigation_mode": null, - "dns_name": "israel-root-lb-0572a73e75df8550.elb.us-east-2.amazonaws.com", - "dns_record_client_routing_policy": "any_availability_zone", - "drop_invalid_header_fields": null, - "enable_cross_zone_load_balancing": false, - "enable_deletion_protection": false, - "enable_http2": null, - "enable_tls_version_and_cipher_suite_headers": null, - "enable_waf_fail_open": null, - "enable_xff_client_port": null, - "enforce_security_group_inbound_rules_on_private_link_traffic": "", - "id": "arn:aws:elasticloadbalancing:us-east-2:565979732541:loadbalancer/net/israel-root-lb/0572a73e75df8550", - "idle_timeout": null, - "internal": true, - "ip_address_type": "ipv4", - "load_balancer_type": "network", - "name": "israel-root-lb", - "name_prefix": "", - "preserve_host_header": null, - "security_groups": [ - "sg-01795d3a1629fb919" - ], - "subnet_mapping": [ - { - "allocation_id": "", - "ipv6_address": "", - "outpost_id": "", - "private_ipv4_address": "", - "subnet_id": "subnet-0543a02417c794f33" - }, - { - "allocation_id": "", - "ipv6_address": "", - "outpost_id": "", - "private_ipv4_address": "", - "subnet_id": "subnet-0624fa4ce4fc3c03c" - } - ], - "subnets": [ - "subnet-0543a02417c794f33", - "subnet-0624fa4ce4fc3c03c" - ], - "tags": {}, - "tags_all": {}, - "timeouts": null, - "vpc_id": "vpc-0365a16226384093d", - "xff_header_processing_mode": null, - "zone_id": "ZLMOA37VPKANP" - }, - "sensitive_attributes": [], - "private": "eyJlMmJmYjczMC1lY2FhLTExZTYtOGY4OC0zNDM2M2JjN2M0YzAiOnsiY3JlYXRlIjo2MDAwMDAwMDAwMDAsImRlbGV0ZSI6NjAwMDAwMDAwMDAwLCJ1cGRhdGUiOjYwMDAwMDAwMDAwMH19", - "dependencies": [ - "aws_security_group.api_gateway_sg", - "aws_security_group.loadbalancer_sg", - "data.aws_availability_zones.available", - "module.vpc.aws_subnet.public", - "module.vpc.aws_vpc.this", - "module.vpc.aws_vpc_ipv4_cidr_block_association.this" - ] - } - ] - }, - { - "module": "module.apigatewayendpoint[0]", - "mode": "managed", - "type": "aws_lb_listener", - "name": "root_lb_listener", - "provider": "provider[\"registry.terraform.io/hashicorp/aws\"]", - "instances": [ - { - "schema_version": 0, - "attributes": { - "alpn_policy": null, - "arn": "arn:aws:elasticloadbalancing:us-east-2:565979732541:listener/net/israel-root-lb/0572a73e75df8550/7cb6317376bf1bfa", - "certificate_arn": null, - "default_action": [ - { - "authenticate_cognito": [], - "authenticate_oidc": [], - "fixed_response": [], - "forward": [], - "order": 1, - "redirect": [], - "target_group_arn": "arn:aws:elasticloadbalancing:us-east-2:565979732541:targetgroup/israel-root-tg/9424d61e933c8a9a", - "type": "forward" - } - ], - "id": "arn:aws:elasticloadbalancing:us-east-2:565979732541:listener/net/israel-root-lb/0572a73e75df8550/7cb6317376bf1bfa", - "load_balancer_arn": "arn:aws:elasticloadbalancing:us-east-2:565979732541:loadbalancer/net/israel-root-lb/0572a73e75df8550", - "mutual_authentication": [], - "port": 80, - "protocol": "TCP", - "ssl_policy": "", - "tags": {}, - "tags_all": {}, - "timeouts": null - }, - "sensitive_attributes": [], - "private": "eyJlMmJmYjczMC1lY2FhLTExZTYtOGY4OC0zNDM2M2JjN2M0YzAiOnsiY3JlYXRlIjozMDAwMDAwMDAwMDAsInVwZGF0ZSI6MzAwMDAwMDAwMDAwfX0=", - "dependencies": [ - "aws_security_group.api_gateway_sg", - "aws_security_group.loadbalancer_sg", - "data.aws_availability_zones.available", - "module.apigatewayendpoint.aws_lb.root_internal_lb", - "module.apigatewayendpoint.aws_lb_target_group.root_target", - "module.vpc.aws_subnet.public", - "module.vpc.aws_vpc.this", - "module.vpc.aws_vpc_ipv4_cidr_block_association.this" - ] - } - ] - }, - { - "module": "module.apigatewayendpoint[0]", - "mode": "managed", - "type": "aws_lb_target_group", - "name": "root_target", - "provider": "provider[\"registry.terraform.io/hashicorp/aws\"]", - "instances": [ - { - "schema_version": 0, - "attributes": { - "arn": "arn:aws:elasticloadbalancing:us-east-2:565979732541:targetgroup/israel-root-tg/9424d61e933c8a9a", - "arn_suffix": "targetgroup/israel-root-tg/9424d61e933c8a9a", - "connection_termination": false, - "deregistration_delay": "300", - "health_check": [ - { - "enabled": true, - "healthy_threshold": 5, - "interval": 30, - "matcher": "", - "path": "", - "port": "traffic-port", - "protocol": "TCP", - "timeout": 10, - "unhealthy_threshold": 2 - } - ], - "id": "arn:aws:elasticloadbalancing:us-east-2:565979732541:targetgroup/israel-root-tg/9424d61e933c8a9a", - "ip_address_type": "ipv4", - "lambda_multi_value_headers_enabled": false, - "load_balancer_arns": [ - "arn:aws:elasticloadbalancing:us-east-2:565979732541:loadbalancer/net/israel-root-lb/0572a73e75df8550" - ], - "load_balancing_algorithm_type": null, - "load_balancing_anomaly_mitigation": null, - "load_balancing_cross_zone_enabled": "use_load_balancer_configuration", - "name": "israel-root-tg", - "name_prefix": "", - "port": 80, - "preserve_client_ip": "true", - "protocol": "TCP", - "protocol_version": null, - "proxy_protocol_v2": false, - "slow_start": 0, - "stickiness": [ - { - "cookie_duration": 0, - "cookie_name": "", - "enabled": false, - "type": "source_ip" - } - ], - "tags": {}, - "tags_all": {}, - "target_failover": [ - { - "on_deregistration": null, - "on_unhealthy": null - } - ], - "target_health_state": [ - { - "enable_unhealthy_connection_termination": true - } - ], - "target_type": "instance", - "vpc_id": "vpc-0365a16226384093d" - }, - "sensitive_attributes": [], - "private": "bnVsbA==", - "dependencies": [ - "module.vpc.aws_vpc.this" - ] - } - ] - }, - { - "module": "module.apigatewayendpoint[0]", - "mode": "managed", - "type": "aws_lb_target_group_attachment", - "name": "root_target_attachment", - "provider": "provider[\"registry.terraform.io/hashicorp/aws\"]", - "instances": [ - { - "index_key": 0, - "schema_version": 0, - "attributes": { - "availability_zone": null, - "id": "arn:aws:elasticloadbalancing:us-east-2:565979732541:targetgroup/israel-root-tg/9424d61e933c8a9a-20241021142240779900000019", - "port": 80, - "target_group_arn": "arn:aws:elasticloadbalancing:us-east-2:565979732541:targetgroup/israel-root-tg/9424d61e933c8a9a", - "target_id": "i-099e0f4d4d67759b6" - }, - "sensitive_attributes": [], - "private": "bnVsbA==", - "dependencies": [ - "aws_iam_instance_profile.inst_profile", - "aws_iam_role.role", - "aws_instance.mgmt_nodes", - "aws_security_group.api_gateway_sg", - "aws_security_group.bastion_sg", - "aws_security_group.loadbalancer_sg", - "aws_security_group.mgmt_node_sg", - "data.aws_availability_zones.available", - "data.aws_iam_policy_document.assume_role_policy", - "module.apigatewayendpoint.aws_lb_target_group.root_target", - "module.vpc.aws_subnet.private", - "module.vpc.aws_vpc.this", - "module.vpc.aws_vpc_ipv4_cidr_block_association.this" - ] - } - ] - }, - { - "module": "module.vpc", - "mode": "managed", - "type": "aws_default_network_acl", - "name": "this", - "provider": "provider[\"registry.terraform.io/hashicorp/aws\"]", - "instances": [ - { - "index_key": 0, - "schema_version": 0, - "attributes": { - "arn": "arn:aws:ec2:us-east-2:565979732541:network-acl/acl-0de2087e2d39073a4", - "default_network_acl_id": "acl-0de2087e2d39073a4", - "egress": [ - { - "action": "allow", - "cidr_block": "", - "from_port": 0, - "icmp_code": 0, - "icmp_type": 0, - "ipv6_cidr_block": "::/0", - "protocol": "-1", - "rule_no": 101, - "to_port": 0 - }, - { - "action": "allow", - "cidr_block": "0.0.0.0/0", - "from_port": 0, - "icmp_code": 0, - "icmp_type": 0, - "ipv6_cidr_block": "", - "protocol": "-1", - "rule_no": 100, - "to_port": 0 - } - ], - "id": "acl-0de2087e2d39073a4", - "ingress": [ - { - "action": "allow", - "cidr_block": "", - "from_port": 0, - "icmp_code": 0, - "icmp_type": 0, - "ipv6_cidr_block": "::/0", - "protocol": "-1", - "rule_no": 101, - "to_port": 0 - }, - { - "action": "allow", - "cidr_block": "0.0.0.0/0", - "from_port": 0, - "icmp_code": 0, - "icmp_type": 0, - "ipv6_cidr_block": "", - "protocol": "-1", - "rule_no": 100, - "to_port": 0 - } - ], - "owner_id": "565979732541", - "subnet_ids": [ - "subnet-03c180e84f6854a15", - "subnet-0543a02417c794f33", - "subnet-0624fa4ce4fc3c03c", - "subnet-0d4485b4ba30cf005" - ], - "tags": { - "Environment": "israel-dev", - "Name": "israel-storage-vpc-sb-default", - "Terraform": "true" - }, - "tags_all": { - "Environment": "israel-dev", - "Name": "israel-storage-vpc-sb-default", - "Terraform": "true" - }, - "vpc_id": "vpc-0365a16226384093d" - }, - "sensitive_attributes": [], - "private": "bnVsbA==", - "dependencies": [ - "module.vpc.aws_vpc.this" - ] - } - ] - }, - { - "module": "module.vpc", - "mode": "managed", - "type": "aws_default_route_table", - "name": "default", - "provider": "provider[\"registry.terraform.io/hashicorp/aws\"]", - "instances": [ - { - "index_key": 0, - "schema_version": 0, - "attributes": { - "arn": "arn:aws:ec2:us-east-2:565979732541:route-table/rtb-0fb4f7f5bd4340746", - "default_route_table_id": "rtb-0fb4f7f5bd4340746", - "id": "rtb-0fb4f7f5bd4340746", - "owner_id": "565979732541", - "propagating_vgws": [], - "route": [], - "tags": { - "Environment": "israel-dev", - "Name": "israel-storage-vpc-sb-default", - "Terraform": "true" - }, - "tags_all": { - "Environment": "israel-dev", - "Name": "israel-storage-vpc-sb-default", - "Terraform": "true" - }, - "timeouts": { - "create": "5m", - "update": "5m" - }, - "vpc_id": "vpc-0365a16226384093d" - }, - "sensitive_attributes": [], - "private": "eyJlMmJmYjczMC1lY2FhLTExZTYtOGY4OC0zNDM2M2JjN2M0YzAiOnsiY3JlYXRlIjozMDAwMDAwMDAwMDAsInVwZGF0ZSI6MzAwMDAwMDAwMDAwfX0=", - "dependencies": [ - "module.vpc.aws_vpc.this" - ] - } - ] - }, - { - "module": "module.vpc", - "mode": "managed", - "type": "aws_default_security_group", - "name": "this", - "provider": "provider[\"registry.terraform.io/hashicorp/aws\"]", - "instances": [ - { - "index_key": 0, - "schema_version": 1, - "attributes": { - "arn": "arn:aws:ec2:us-east-2:565979732541:security-group/sg-0a3810d82bbff09bc", - "description": "default VPC security group", - "egress": [], - "id": "sg-0a3810d82bbff09bc", - "ingress": [], - "name": "default", - "name_prefix": "", - "owner_id": "565979732541", - "revoke_rules_on_delete": false, - "tags": { - "Environment": "israel-dev", - "Name": "israel-storage-vpc-sb-default", - "Terraform": "true" - }, - "tags_all": { - "Environment": "israel-dev", - "Name": "israel-storage-vpc-sb-default", - "Terraform": "true" - }, - "vpc_id": "vpc-0365a16226384093d" - }, - "sensitive_attributes": [], - "private": "eyJzY2hlbWFfdmVyc2lvbiI6IjEifQ==", - "dependencies": [ - "module.vpc.aws_vpc.this" - ] - } - ] - }, - { - "module": "module.vpc", - "mode": "managed", - "type": "aws_eip", - "name": "nat", - "provider": "provider[\"registry.terraform.io/hashicorp/aws\"]", - "instances": [ - { - "index_key": 0, - "schema_version": 0, - "attributes": { - "address": null, - "allocation_id": "eipalloc-0ef8b284c6526df5f", - "associate_with_private_ip": null, - "association_id": "eipassoc-06976cd7160933474", - "carrier_ip": "", - "customer_owned_ip": "", - "customer_owned_ipv4_pool": "", - "domain": "vpc", - "id": "eipalloc-0ef8b284c6526df5f", - "instance": "", - "network_border_group": "us-east-2", - "network_interface": "eni-0d67bbed1e57bb9e3", - "private_dns": "ip-10-0-2-146.us-east-2.compute.internal", - "private_ip": "10.0.2.146", - "public_dns": "ec2-3-147-91-47.us-east-2.compute.amazonaws.com", - "public_ip": "3.147.91.47", - "public_ipv4_pool": "amazon", - "tags": { - "Environment": "israel-dev", - "Name": "israel-storage-vpc-sb-us-east-2a", - "Terraform": "true" - }, - "tags_all": { - "Environment": "israel-dev", - "Name": "israel-storage-vpc-sb-us-east-2a", - "Terraform": "true" - }, - "timeouts": null, - "vpc": true - }, - "sensitive_attributes": [], - "private": "eyJlMmJmYjczMC1lY2FhLTExZTYtOGY4OC0zNDM2M2JjN2M0YzAiOnsiZGVsZXRlIjoxODAwMDAwMDAwMDAsInJlYWQiOjkwMDAwMDAwMDAwMCwidXBkYXRlIjozMDAwMDAwMDAwMDB9fQ==", - "dependencies": [ - "data.aws_availability_zones.available", - "module.vpc.aws_internet_gateway.this", - "module.vpc.aws_vpc.this", - "module.vpc.aws_vpc_ipv4_cidr_block_association.this" - ] - }, - { - "index_key": 1, - "schema_version": 0, - "attributes": { - "address": null, - "allocation_id": "eipalloc-0fbb3202e470c526f", - "associate_with_private_ip": null, - "association_id": "eipassoc-0687a4816cd6a5b2c", - "carrier_ip": "", - "customer_owned_ip": "", - "customer_owned_ipv4_pool": "", - "domain": "vpc", - "id": "eipalloc-0fbb3202e470c526f", - "instance": "", - "network_border_group": "us-east-2", - "network_interface": "eni-0c0e4c5688fd033fb", - "private_dns": "ip-10-0-4-193.us-east-2.compute.internal", - "private_ip": "10.0.4.193", - "public_dns": "ec2-3-139-143-176.us-east-2.compute.amazonaws.com", - "public_ip": "3.139.143.176", - "public_ipv4_pool": "amazon", - "tags": { - "Environment": "israel-dev", - "Name": "israel-storage-vpc-sb-us-east-2b", - "Terraform": "true" - }, - "tags_all": { - "Environment": "israel-dev", - "Name": "israel-storage-vpc-sb-us-east-2b", - "Terraform": "true" - }, - "timeouts": null, - "vpc": true - }, - "sensitive_attributes": [], - "private": "eyJlMmJmYjczMC1lY2FhLTExZTYtOGY4OC0zNDM2M2JjN2M0YzAiOnsiZGVsZXRlIjoxODAwMDAwMDAwMDAsInJlYWQiOjkwMDAwMDAwMDAwMCwidXBkYXRlIjozMDAwMDAwMDAwMDB9fQ==", - "dependencies": [ - "data.aws_availability_zones.available", - "module.vpc.aws_internet_gateway.this", - "module.vpc.aws_vpc.this", - "module.vpc.aws_vpc_ipv4_cidr_block_association.this" - ] - } - ] - }, - { - "module": "module.vpc", - "mode": "managed", - "type": "aws_internet_gateway", - "name": "this", - "provider": "provider[\"registry.terraform.io/hashicorp/aws\"]", - "instances": [ - { - "index_key": 0, - "schema_version": 0, - "attributes": { - "arn": "arn:aws:ec2:us-east-2:565979732541:internet-gateway/igw-016f20e890fd6362a", - "id": "igw-016f20e890fd6362a", - "owner_id": "565979732541", - "tags": { - "Environment": "israel-dev", - "Name": "israel-storage-vpc-sb", - "Terraform": "true" - }, - "tags_all": { - "Environment": "israel-dev", - "Name": "israel-storage-vpc-sb", - "Terraform": "true" - }, - "timeouts": null, - "vpc_id": "vpc-0365a16226384093d" - }, - "sensitive_attributes": [], - "private": "eyJlMmJmYjczMC1lY2FhLTExZTYtOGY4OC0zNDM2M2JjN2M0YzAiOnsiY3JlYXRlIjoxMjAwMDAwMDAwMDAwLCJkZWxldGUiOjEyMDAwMDAwMDAwMDAsInVwZGF0ZSI6MTIwMDAwMDAwMDAwMH19", - "dependencies": [ - "module.vpc.aws_vpc.this", - "module.vpc.aws_vpc_ipv4_cidr_block_association.this" - ] - } - ] - }, - { - "module": "module.vpc", - "mode": "managed", - "type": "aws_nat_gateway", - "name": "this", - "provider": "provider[\"registry.terraform.io/hashicorp/aws\"]", - "instances": [ - { - "index_key": 0, - "schema_version": 0, - "attributes": { - "allocation_id": "eipalloc-0ef8b284c6526df5f", - "association_id": "eipassoc-06976cd7160933474", - "connectivity_type": "public", - "id": "nat-011d6cb5053da22e5", - "network_interface_id": "eni-0d67bbed1e57bb9e3", - "private_ip": "10.0.2.146", - "public_ip": "3.147.91.47", - "secondary_allocation_ids": [], - "secondary_private_ip_address_count": 0, - "secondary_private_ip_addresses": [], - "subnet_id": "subnet-0624fa4ce4fc3c03c", - "tags": { - "Environment": "israel-dev", - "Name": "israel-storage-vpc-sb-us-east-2a", - "Terraform": "true" - }, - "tags_all": { - "Environment": "israel-dev", - "Name": "israel-storage-vpc-sb-us-east-2a", - "Terraform": "true" - }, - "timeouts": null - }, - "sensitive_attributes": [], - "private": "eyJlMmJmYjczMC1lY2FhLTExZTYtOGY4OC0zNDM2M2JjN2M0YzAiOnsiY3JlYXRlIjo2MDAwMDAwMDAwMDAsImRlbGV0ZSI6MTgwMDAwMDAwMDAwMCwidXBkYXRlIjo2MDAwMDAwMDAwMDB9fQ==", - "dependencies": [ - "data.aws_availability_zones.available", - "module.vpc.aws_eip.nat", - "module.vpc.aws_internet_gateway.this", - "module.vpc.aws_subnet.public", - "module.vpc.aws_vpc.this", - "module.vpc.aws_vpc_ipv4_cidr_block_association.this" - ] - }, - { - "index_key": 1, - "schema_version": 0, - "attributes": { - "allocation_id": "eipalloc-0fbb3202e470c526f", - "association_id": "eipassoc-0687a4816cd6a5b2c", - "connectivity_type": "public", - "id": "nat-0954030e753e3a143", - "network_interface_id": "eni-0c0e4c5688fd033fb", - "private_ip": "10.0.4.193", - "public_ip": "3.139.143.176", - "secondary_allocation_ids": [], - "secondary_private_ip_address_count": 0, - "secondary_private_ip_addresses": [], - "subnet_id": "subnet-0543a02417c794f33", - "tags": { - "Environment": "israel-dev", - "Name": "israel-storage-vpc-sb-us-east-2b", - "Terraform": "true" - }, - "tags_all": { - "Environment": "israel-dev", - "Name": "israel-storage-vpc-sb-us-east-2b", - "Terraform": "true" - }, - "timeouts": null - }, - "sensitive_attributes": [], - "private": "eyJlMmJmYjczMC1lY2FhLTExZTYtOGY4OC0zNDM2M2JjN2M0YzAiOnsiY3JlYXRlIjo2MDAwMDAwMDAwMDAsImRlbGV0ZSI6MTgwMDAwMDAwMDAwMCwidXBkYXRlIjo2MDAwMDAwMDAwMDB9fQ==", - "dependencies": [ - "data.aws_availability_zones.available", - "module.vpc.aws_eip.nat", - "module.vpc.aws_internet_gateway.this", - "module.vpc.aws_subnet.public", - "module.vpc.aws_vpc.this", - "module.vpc.aws_vpc_ipv4_cidr_block_association.this" - ] - } - ] - }, - { - "module": "module.vpc", - "mode": "managed", - "type": "aws_route", - "name": "private_nat_gateway", - "provider": "provider[\"registry.terraform.io/hashicorp/aws\"]", - "instances": [ - { - "index_key": 0, - "schema_version": 0, - "attributes": { - "carrier_gateway_id": "", - "core_network_arn": "", - "destination_cidr_block": "0.0.0.0/0", - "destination_ipv6_cidr_block": "", - "destination_prefix_list_id": "", - "egress_only_gateway_id": "", - "gateway_id": "", - "id": "r-rtb-0eaafcaf46c0cbcb41080289494", - "instance_id": "", - "instance_owner_id": "", - "local_gateway_id": "", - "nat_gateway_id": "nat-011d6cb5053da22e5", - "network_interface_id": "", - "origin": "CreateRoute", - "route_table_id": "rtb-0eaafcaf46c0cbcb4", - "state": "active", - "timeouts": { - "create": "5m", - "delete": null, - "update": null - }, - "transit_gateway_id": "", - "vpc_endpoint_id": "", - "vpc_peering_connection_id": "" - }, - "sensitive_attributes": [], - "private": "eyJlMmJmYjczMC1lY2FhLTExZTYtOGY4OC0zNDM2M2JjN2M0YzAiOnsiY3JlYXRlIjozMDAwMDAwMDAwMDAsImRlbGV0ZSI6MzAwMDAwMDAwMDAwLCJ1cGRhdGUiOjEyMDAwMDAwMDAwMH19", - "dependencies": [ - "data.aws_availability_zones.available", - "module.vpc.aws_eip.nat", - "module.vpc.aws_internet_gateway.this", - "module.vpc.aws_nat_gateway.this", - "module.vpc.aws_route_table.private", - "module.vpc.aws_subnet.public", - "module.vpc.aws_vpc.this", - "module.vpc.aws_vpc_ipv4_cidr_block_association.this" - ] - }, - { - "index_key": 1, - "schema_version": 0, - "attributes": { - "carrier_gateway_id": "", - "core_network_arn": "", - "destination_cidr_block": "0.0.0.0/0", - "destination_ipv6_cidr_block": "", - "destination_prefix_list_id": "", - "egress_only_gateway_id": "", - "gateway_id": "", - "id": "r-rtb-078cd58f901cccf7c1080289494", - "instance_id": "", - "instance_owner_id": "", - "local_gateway_id": "", - "nat_gateway_id": "nat-0954030e753e3a143", - "network_interface_id": "", - "origin": "CreateRoute", - "route_table_id": "rtb-078cd58f901cccf7c", - "state": "active", - "timeouts": { - "create": "5m", - "delete": null, - "update": null - }, - "transit_gateway_id": "", - "vpc_endpoint_id": "", - "vpc_peering_connection_id": "" - }, - "sensitive_attributes": [], - "private": "eyJlMmJmYjczMC1lY2FhLTExZTYtOGY4OC0zNDM2M2JjN2M0YzAiOnsiY3JlYXRlIjozMDAwMDAwMDAwMDAsImRlbGV0ZSI6MzAwMDAwMDAwMDAwLCJ1cGRhdGUiOjEyMDAwMDAwMDAwMH19", - "dependencies": [ - "data.aws_availability_zones.available", - "module.vpc.aws_eip.nat", - "module.vpc.aws_internet_gateway.this", - "module.vpc.aws_nat_gateway.this", - "module.vpc.aws_route_table.private", - "module.vpc.aws_subnet.public", - "module.vpc.aws_vpc.this", - "module.vpc.aws_vpc_ipv4_cidr_block_association.this" - ] - } - ] - }, - { - "module": "module.vpc", - "mode": "managed", - "type": "aws_route", - "name": "public_internet_gateway", - "provider": "provider[\"registry.terraform.io/hashicorp/aws\"]", - "instances": [ - { - "index_key": 0, - "schema_version": 0, - "attributes": { - "carrier_gateway_id": "", - "core_network_arn": "", - "destination_cidr_block": "0.0.0.0/0", - "destination_ipv6_cidr_block": "", - "destination_prefix_list_id": "", - "egress_only_gateway_id": "", - "gateway_id": "igw-016f20e890fd6362a", - "id": "r-rtb-0b7cab6cce1c6a6aa1080289494", - "instance_id": "", - "instance_owner_id": "", - "local_gateway_id": "", - "nat_gateway_id": "", - "network_interface_id": "", - "origin": "CreateRoute", - "route_table_id": "rtb-0b7cab6cce1c6a6aa", - "state": "active", - "timeouts": { - "create": "5m", - "delete": null, - "update": null - }, - "transit_gateway_id": "", - "vpc_endpoint_id": "", - "vpc_peering_connection_id": "" - }, - "sensitive_attributes": [], - "private": "eyJlMmJmYjczMC1lY2FhLTExZTYtOGY4OC0zNDM2M2JjN2M0YzAiOnsiY3JlYXRlIjozMDAwMDAwMDAwMDAsImRlbGV0ZSI6MzAwMDAwMDAwMDAwLCJ1cGRhdGUiOjEyMDAwMDAwMDAwMH19", - "dependencies": [ - "module.vpc.aws_internet_gateway.this", - "module.vpc.aws_route_table.public", - "module.vpc.aws_vpc.this", - "module.vpc.aws_vpc_ipv4_cidr_block_association.this" - ] - } - ] - }, - { - "module": "module.vpc", - "mode": "managed", - "type": "aws_route_table", - "name": "private", - "provider": "provider[\"registry.terraform.io/hashicorp/aws\"]", - "instances": [ - { - "index_key": 0, - "schema_version": 0, - "attributes": { - "arn": "arn:aws:ec2:us-east-2:565979732541:route-table/rtb-0eaafcaf46c0cbcb4", - "id": "rtb-0eaafcaf46c0cbcb4", - "owner_id": "565979732541", - "propagating_vgws": [], - "route": [ - { - "carrier_gateway_id": "", - "cidr_block": "0.0.0.0/0", - "core_network_arn": "", - "destination_prefix_list_id": "", - "egress_only_gateway_id": "", - "gateway_id": "", - "ipv6_cidr_block": "", - "local_gateway_id": "", - "nat_gateway_id": "nat-011d6cb5053da22e5", - "network_interface_id": "", - "transit_gateway_id": "", - "vpc_endpoint_id": "", - "vpc_peering_connection_id": "" - } - ], - "tags": { - "Environment": "israel-dev", - "Name": "israel-storage-vpc-sb-private-us-east-2a", - "Terraform": "true" - }, - "tags_all": { - "Environment": "israel-dev", - "Name": "israel-storage-vpc-sb-private-us-east-2a", - "Terraform": "true" - }, - "timeouts": null, - "vpc_id": "vpc-0365a16226384093d" - }, - "sensitive_attributes": [], - "private": "eyJlMmJmYjczMC1lY2FhLTExZTYtOGY4OC0zNDM2M2JjN2M0YzAiOnsiY3JlYXRlIjozMDAwMDAwMDAwMDAsImRlbGV0ZSI6MzAwMDAwMDAwMDAwLCJ1cGRhdGUiOjEyMDAwMDAwMDAwMH19", - "dependencies": [ - "data.aws_availability_zones.available", - "module.vpc.aws_vpc.this", - "module.vpc.aws_vpc_ipv4_cidr_block_association.this" - ] - }, - { - "index_key": 1, - "schema_version": 0, - "attributes": { - "arn": "arn:aws:ec2:us-east-2:565979732541:route-table/rtb-078cd58f901cccf7c", - "id": "rtb-078cd58f901cccf7c", - "owner_id": "565979732541", - "propagating_vgws": [], - "route": [ - { - "carrier_gateway_id": "", - "cidr_block": "0.0.0.0/0", - "core_network_arn": "", - "destination_prefix_list_id": "", - "egress_only_gateway_id": "", - "gateway_id": "", - "ipv6_cidr_block": "", - "local_gateway_id": "", - "nat_gateway_id": "nat-0954030e753e3a143", - "network_interface_id": "", - "transit_gateway_id": "", - "vpc_endpoint_id": "", - "vpc_peering_connection_id": "" - } - ], - "tags": { - "Environment": "israel-dev", - "Name": "israel-storage-vpc-sb-private-us-east-2b", - "Terraform": "true" - }, - "tags_all": { - "Environment": "israel-dev", - "Name": "israel-storage-vpc-sb-private-us-east-2b", - "Terraform": "true" - }, - "timeouts": null, - "vpc_id": "vpc-0365a16226384093d" - }, - "sensitive_attributes": [], - "private": "eyJlMmJmYjczMC1lY2FhLTExZTYtOGY4OC0zNDM2M2JjN2M0YzAiOnsiY3JlYXRlIjozMDAwMDAwMDAwMDAsImRlbGV0ZSI6MzAwMDAwMDAwMDAwLCJ1cGRhdGUiOjEyMDAwMDAwMDAwMH19", - "dependencies": [ - "data.aws_availability_zones.available", - "module.vpc.aws_vpc.this", - "module.vpc.aws_vpc_ipv4_cidr_block_association.this" - ] - } - ] - }, - { - "module": "module.vpc", - "mode": "managed", - "type": "aws_route_table", - "name": "public", - "provider": "provider[\"registry.terraform.io/hashicorp/aws\"]", - "instances": [ - { - "index_key": 0, - "schema_version": 0, - "attributes": { - "arn": "arn:aws:ec2:us-east-2:565979732541:route-table/rtb-0b7cab6cce1c6a6aa", - "id": "rtb-0b7cab6cce1c6a6aa", - "owner_id": "565979732541", - "propagating_vgws": [], - "route": [ - { - "carrier_gateway_id": "", - "cidr_block": "0.0.0.0/0", - "core_network_arn": "", - "destination_prefix_list_id": "", - "egress_only_gateway_id": "", - "gateway_id": "igw-016f20e890fd6362a", - "ipv6_cidr_block": "", - "local_gateway_id": "", - "nat_gateway_id": "", - "network_interface_id": "", - "transit_gateway_id": "", - "vpc_endpoint_id": "", - "vpc_peering_connection_id": "" - } - ], - "tags": { - "Environment": "israel-dev", - "Name": "israel-storage-vpc-sb-public", - "Terraform": "true" - }, - "tags_all": { - "Environment": "israel-dev", - "Name": "israel-storage-vpc-sb-public", - "Terraform": "true" - }, - "timeouts": null, - "vpc_id": "vpc-0365a16226384093d" - }, - "sensitive_attributes": [], - "private": "eyJlMmJmYjczMC1lY2FhLTExZTYtOGY4OC0zNDM2M2JjN2M0YzAiOnsiY3JlYXRlIjozMDAwMDAwMDAwMDAsImRlbGV0ZSI6MzAwMDAwMDAwMDAwLCJ1cGRhdGUiOjEyMDAwMDAwMDAwMH19", - "dependencies": [ - "module.vpc.aws_vpc.this", - "module.vpc.aws_vpc_ipv4_cidr_block_association.this" - ] - } - ] - }, - { - "module": "module.vpc", - "mode": "managed", - "type": "aws_route_table_association", - "name": "private", - "provider": "provider[\"registry.terraform.io/hashicorp/aws\"]", - "instances": [ - { - "index_key": 0, - "schema_version": 0, - "attributes": { - "gateway_id": "", - "id": "rtbassoc-0bda8634d6182b7f8", - "route_table_id": "rtb-0eaafcaf46c0cbcb4", - "subnet_id": "subnet-0d4485b4ba30cf005", - "timeouts": null - }, - "sensitive_attributes": [], - "private": "eyJlMmJmYjczMC1lY2FhLTExZTYtOGY4OC0zNDM2M2JjN2M0YzAiOnsiY3JlYXRlIjozMDAwMDAwMDAwMDAsImRlbGV0ZSI6MzAwMDAwMDAwMDAwLCJ1cGRhdGUiOjEyMDAwMDAwMDAwMH19", - "dependencies": [ - "data.aws_availability_zones.available", - "module.vpc.aws_route_table.private", - "module.vpc.aws_subnet.private", - "module.vpc.aws_vpc.this", - "module.vpc.aws_vpc_ipv4_cidr_block_association.this" - ] - }, - { - "index_key": 1, - "schema_version": 0, - "attributes": { - "gateway_id": "", - "id": "rtbassoc-0b72eafed51ff69a9", - "route_table_id": "rtb-078cd58f901cccf7c", - "subnet_id": "subnet-03c180e84f6854a15", - "timeouts": null - }, - "sensitive_attributes": [], - "private": "eyJlMmJmYjczMC1lY2FhLTExZTYtOGY4OC0zNDM2M2JjN2M0YzAiOnsiY3JlYXRlIjozMDAwMDAwMDAwMDAsImRlbGV0ZSI6MzAwMDAwMDAwMDAwLCJ1cGRhdGUiOjEyMDAwMDAwMDAwMH19", - "dependencies": [ - "data.aws_availability_zones.available", - "module.vpc.aws_route_table.private", - "module.vpc.aws_subnet.private", - "module.vpc.aws_vpc.this", - "module.vpc.aws_vpc_ipv4_cidr_block_association.this" - ] - } - ] - }, - { - "module": "module.vpc", - "mode": "managed", - "type": "aws_route_table_association", - "name": "public", - "provider": "provider[\"registry.terraform.io/hashicorp/aws\"]", - "instances": [ - { - "index_key": 0, - "schema_version": 0, - "attributes": { - "gateway_id": "", - "id": "rtbassoc-002767ee122e875be", - "route_table_id": "rtb-0b7cab6cce1c6a6aa", - "subnet_id": "subnet-0624fa4ce4fc3c03c", - "timeouts": null - }, - "sensitive_attributes": [], - "private": "eyJlMmJmYjczMC1lY2FhLTExZTYtOGY4OC0zNDM2M2JjN2M0YzAiOnsiY3JlYXRlIjozMDAwMDAwMDAwMDAsImRlbGV0ZSI6MzAwMDAwMDAwMDAwLCJ1cGRhdGUiOjEyMDAwMDAwMDAwMH19", - "dependencies": [ - "data.aws_availability_zones.available", - "module.vpc.aws_route_table.public", - "module.vpc.aws_subnet.public", - "module.vpc.aws_vpc.this", - "module.vpc.aws_vpc_ipv4_cidr_block_association.this" - ] - }, - { - "index_key": 1, - "schema_version": 0, - "attributes": { - "gateway_id": "", - "id": "rtbassoc-04cbc0eaff751fe18", - "route_table_id": "rtb-0b7cab6cce1c6a6aa", - "subnet_id": "subnet-0543a02417c794f33", - "timeouts": null - }, - "sensitive_attributes": [], - "private": "eyJlMmJmYjczMC1lY2FhLTExZTYtOGY4OC0zNDM2M2JjN2M0YzAiOnsiY3JlYXRlIjozMDAwMDAwMDAwMDAsImRlbGV0ZSI6MzAwMDAwMDAwMDAwLCJ1cGRhdGUiOjEyMDAwMDAwMDAwMH19", - "dependencies": [ - "data.aws_availability_zones.available", - "module.vpc.aws_route_table.public", - "module.vpc.aws_subnet.public", - "module.vpc.aws_vpc.this", - "module.vpc.aws_vpc_ipv4_cidr_block_association.this" - ] - } - ] - }, - { - "module": "module.vpc", - "mode": "managed", - "type": "aws_subnet", - "name": "private", - "provider": "provider[\"registry.terraform.io/hashicorp/aws\"]", - "instances": [ - { - "index_key": 0, - "schema_version": 1, - "attributes": { - "arn": "arn:aws:ec2:us-east-2:565979732541:subnet/subnet-0d4485b4ba30cf005", - "assign_ipv6_address_on_creation": false, - "availability_zone": "us-east-2a", - "availability_zone_id": "use2-az1", - "cidr_block": "10.0.1.0/24", - "customer_owned_ipv4_pool": "", - "enable_dns64": false, - "enable_lni_at_device_index": 0, - "enable_resource_name_dns_a_record_on_launch": false, - "enable_resource_name_dns_aaaa_record_on_launch": false, - "id": "subnet-0d4485b4ba30cf005", - "ipv6_cidr_block": "", - "ipv6_cidr_block_association_id": "", - "ipv6_native": false, - "map_customer_owned_ip_on_launch": false, - "map_public_ip_on_launch": false, - "outpost_arn": "", - "owner_id": "565979732541", - "private_dns_hostname_type_on_launch": "ip-name", - "tags": { - "Environment": "israel-dev", - "Name": "israel-storage-vpc-sb-private-us-east-2a", - "Terraform": "true", - "kubernetes.io/cluster/eks": "shared", - "kubernetes.io/role/internal-elb": "1" - }, - "tags_all": { - "Environment": "israel-dev", - "Name": "israel-storage-vpc-sb-private-us-east-2a", - "Terraform": "true", - "kubernetes.io/cluster/eks": "shared", - "kubernetes.io/role/internal-elb": "1" - }, - "timeouts": null, - "vpc_id": "vpc-0365a16226384093d" - }, - "sensitive_attributes": [], - "private": "eyJlMmJmYjczMC1lY2FhLTExZTYtOGY4OC0zNDM2M2JjN2M0YzAiOnsiY3JlYXRlIjo2MDAwMDAwMDAwMDAsImRlbGV0ZSI6MTIwMDAwMDAwMDAwMH0sInNjaGVtYV92ZXJzaW9uIjoiMSJ9", - "dependencies": [ - "data.aws_availability_zones.available", - "module.vpc.aws_vpc.this", - "module.vpc.aws_vpc_ipv4_cidr_block_association.this" - ], - "create_before_destroy": true - }, - { - "index_key": 1, - "schema_version": 1, - "attributes": { - "arn": "arn:aws:ec2:us-east-2:565979732541:subnet/subnet-03c180e84f6854a15", - "assign_ipv6_address_on_creation": false, - "availability_zone": "us-east-2b", - "availability_zone_id": "use2-az2", - "cidr_block": "10.0.3.0/24", - "customer_owned_ipv4_pool": "", - "enable_dns64": false, - "enable_lni_at_device_index": 0, - "enable_resource_name_dns_a_record_on_launch": false, - "enable_resource_name_dns_aaaa_record_on_launch": false, - "id": "subnet-03c180e84f6854a15", - "ipv6_cidr_block": "", - "ipv6_cidr_block_association_id": "", - "ipv6_native": false, - "map_customer_owned_ip_on_launch": false, - "map_public_ip_on_launch": false, - "outpost_arn": "", - "owner_id": "565979732541", - "private_dns_hostname_type_on_launch": "ip-name", - "tags": { - "Environment": "israel-dev", - "Name": "israel-storage-vpc-sb-private-us-east-2b", - "Terraform": "true", - "kubernetes.io/cluster/eks": "shared", - "kubernetes.io/role/internal-elb": "1" - }, - "tags_all": { - "Environment": "israel-dev", - "Name": "israel-storage-vpc-sb-private-us-east-2b", - "Terraform": "true", - "kubernetes.io/cluster/eks": "shared", - "kubernetes.io/role/internal-elb": "1" - }, - "timeouts": null, - "vpc_id": "vpc-0365a16226384093d" - }, - "sensitive_attributes": [], - "private": "eyJlMmJmYjczMC1lY2FhLTExZTYtOGY4OC0zNDM2M2JjN2M0YzAiOnsiY3JlYXRlIjo2MDAwMDAwMDAwMDAsImRlbGV0ZSI6MTIwMDAwMDAwMDAwMH0sInNjaGVtYV92ZXJzaW9uIjoiMSJ9", - "dependencies": [ - "data.aws_availability_zones.available", - "module.vpc.aws_vpc.this", - "module.vpc.aws_vpc_ipv4_cidr_block_association.this" - ], - "create_before_destroy": true - } - ] - }, - { - "module": "module.vpc", - "mode": "managed", - "type": "aws_subnet", - "name": "public", - "provider": "provider[\"registry.terraform.io/hashicorp/aws\"]", - "instances": [ - { - "index_key": 0, - "schema_version": 1, - "attributes": { - "arn": "arn:aws:ec2:us-east-2:565979732541:subnet/subnet-0624fa4ce4fc3c03c", - "assign_ipv6_address_on_creation": false, - "availability_zone": "us-east-2a", - "availability_zone_id": "use2-az1", - "cidr_block": "10.0.2.0/24", - "customer_owned_ipv4_pool": "", - "enable_dns64": false, - "enable_lni_at_device_index": 0, - "enable_resource_name_dns_a_record_on_launch": false, - "enable_resource_name_dns_aaaa_record_on_launch": false, - "id": "subnet-0624fa4ce4fc3c03c", - "ipv6_cidr_block": "", - "ipv6_cidr_block_association_id": "", - "ipv6_native": false, - "map_customer_owned_ip_on_launch": false, - "map_public_ip_on_launch": true, - "outpost_arn": "", - "owner_id": "565979732541", - "private_dns_hostname_type_on_launch": "ip-name", - "tags": { - "Environment": "israel-dev", - "Name": "israel-storage-vpc-sb-public-us-east-2a", - "Terraform": "true", - "kubernetes.io/cluster/eks": "shared", - "kubernetes.io/role/elb": "1" - }, - "tags_all": { - "Environment": "israel-dev", - "Name": "israel-storage-vpc-sb-public-us-east-2a", - "Terraform": "true", - "kubernetes.io/cluster/eks": "shared", - "kubernetes.io/role/elb": "1" - }, - "timeouts": null, - "vpc_id": "vpc-0365a16226384093d" - }, - "sensitive_attributes": [], - "private": "eyJlMmJmYjczMC1lY2FhLTExZTYtOGY4OC0zNDM2M2JjN2M0YzAiOnsiY3JlYXRlIjo2MDAwMDAwMDAwMDAsImRlbGV0ZSI6MTIwMDAwMDAwMDAwMH0sInNjaGVtYV92ZXJzaW9uIjoiMSJ9", - "dependencies": [ - "data.aws_availability_zones.available", - "module.vpc.aws_vpc.this", - "module.vpc.aws_vpc_ipv4_cidr_block_association.this" - ], - "create_before_destroy": true - }, - { - "index_key": 1, - "schema_version": 1, - "attributes": { - "arn": "arn:aws:ec2:us-east-2:565979732541:subnet/subnet-0543a02417c794f33", - "assign_ipv6_address_on_creation": false, - "availability_zone": "us-east-2b", - "availability_zone_id": "use2-az2", - "cidr_block": "10.0.4.0/24", - "customer_owned_ipv4_pool": "", - "enable_dns64": false, - "enable_lni_at_device_index": 0, - "enable_resource_name_dns_a_record_on_launch": false, - "enable_resource_name_dns_aaaa_record_on_launch": false, - "id": "subnet-0543a02417c794f33", - "ipv6_cidr_block": "", - "ipv6_cidr_block_association_id": "", - "ipv6_native": false, - "map_customer_owned_ip_on_launch": false, - "map_public_ip_on_launch": true, - "outpost_arn": "", - "owner_id": "565979732541", - "private_dns_hostname_type_on_launch": "ip-name", - "tags": { - "Environment": "israel-dev", - "Name": "israel-storage-vpc-sb-public-us-east-2b", - "Terraform": "true", - "kubernetes.io/cluster/eks": "shared", - "kubernetes.io/role/elb": "1" - }, - "tags_all": { - "Environment": "israel-dev", - "Name": "israel-storage-vpc-sb-public-us-east-2b", - "Terraform": "true", - "kubernetes.io/cluster/eks": "shared", - "kubernetes.io/role/elb": "1" - }, - "timeouts": null, - "vpc_id": "vpc-0365a16226384093d" - }, - "sensitive_attributes": [], - "private": "eyJlMmJmYjczMC1lY2FhLTExZTYtOGY4OC0zNDM2M2JjN2M0YzAiOnsiY3JlYXRlIjo2MDAwMDAwMDAwMDAsImRlbGV0ZSI6MTIwMDAwMDAwMDAwMH0sInNjaGVtYV92ZXJzaW9uIjoiMSJ9", - "dependencies": [ - "data.aws_availability_zones.available", - "module.vpc.aws_vpc.this", - "module.vpc.aws_vpc_ipv4_cidr_block_association.this" - ], - "create_before_destroy": true - } - ] - }, - { - "module": "module.vpc", - "mode": "managed", - "type": "aws_vpc", - "name": "this", - "provider": "provider[\"registry.terraform.io/hashicorp/aws\"]", - "instances": [ - { - "index_key": 0, - "schema_version": 1, - "attributes": { - "arn": "arn:aws:ec2:us-east-2:565979732541:vpc/vpc-0365a16226384093d", - "assign_generated_ipv6_cidr_block": false, - "cidr_block": "10.0.0.0/16", - "default_network_acl_id": "acl-0de2087e2d39073a4", - "default_route_table_id": "rtb-0fb4f7f5bd4340746", - "default_security_group_id": "sg-0a3810d82bbff09bc", - "dhcp_options_id": "dopt-012b99fca0e18d7e2", - "enable_dns_hostnames": true, - "enable_dns_support": true, - "enable_network_address_usage_metrics": false, - "id": "vpc-0365a16226384093d", - "instance_tenancy": "default", - "ipv4_ipam_pool_id": null, - "ipv4_netmask_length": null, - "ipv6_association_id": "", - "ipv6_cidr_block": "", - "ipv6_cidr_block_network_border_group": "", - "ipv6_ipam_pool_id": "", - "ipv6_netmask_length": 0, - "main_route_table_id": "rtb-0fb4f7f5bd4340746", - "owner_id": "565979732541", - "tags": { - "Environment": "israel-dev", - "Name": "israel-storage-vpc-sb", - "Terraform": "true" - }, - "tags_all": { - "Environment": "israel-dev", - "Name": "israel-storage-vpc-sb", - "Terraform": "true" - } - }, - "sensitive_attributes": [], - "private": "eyJzY2hlbWFfdmVyc2lvbiI6IjEifQ==", - "create_before_destroy": true - } - ] - } - ], - "check_results": [] -} From 5841956f1427c542cc9d55661d8377012d72cf6d Mon Sep 17 00:00:00 2001 From: geoffrey1330 Date: Mon, 4 Nov 2024 14:50:57 +0100 Subject: [PATCH 06/15] updated key name --- locals.tf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/locals.tf b/locals.tf index 8523462e..d8e9dd39 100644 --- a/locals.tf +++ b/locals.tf @@ -12,7 +12,7 @@ locals { key_name = { "us-east-1" = "simplyblock-us-east-1.pem" - "us-east-2" = "simplyblock-xata" + "us-east-2" = "simplyblock-xata.pem" "eu-north-1" = "simplyblock-eu-north-1.pem" "eu-west-1" = "simplyblock-eu-west-1.pem" } From f8783aa88f80e06d45766fe6602022160d3aa01d Mon Sep 17 00:00:00 2001 From: Geoffrey Israel Date: Tue, 5 Nov 2024 09:18:13 +0100 Subject: [PATCH 07/15] updated us-east-2 arm64 ami --- locals.tf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/locals.tf b/locals.tf index d8e9dd39..25cbbe9d 100644 --- a/locals.tf +++ b/locals.tf @@ -34,7 +34,7 @@ locals { region_ami_map_arm = { "us-east-1" = "ami-0990e7074b32986af" - "us-east-2" = "ami-0e71db082192a9cf7" + "us-east-2" = "ami-08f9f3bb075432791" "eu-north-1" = "ami-006af066a79f5190f" "eu-west-1" = "ami-06028a225ee106d6f" } From eb21dc1f902918ac6cd85e38592b420bc7078527 Mon Sep 17 00:00:00 2001 From: Geoffrey Israel Date: Tue, 5 Nov 2024 11:21:08 +0100 Subject: [PATCH 08/15] Update locals.tf with amd64 ami --- locals.tf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/locals.tf b/locals.tf index 25cbbe9d..c2e54219 100644 --- a/locals.tf +++ b/locals.tf @@ -27,7 +27,7 @@ locals { # $sudo yum install -y yum-utils xorg-x11-xauth nvme-cli fio region_ami_map = { "us-east-1" = "ami-0ff9547ee3e11637a" - "us-east-2" = "ami-00b0bb86a4287f38f" + "us-east-2" = "ami-0aa8fc2422063977a" "eu-north-1" = "ami-01997ffb7707167a4" "eu-west-1" = "ami-0a3bac9371ffc12f8" } From 54cfcd32733fcb9d72a00e87598909e0245bd1c8 Mon Sep 17 00:00:00 2001 From: Alexander Sheredin Date: Tue, 5 Nov 2024 15:18:32 +0300 Subject: [PATCH 09/15] add contact point for slack alerts, add 'debug' for cluster activate --- bootstrap-cluster.sh | 2 +- create_cluster.sh | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/bootstrap-cluster.sh b/bootstrap-cluster.sh index d86b952b..9ae8a4e8 100755 --- a/bootstrap-cluster.sh +++ b/bootstrap-cluster.sh @@ -391,7 +391,7 @@ else -o ProxyCommand="ssh -o StrictHostKeyChecking=no -i \"$KEY\" -W %h:%p ec2-user@${BASTION_IP}" \ ec2-user@${mnodes[0]} " MANGEMENT_NODE_IP=${mnodes[0]} - ${SBCLI_CMD} cluster activate ${CLUSTER_ID} + ${SBCLI_CMD} -d cluster activate ${CLUSTER_ID} " fi diff --git a/create_cluster.sh b/create_cluster.sh index c445f436..4665123b 100644 --- a/create_cluster.sh +++ b/create_cluster.sh @@ -1,6 +1,8 @@ #!/bin/bash namespace="simplyblock" sbcli_cmd="sbcli-dev" +CONTACT_POINT="https://hooks.slack.com/services/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" + export TFSTATE_BUCKET=xata-simplyblock-staging-infra export TFSTATE_KEY=staging/controlplane @@ -33,4 +35,5 @@ chmod +x ./bootstrap-cluster.sh --prov-cap-warn 200 --distr-bs 4096 --distr-chunk-bs 4096 \ --spdk-debug --max-lvol 200 --max-snap 200 --max-prov 30T --number-of-devices 1 \ --partitions 1 --log-del-interval 300m --metrics-retention-period 2h \ - --number-of-distribs 5 + --number-of-distribs 5 \ + --contact-point $CONTACT_POINT From 103753dcffe1bac2fc0089653e5076addb2eeaaa Mon Sep 17 00:00:00 2001 From: Alexander Sheredin Date: Thu, 28 Nov 2024 01:57:01 +0300 Subject: [PATCH 10/15] changed storage node instance type --- create_cluster.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/create_cluster.sh b/create_cluster.sh index 4665123b..843eaf0f 100644 --- a/create_cluster.sh +++ b/create_cluster.sh @@ -17,9 +17,11 @@ terraform init -reconfigure \ ### switch to workspace terraform workspace select -or-create "$namespace" +# terraform apply -var mgmt_nodes=1 -var storage_nodes=0 -var extra_nodes=0 --auto-approve + # Specifying the instance types to use terraform apply -var mgmt_nodes=1 -var storage_nodes=4 -var extra_nodes=0 -var "storage_nodes_arch=arm64" \ - -var mgmt_nodes_instance_type="m6i.xlarge" -var storage_nodes_instance_type="im4gn.4xlarge" \ + -var mgmt_nodes_instance_type="m6i.xlarge" -var storage_nodes_instance_type="c6gd.2xlarge" \ -var extra_nodes_instance_type="m6i.large" -var sbcli_cmd="$sbcli_cmd" \ -var volumes_per_storage_nodes=0 --auto-approve @@ -33,7 +35,7 @@ chmod +x ./bootstrap-cluster.sh ./bootstrap-cluster.sh --sbcli-cmd "$sbcli_cmd" --disable-ha-jm \ --distr-ndcs 2 --distr-npcs 1 --cap-crit 99 --cap-warn 94 --prov-cap-crit 500 \ --prov-cap-warn 200 --distr-bs 4096 --distr-chunk-bs 4096 \ - --spdk-debug --max-lvol 200 --max-snap 200 --max-prov 30T --number-of-devices 1 \ + --spdk-debug --max-lvol 200 --max-snap 200 --max-prov 10T --number-of-devices 1 \ --partitions 1 --log-del-interval 300m --metrics-retention-period 2h \ --number-of-distribs 5 \ --contact-point $CONTACT_POINT From 315c3210a64c3d35da9b5d3c7d68dce8132f4a79 Mon Sep 17 00:00:00 2001 From: Alexander Sheredin Date: Thu, 28 Nov 2024 14:55:36 +0300 Subject: [PATCH 11/15] changed --number-of-distribs in accordance with the new instance type --- create_cluster.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/create_cluster.sh b/create_cluster.sh index 843eaf0f..3c5732af 100644 --- a/create_cluster.sh +++ b/create_cluster.sh @@ -1,5 +1,7 @@ #!/bin/bash -namespace="simplyblock" + +# CHANGE THE NAMESPACE NAME! +namespace="change_me" sbcli_cmd="sbcli-dev" CONTACT_POINT="https://hooks.slack.com/services/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" @@ -37,5 +39,5 @@ chmod +x ./bootstrap-cluster.sh --prov-cap-warn 200 --distr-bs 4096 --distr-chunk-bs 4096 \ --spdk-debug --max-lvol 200 --max-snap 200 --max-prov 10T --number-of-devices 1 \ --partitions 1 --log-del-interval 300m --metrics-retention-period 2h \ - --number-of-distribs 5 \ + --number-of-distribs 2 \ --contact-point $CONTACT_POINT From 6853a9edc718b7cb21b434ad2a539e2daff4b45c Mon Sep 17 00:00:00 2001 From: Alexander Sheredin Date: Thu, 28 Nov 2024 19:14:36 +0300 Subject: [PATCH 12/15] added sample create_cluster_ebs.sh script --- test/create_cluster_ebs.sh | 40 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 test/create_cluster_ebs.sh diff --git a/test/create_cluster_ebs.sh b/test/create_cluster_ebs.sh new file mode 100644 index 00000000..618c5aa7 --- /dev/null +++ b/test/create_cluster_ebs.sh @@ -0,0 +1,40 @@ +#!/bin/bash + +# CHANGE THE NAMESPACE NAME! +namespace="changeme" +sbcli_cmd="sbcli-dev" + + +export TFSTATE_BUCKET=xata-simplyblock-staging-infra +export TFSTATE_KEY=staging/controlplane +export TFSTATE_REGION=us-east-2 + +terraform init -reconfigure \ + -backend-config="bucket=${TFSTATE_BUCKET}" \ + -backend-config="key=${TFSTATE_KEY}" \ + -backend-config="region=${TFSTATE_REGION}" \ + -backend-config="encrypt=true" + +### switch to workspace +terraform destroy --auto-approve +terraform workspace select -or-create "$namespace" + +# terraform apply -var mgmt_nodes=1 -var storage_nodes=0 -var extra_nodes=0 --auto-approve + +# Specifying the instance types to use +terraform apply -var mgmt_nodes=1 -var storage_nodes=3 -var extra_nodes=0 \ + -var mgmt_nodes_instance_type="m6i.xlarge" -var storage_nodes_instance_type="m6i.2xlarge" \ + -var extra_nodes_instance_type="m6i.large" -var sbcli_cmd="$sbcli_cmd" \ + -var volumes_per_storage_nodes=3 -var storage_nodes_ebs_size2=100 --auto-approve + +# Save terraform output to a file +terraform output -json > tf_outputs.json + +# The boostrap-cluster.sh creates the KEY in `.ssh` directory in the home directory + +chmod +x ./bootstrap-cluster.sh +# specifying cluster argument to use +./bootstrap-cluster.sh --sbcli-cmd "$sbcli_cmd" --spdk-debug \ + --max-lvol 10 --max-snap 10 --max-prov 1200G \ + --number-of-devices 3 --log-del-interval 900m --metrics-retention-period 2h \ + --distr-ndcs 2 --distr-npcs 1 --distr-bs 4096 --distr-chunk-bs 4096 --partitions 0 From 24ec1e863b069c3ce60774073edf8833d556ef71 Mon Sep 17 00:00:00 2001 From: Alexander Sheredin Date: Thu, 28 Nov 2024 21:33:43 +0300 Subject: [PATCH 13/15] comment off terraform destroy in sample script --- test/create_cluster_ebs.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/test/create_cluster_ebs.sh b/test/create_cluster_ebs.sh index 618c5aa7..e5baa2f2 100644 --- a/test/create_cluster_ebs.sh +++ b/test/create_cluster_ebs.sh @@ -15,8 +15,10 @@ terraform init -reconfigure \ -backend-config="region=${TFSTATE_REGION}" \ -backend-config="encrypt=true" +# uncomment if you need to destroy existing cluster with the same name +# terraform destroy --auto-approve + ### switch to workspace -terraform destroy --auto-approve terraform workspace select -or-create "$namespace" # terraform apply -var mgmt_nodes=1 -var storage_nodes=0 -var extra_nodes=0 --auto-approve From 0e00a35894de22873822871fdbe5e335a87aed42 Mon Sep 17 00:00:00 2001 From: geoffrey1330 Date: Fri, 29 Nov 2024 21:42:12 +0100 Subject: [PATCH 14/15] removed slack webhook --- create_cluster.sh | 2 +- tf_outputs.json | 160 ++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 161 insertions(+), 1 deletion(-) create mode 100644 tf_outputs.json diff --git a/create_cluster.sh b/create_cluster.sh index 3c5732af..5a29efa2 100644 --- a/create_cluster.sh +++ b/create_cluster.sh @@ -3,7 +3,7 @@ # CHANGE THE NAMESPACE NAME! namespace="change_me" sbcli_cmd="sbcli-dev" -CONTACT_POINT="https://hooks.slack.com/services/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" +CONTACT_POINT= export TFSTATE_BUCKET=xata-simplyblock-staging-infra diff --git a/tf_outputs.json b/tf_outputs.json new file mode 100644 index 00000000..e2b66125 --- /dev/null +++ b/tf_outputs.json @@ -0,0 +1,160 @@ +{ + "api_invoke_url": { + "sensitive": false, + "type": "string", + "value": "https://w98m1cxy4a.execute-api.us-east-2.amazonaws.com/" + }, + "bastion_public_ip": { + "sensitive": false, + "type": "string", + "value": "18.219.59.202" + }, + "extra_nodes_private_ips": { + "sensitive": false, + "type": "string", + "value": "10.0.4.183" + }, + "extra_nodes_public_ips": { + "sensitive": false, + "type": "string", + "value": "18.116.64.159" + }, + "grafana_invoke_url": { + "sensitive": false, + "type": "string", + "value": "https://w98m1cxy4a.execute-api.us-east-2.amazonaws.com/grafana" + }, + "graylog_invoke_url": { + "sensitive": false, + "type": "string", + "value": "https://w98m1cxy4a.execute-api.us-east-2.amazonaws.com/graylog" + }, + "key_name": { + "sensitive": false, + "type": "string", + "value": "simplyblock-us-east-2.pem" + }, + "mgmt_node_details": { + "sensitive": false, + "type": [ + "object", + { + "demo-k8s-mgmt-1": [ + "object", + { + "private_ip": "string", + "public_ip": "string", + "type": "string" + } + ] + } + ], + "value": { + "demo-k8s-mgmt-1": { + "private_ip": "10.0.3.132", + "public_ip": "", + "type": "m6i.xlarge" + } + } + }, + "mgmt_private_ips": { + "sensitive": false, + "type": "string", + "value": "10.0.3.132" + }, + "mgmt_public_ips": { + "sensitive": false, + "type": "string", + "value": "" + }, + "secret_value": { + "sensitive": true, + "type": "string", + "value": "-----BEGIN OPENSSH PRIVATE KEY-----\nb3BlbnNzaC1rZXktdjEAAAAABG5vbmUAAAAEbm9uZQAAAAAAAAABAAAAMwAAAAtz\nc2gtZWQyNTUxOQAAACA3Vn/Aq5mZiP9gsWHIROz4SfTqMIZxvlbTJusvgjLMowAA\nAIjs64g17OuINQAAAAtzc2gtZWQyNTUxOQAAACA3Vn/Aq5mZiP9gsWHIROz4SfTq\nMIZxvlbTJusvgjLMowAAAEAwUQIBATAFBgMrZXAEIgQgy3b2RGthAnDiTucFNF4s\npzdWf8CrmZmI/2CxYchE7PhJ9OowhnG+VtMm6y+CMsyjAAAAAAECAwQF\n-----END OPENSSH PRIVATE KEY-----" + }, + "storage_node_details": { + "sensitive": false, + "type": [ + "object", + { + "demo-k8s-storage-1": [ + "object", + { + "availability_zone": "string", + "private_ip": "string", + "public_ip": "string", + "type": "string" + } + ], + "demo-k8s-storage-2": [ + "object", + { + "availability_zone": "string", + "private_ip": "string", + "public_ip": "string", + "type": "string" + } + ], + "demo-k8s-storage-3": [ + "object", + { + "availability_zone": "string", + "private_ip": "string", + "public_ip": "string", + "type": "string" + } + ], + "demo-k8s-storage-4": [ + "object", + { + "availability_zone": "string", + "private_ip": "string", + "public_ip": "string", + "type": "string" + } + ] + } + ], + "value": { + "demo-k8s-storage-1": { + "availability_zone": "us-east-2b", + "private_ip": "10.0.3.239", + "public_ip": "", + "type": "m6gd.2xlarge" + }, + "demo-k8s-storage-2": { + "availability_zone": "us-east-2b", + "private_ip": "10.0.3.206", + "public_ip": "", + "type": "m6gd.2xlarge" + }, + "demo-k8s-storage-3": { + "availability_zone": "us-east-2b", + "private_ip": "10.0.3.80", + "public_ip": "", + "type": "m6gd.2xlarge" + }, + "demo-k8s-storage-4": { + "availability_zone": "us-east-2b", + "private_ip": "10.0.3.219", + "public_ip": "", + "type": "m6gd.2xlarge" + } + } + }, + "storage_private_ips": { + "sensitive": false, + "type": "string", + "value": "10.0.3.239 10.0.3.206 10.0.3.80 10.0.3.219" + }, + "storage_public_ips": { + "sensitive": false, + "type": "string", + "value": " " + }, + "tfengine_logs": { + "sensitive": false, + "type": "string", + "value": "simplyblock-tfengine-logs-f27c05713a" + } +} From e6fa6dcccb7558742086dab6c61c9d43e9ceb938 Mon Sep 17 00:00:00 2001 From: Geoffrey Israel Date: Tue, 17 Dec 2024 16:12:02 +0100 Subject: [PATCH 15/15] added cluster secret param to add mgmt node --- bootstrap-cluster.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bootstrap-cluster.sh b/bootstrap-cluster.sh index 9ae8a4e8..c48e0866 100755 --- a/bootstrap-cluster.sh +++ b/bootstrap-cluster.sh @@ -316,7 +316,7 @@ for ((i = 1; i < ${#mnodes[@]}; i++)); do -o ProxyCommand="ssh -o StrictHostKeyChecking=no -i \"$KEY\" -W %h:%p ec2-user@${BASTION_IP}" \ ec2-user@${mnodes[${i}]} " MANGEMENT_NODE_IP=${mnodes[0]} - ${SBCLI_CMD} mgmt add \${MANGEMENT_NODE_IP} ${CLUSTER_ID} eth0 + ${SBCLI_CMD} mgmt add \${MANGEMENT_NODE_IP} ${CLUSTER_ID} ${CLUSTER_SECRET} eth0 " done