From e2b1986504c87f52de768d7db907847563f4db7c Mon Sep 17 00:00:00 2001 From: pokeeffe-molecula Date: Wed, 23 Feb 2022 10:54:12 -0600 Subject: [PATCH] make it so the autoscaler does not kill us...precious --- .gitlab/.perf-able-gitlab-ci.yml | 8 +- qa/tf/perf/able/terraform.tfstate.backup | 986 ++++++++++++++++++++++- 2 files changed, 990 insertions(+), 4 deletions(-) diff --git a/.gitlab/.perf-able-gitlab-ci.yml b/.gitlab/.perf-able-gitlab-ci.yml index b3c94f973..778103058 100644 --- a/.gitlab/.perf-able-gitlab-ci.yml +++ b/.gitlab/.perf-able-gitlab-ci.yml @@ -6,9 +6,11 @@ perf_able: image: registry.gitlab.com/gitlab-org/cloud-deploy/aws-base:latest variables: PROFILE: "service-terraform" + INFRA_PROFILE: "service-gitlab" AWS_SSH_PRIVATE_KEY: $AWS_FBCI_SSH_KEY AWS_ACCESS_KEY_ID: $AWS_FBCI_ACCESS_KEY_ID AWS_SECRET_ACCESS_KEY: $AWS_FBCI_SECRET_ACCESS_KEY + ASG_NAME: "gitlab-runners" TF_VAR_cluster_prefix: "" tags: - aws @@ -39,11 +41,15 @@ perf_able: - export PATH=$PATH:/usr/local/go/bin - TF_VAR_cluster_prefix="able-$(openssl rand -base64 12 | tr -d /=+ | cut -c -16)" - echo "Cluster Prefix --> $TF_VAR_cluster_prefix" + - export INSTANCE_ID=$(curl --silent --fail "http://169.254.169.254/latest/meta-data/instance-id" | tee instance_id) + - aws autoscaling set-instance-protection --instance-ids "$INSTANCE_ID" --auto-scaling-group-name $ASG_NAME --protected-from-scale-in --profile $INFRA_PROFILE script: - ./qa/scripts/perf/able/ableSetup.sh - ./qa/scripts/perf/able/ableTest.sh after_script: - - ./qa/scripts/perf/able/ableTeardown.sh + - ./qa/scripts/perf/able/ableTeardown.sh || true + - export INSTANCE_ID=$(cat instance_id) + - aws autoscaling set-instance-protection --instance-ids "$INSTANCE_ID" --auto-scaling-group-name $ASG_NAME --no-protected-from-scale-in --profile $INFRA_PROFILE needs: - pipeline: $PARENT_PIPELINE_ID job: build for linux arm64 diff --git a/qa/tf/perf/able/terraform.tfstate.backup b/qa/tf/perf/able/terraform.tfstate.backup index 70ca05f32..fb124df7f 100644 --- a/qa/tf/perf/able/terraform.tfstate.backup +++ b/qa/tf/perf/able/terraform.tfstate.backup @@ -1,8 +1,988 @@ { "version": 4, "terraform_version": "1.1.2", - "serial": 280, + "serial": 311, "lineage": "bf631758-ceaf-7ce0-a77f-14da29c169e3", - "outputs": {}, - "resources": [] + "outputs": { + "cluster_prefix": { + "value": "able-8akNtK9QN75eYLnw", + "type": "string" + }, + "data_node_ips": { + "value": [ + "10.0.106.197", + "10.0.105.217", + "10.0.104.40" + ], + "type": [ + "tuple", + [ + "string", + "string", + "string" + ] + ] + }, + "fb_cluster_replica_count": { + "value": 1, + "type": "number" + }, + "ingest_ips": { + "value": [ + "3.139.98.158" + ], + "type": [ + "tuple", + [ + "string" + ] + ] + } + }, + "resources": [ + { + "module": "module.able-cluster", + "mode": "data", + "type": "aws_ami", + "name": "amazon_linux_2", + "provider": "provider[\"registry.terraform.io/hashicorp/aws\"]", + "instances": [ + { + "schema_version": 0, + "attributes": { + "architecture": "arm64", + "arn": "arn:aws:ec2:us-east-2::image/ami-01b3c7a5370b29329", + "block_device_mappings": [ + { + "device_name": "/dev/xvda", + "ebs": { + "delete_on_termination": "true", + "encrypted": "false", + "iops": "0", + "snapshot_id": "snap-0f4a64a66be6c1bdf", + "throughput": "0", + "volume_size": "8", + "volume_type": "gp2" + }, + "no_device": "", + "virtual_name": "" + } + ], + "creation_date": "2022-02-08T00:03:10.000Z", + "description": "Amazon Linux 2 LTS Arm64 AMI 2.0.20220207.1 arm64 HVM gp2", + "ena_support": true, + "executable_users": null, + "filter": [ + { + "name": "architecture", + "values": [ + "arm64" + ] + }, + { + "name": "name", + "values": [ + "amzn2-ami-hvm-*" + ] + }, + { + "name": "virtualization-type", + "values": [ + "hvm" + ] + } + ], + "hypervisor": "xen", + "id": "ami-01b3c7a5370b29329", + "image_id": "ami-01b3c7a5370b29329", + "image_location": "amazon/amzn2-ami-hvm-2.0.20220207.1-arm64-gp2", + "image_owner_alias": "amazon", + "image_type": "machine", + "kernel_id": null, + "most_recent": true, + "name": "amzn2-ami-hvm-2.0.20220207.1-arm64-gp2", + "name_regex": null, + "owner_id": "137112412989", + "owners": [ + "amazon" + ], + "platform": null, + "platform_details": "Linux/UNIX", + "product_codes": [], + "public": true, + "ramdisk_id": null, + "root_device_name": "/dev/xvda", + "root_device_type": "ebs", + "root_snapshot_id": "snap-0f4a64a66be6c1bdf", + "sriov_net_support": "simple", + "state": "available", + "state_reason": { + "code": "UNSET", + "message": "UNSET" + }, + "tags": {}, + "usage_operation": "RunInstances", + "virtualization_type": "hvm" + }, + "sensitive_attributes": [] + } + ] + }, + { + "module": "module.able-cluster", + "mode": "managed", + "type": "aws_iam_instance_profile", + "name": "fb_cluster_node_profile", + "provider": "provider[\"registry.terraform.io/hashicorp/aws\"]", + "instances": [ + { + "schema_version": 0, + "attributes": { + "arn": "arn:aws:iam::977373308795:instance-profile/able-8akNtK9QN75eYLnw-fb_cluster_node_profile", + "create_date": "2022-02-23T00:17:05Z", + "id": "able-8akNtK9QN75eYLnw-fb_cluster_node_profile", + "name": "able-8akNtK9QN75eYLnw-fb_cluster_node_profile", + "name_prefix": null, + "path": "/", + "role": "able-8akNtK9QN75eYLnw-fb_cluster_node", + "tags": { + "Name": "able-8akNtK9QN75eYLnw-fb_cluster_node_profile", + "Prefix": "able-8akNtK9QN75eYLnw", + "Role": "fb_cluster_node_profile" + }, + "tags_all": { + "Name": "able-8akNtK9QN75eYLnw-fb_cluster_node_profile", + "Prefix": "able-8akNtK9QN75eYLnw", + "Role": "fb_cluster_node_profile" + }, + "unique_id": "AIPA6HD75E556TKHRUJ2B" + }, + "sensitive_attributes": [], + "private": "bnVsbA==", + "dependencies": [ + "module.able-cluster.aws_iam_role.fb_cluster_node_role" + ] + } + ] + }, + { + "module": "module.able-cluster", + "mode": "managed", + "type": "aws_iam_role", + "name": "fb_cluster_node_role", + "provider": "provider[\"registry.terraform.io/hashicorp/aws\"]", + "instances": [ + { + "schema_version": 0, + "attributes": { + "arn": "arn:aws:iam::977373308795:role/able-8akNtK9QN75eYLnw-fb_cluster_node", + "assume_role_policy": "{\"Version\":\"2012-10-17\",\"Statement\":[{\"Sid\":\"\",\"Effect\":\"Allow\",\"Principal\":{\"Service\":\"ec2.amazonaws.com\"},\"Action\":\"sts:AssumeRole\"}]}", + "create_date": "2022-02-23T00:17:02Z", + "description": "", + "force_detach_policies": false, + "id": "able-8akNtK9QN75eYLnw-fb_cluster_node", + "inline_policy": [ + { + "name": "ec2_read_all", + "policy": "{\"Statement\":[{\"Action\":[\"ec2:Describe*\"],\"Effect\":\"Allow\",\"Resource\":\"*\"}],\"Version\":\"2012-10-17\"}" + }, + { + "name": "s3_perms", + "policy": "{\"Statement\":[{\"Action\":[\"s3:PutObject\",\"s3:GetObject\"],\"Effect\":\"Allow\",\"Resource\":\"arn:aws:s3:::molecula-perf-storage/*\",\"Sid\":\"VisualEditor0\"},{\"Action\":\"s3:PutObject\",\"Effect\":\"Allow\",\"Resource\":\"arn:aws:s3:::molecula-artifact-storage/*\",\"Sid\":\"VisualEditor1\"}],\"Version\":\"2012-10-17\"}" + } + ], + "managed_policy_arns": [], + "max_session_duration": 3600, + "name": "able-8akNtK9QN75eYLnw-fb_cluster_node", + "name_prefix": "", + "path": "/", + "permissions_boundary": null, + "tags": { + "Name": "able-8akNtK9QN75eYLnw-fb_cluster_node_role", + "Prefix": "able-8akNtK9QN75eYLnw", + "Role": "fb_cluster_node_role" + }, + "tags_all": { + "Name": "able-8akNtK9QN75eYLnw-fb_cluster_node_role", + "Prefix": "able-8akNtK9QN75eYLnw", + "Role": "fb_cluster_node_role" + }, + "unique_id": "AROA6HD75E557E7HJM6ZV" + }, + "sensitive_attributes": [], + "private": "bnVsbA==" + } + ] + }, + { + "module": "module.able-cluster", + "mode": "managed", + "type": "aws_instance", + "name": "fb_cluster_nodes", + "provider": "provider[\"registry.terraform.io/hashicorp/aws\"]", + "instances": [ + { + "index_key": 0, + "schema_version": 1, + "attributes": { + "ami": "ami-01b3c7a5370b29329", + "arn": "arn:aws:ec2:us-east-2:977373308795:instance/i-0448425ebd7fd22a1", + "associate_public_ip_address": false, + "availability_zone": "us-east-2a", + "capacity_reservation_specification": [ + { + "capacity_reservation_preference": "open", + "capacity_reservation_target": [] + } + ], + "cpu_core_count": 48, + "cpu_threads_per_core": 1, + "credit_specification": [], + "disable_api_termination": false, + "ebs_block_device": [ + { + "delete_on_termination": true, + "device_name": "/dev/sdb", + "encrypted": true, + "iops": 10000, + "kms_key_id": "arn:aws:kms:us-east-2:977373308795:key/c888b569-380c-4b7b-b9d2-d8a2841167a7", + "snapshot_id": "", + "tags": {}, + "throughput": 125, + "volume_id": "vol-060bf10f846554c54", + "volume_size": 100, + "volume_type": "gp3" + } + ], + "ebs_optimized": false, + "enclave_options": [ + { + "enabled": false + } + ], + "ephemeral_block_device": [], + "get_password_data": false, + "hibernation": false, + "host_id": null, + "iam_instance_profile": "able-8akNtK9QN75eYLnw-fb_cluster_node_profile", + "id": "i-0448425ebd7fd22a1", + "instance_initiated_shutdown_behavior": "stop", + "instance_state": "running", + "instance_type": "m6g.12xlarge", + "ipv6_address_count": 0, + "ipv6_addresses": [], + "key_name": "able-8akNtK9QN75eYLnw-gitlab-ci", + "launch_template": [], + "metadata_options": [ + { + "http_endpoint": "enabled", + "http_put_response_hop_limit": 1, + "http_tokens": "optional", + "instance_metadata_tags": "disabled" + } + ], + "monitoring": true, + "network_interface": [], + "outpost_arn": "", + "password_data": "", + "placement_group": "", + "placement_partition_number": null, + "primary_network_interface_id": "eni-0415b47e5022abda4", + "private_dns": "ip-10-0-106-197.us-east-2.compute.internal", + "private_ip": "10.0.106.197", + "public_dns": "", + "public_ip": "", + "root_block_device": [ + { + "delete_on_termination": true, + "device_name": "/dev/xvda", + "encrypted": false, + "iops": 3000, + "kms_key_id": "", + "tags": null, + "throughput": 125, + "volume_id": "vol-00ac0616b3f7c9379", + "volume_size": 20, + "volume_type": "gp3" + } + ], + "secondary_private_ips": [], + "security_groups": [], + "source_dest_check": true, + "subnet_id": "subnet-0319dde319380326f", + "tags": { + "Name": "able-8akNtK9QN75eYLnw-featurebase-cluster-0", + "Prefix": "able-8akNtK9QN75eYLnw", + "Role": "cluster_node" + }, + "tags_all": { + "Name": "able-8akNtK9QN75eYLnw-featurebase-cluster-0", + "Prefix": "able-8akNtK9QN75eYLnw", + "Role": "cluster_node" + }, + "tenancy": "default", + "timeouts": null, + "user_data": null, + "user_data_base64": null, + "volume_tags": null, + "vpc_security_group_ids": [ + "sg-0b359e17f4e8d2e80" + ] + }, + "sensitive_attributes": [], + "private": "eyJlMmJmYjczMC1lY2FhLTExZTYtOGY4OC0zNDM2M2JjN2M0YzAiOnsiY3JlYXRlIjo2MDAwMDAwMDAwMDAsImRlbGV0ZSI6MTIwMDAwMDAwMDAwMCwidXBkYXRlIjo2MDAwMDAwMDAwMDB9LCJzY2hlbWFfdmVyc2lvbiI6IjEifQ==", + "dependencies": [ + "module.able-cluster.aws_iam_instance_profile.fb_cluster_node_profile", + "module.able-cluster.aws_iam_role.fb_cluster_node_role", + "module.able-cluster.aws_key_pair.gitlab-featurebase-ci", + "module.able-cluster.aws_security_group.featurebase", + "module.able-cluster.data.aws_ami.amazon_linux_2" + ] + }, + { + "index_key": 1, + "schema_version": 1, + "attributes": { + "ami": "ami-01b3c7a5370b29329", + "arn": "arn:aws:ec2:us-east-2:977373308795:instance/i-0d53c5538265b1c0b", + "associate_public_ip_address": false, + "availability_zone": "us-east-2b", + "capacity_reservation_specification": [ + { + "capacity_reservation_preference": "open", + "capacity_reservation_target": [] + } + ], + "cpu_core_count": 48, + "cpu_threads_per_core": 1, + "credit_specification": [], + "disable_api_termination": false, + "ebs_block_device": [ + { + "delete_on_termination": true, + "device_name": "/dev/sdb", + "encrypted": true, + "iops": 10000, + "kms_key_id": "arn:aws:kms:us-east-2:977373308795:key/c888b569-380c-4b7b-b9d2-d8a2841167a7", + "snapshot_id": "", + "tags": {}, + "throughput": 125, + "volume_id": "vol-0ea2fb4ea44b7ac76", + "volume_size": 100, + "volume_type": "gp3" + } + ], + "ebs_optimized": false, + "enclave_options": [ + { + "enabled": false + } + ], + "ephemeral_block_device": [], + "get_password_data": false, + "hibernation": false, + "host_id": null, + "iam_instance_profile": "able-8akNtK9QN75eYLnw-fb_cluster_node_profile", + "id": "i-0d53c5538265b1c0b", + "instance_initiated_shutdown_behavior": "stop", + "instance_state": "running", + "instance_type": "m6g.12xlarge", + "ipv6_address_count": 0, + "ipv6_addresses": [], + "key_name": "able-8akNtK9QN75eYLnw-gitlab-ci", + "launch_template": [], + "metadata_options": [ + { + "http_endpoint": "enabled", + "http_put_response_hop_limit": 1, + "http_tokens": "optional", + "instance_metadata_tags": "disabled" + } + ], + "monitoring": true, + "network_interface": [], + "outpost_arn": "", + "password_data": "", + "placement_group": "", + "placement_partition_number": null, + "primary_network_interface_id": "eni-05fc44f75e099b242", + "private_dns": "ip-10-0-105-217.us-east-2.compute.internal", + "private_ip": "10.0.105.217", + "public_dns": "", + "public_ip": "", + "root_block_device": [ + { + "delete_on_termination": true, + "device_name": "/dev/xvda", + "encrypted": false, + "iops": 3000, + "kms_key_id": "", + "tags": null, + "throughput": 125, + "volume_id": "vol-023aa2f6bf686a161", + "volume_size": 20, + "volume_type": "gp3" + } + ], + "secondary_private_ips": [], + "security_groups": [], + "source_dest_check": true, + "subnet_id": "subnet-0517ca9a646d80f88", + "tags": { + "Name": "able-8akNtK9QN75eYLnw-featurebase-cluster-1", + "Prefix": "able-8akNtK9QN75eYLnw", + "Role": "cluster_node" + }, + "tags_all": { + "Name": "able-8akNtK9QN75eYLnw-featurebase-cluster-1", + "Prefix": "able-8akNtK9QN75eYLnw", + "Role": "cluster_node" + }, + "tenancy": "default", + "timeouts": null, + "user_data": null, + "user_data_base64": null, + "volume_tags": null, + "vpc_security_group_ids": [ + "sg-0b359e17f4e8d2e80" + ] + }, + "sensitive_attributes": [], + "private": "eyJlMmJmYjczMC1lY2FhLTExZTYtOGY4OC0zNDM2M2JjN2M0YzAiOnsiY3JlYXRlIjo2MDAwMDAwMDAwMDAsImRlbGV0ZSI6MTIwMDAwMDAwMDAwMCwidXBkYXRlIjo2MDAwMDAwMDAwMDB9LCJzY2hlbWFfdmVyc2lvbiI6IjEifQ==", + "dependencies": [ + "module.able-cluster.aws_iam_instance_profile.fb_cluster_node_profile", + "module.able-cluster.aws_iam_role.fb_cluster_node_role", + "module.able-cluster.aws_key_pair.gitlab-featurebase-ci", + "module.able-cluster.aws_security_group.featurebase", + "module.able-cluster.data.aws_ami.amazon_linux_2" + ] + }, + { + "index_key": 2, + "schema_version": 1, + "attributes": { + "ami": "ami-01b3c7a5370b29329", + "arn": "arn:aws:ec2:us-east-2:977373308795:instance/i-0d90093a2524346af", + "associate_public_ip_address": false, + "availability_zone": "us-east-2c", + "capacity_reservation_specification": [ + { + "capacity_reservation_preference": "open", + "capacity_reservation_target": [] + } + ], + "cpu_core_count": 48, + "cpu_threads_per_core": 1, + "credit_specification": [], + "disable_api_termination": false, + "ebs_block_device": [ + { + "delete_on_termination": true, + "device_name": "/dev/sdb", + "encrypted": true, + "iops": 10000, + "kms_key_id": "arn:aws:kms:us-east-2:977373308795:key/c888b569-380c-4b7b-b9d2-d8a2841167a7", + "snapshot_id": "", + "tags": {}, + "throughput": 125, + "volume_id": "vol-01e2e1c3e9d47f47a", + "volume_size": 100, + "volume_type": "gp3" + } + ], + "ebs_optimized": false, + "enclave_options": [ + { + "enabled": false + } + ], + "ephemeral_block_device": [], + "get_password_data": false, + "hibernation": false, + "host_id": null, + "iam_instance_profile": "able-8akNtK9QN75eYLnw-fb_cluster_node_profile", + "id": "i-0d90093a2524346af", + "instance_initiated_shutdown_behavior": "stop", + "instance_state": "running", + "instance_type": "m6g.12xlarge", + "ipv6_address_count": 0, + "ipv6_addresses": [], + "key_name": "able-8akNtK9QN75eYLnw-gitlab-ci", + "launch_template": [], + "metadata_options": [ + { + "http_endpoint": "enabled", + "http_put_response_hop_limit": 1, + "http_tokens": "optional", + "instance_metadata_tags": "disabled" + } + ], + "monitoring": true, + "network_interface": [], + "outpost_arn": "", + "password_data": "", + "placement_group": "", + "placement_partition_number": null, + "primary_network_interface_id": "eni-04663f27928345da7", + "private_dns": "ip-10-0-104-40.us-east-2.compute.internal", + "private_ip": "10.0.104.40", + "public_dns": "", + "public_ip": "", + "root_block_device": [ + { + "delete_on_termination": true, + "device_name": "/dev/xvda", + "encrypted": false, + "iops": 3000, + "kms_key_id": "", + "tags": null, + "throughput": 125, + "volume_id": "vol-0efe061e66ecfe875", + "volume_size": 20, + "volume_type": "gp3" + } + ], + "secondary_private_ips": [], + "security_groups": [], + "source_dest_check": true, + "subnet_id": "subnet-05a7b685ed27eb1cf", + "tags": { + "Name": "able-8akNtK9QN75eYLnw-featurebase-cluster-2", + "Prefix": "able-8akNtK9QN75eYLnw", + "Role": "cluster_node" + }, + "tags_all": { + "Name": "able-8akNtK9QN75eYLnw-featurebase-cluster-2", + "Prefix": "able-8akNtK9QN75eYLnw", + "Role": "cluster_node" + }, + "tenancy": "default", + "timeouts": null, + "user_data": null, + "user_data_base64": null, + "volume_tags": null, + "vpc_security_group_ids": [ + "sg-0b359e17f4e8d2e80" + ] + }, + "sensitive_attributes": [], + "private": "eyJlMmJmYjczMC1lY2FhLTExZTYtOGY4OC0zNDM2M2JjN2M0YzAiOnsiY3JlYXRlIjo2MDAwMDAwMDAwMDAsImRlbGV0ZSI6MTIwMDAwMDAwMDAwMCwidXBkYXRlIjo2MDAwMDAwMDAwMDB9LCJzY2hlbWFfdmVyc2lvbiI6IjEifQ==", + "dependencies": [ + "module.able-cluster.aws_iam_instance_profile.fb_cluster_node_profile", + "module.able-cluster.aws_iam_role.fb_cluster_node_role", + "module.able-cluster.aws_key_pair.gitlab-featurebase-ci", + "module.able-cluster.aws_security_group.featurebase", + "module.able-cluster.data.aws_ami.amazon_linux_2" + ] + } + ] + }, + { + "module": "module.able-cluster", + "mode": "managed", + "type": "aws_instance", + "name": "fb_ingest", + "provider": "provider[\"registry.terraform.io/hashicorp/aws\"]", + "instances": [ + { + "index_key": 0, + "schema_version": 1, + "attributes": { + "ami": "ami-01b3c7a5370b29329", + "arn": "arn:aws:ec2:us-east-2:977373308795:instance/i-05bc831873de67a77", + "associate_public_ip_address": true, + "availability_zone": "us-east-2a", + "capacity_reservation_specification": [ + { + "capacity_reservation_preference": "open", + "capacity_reservation_target": [] + } + ], + "cpu_core_count": 8, + "cpu_threads_per_core": 1, + "credit_specification": [], + "disable_api_termination": false, + "ebs_block_device": [ + { + "delete_on_termination": true, + "device_name": "/dev/sdb", + "encrypted": true, + "iops": 10000, + "kms_key_id": "arn:aws:kms:us-east-2:977373308795:key/c888b569-380c-4b7b-b9d2-d8a2841167a7", + "snapshot_id": "", + "tags": {}, + "throughput": 125, + "volume_id": "vol-09e514ff741301695", + "volume_size": 500, + "volume_type": "gp3" + } + ], + "ebs_optimized": false, + "enclave_options": [ + { + "enabled": false + } + ], + "ephemeral_block_device": [], + "get_password_data": false, + "hibernation": false, + "host_id": null, + "iam_instance_profile": "able-8akNtK9QN75eYLnw-fb_cluster_node_profile", + "id": "i-05bc831873de67a77", + "instance_initiated_shutdown_behavior": "stop", + "instance_state": "running", + "instance_type": "m6g.2xlarge", + "ipv6_address_count": 0, + "ipv6_addresses": [], + "key_name": "able-8akNtK9QN75eYLnw-gitlab-ci", + "launch_template": [], + "metadata_options": [ + { + "http_endpoint": "enabled", + "http_put_response_hop_limit": 1, + "http_tokens": "optional", + "instance_metadata_tags": "disabled" + } + ], + "monitoring": true, + "network_interface": [], + "outpost_arn": "", + "password_data": "", + "placement_group": "", + "placement_partition_number": null, + "primary_network_interface_id": "eni-010ed0be0f2b69733", + "private_dns": "ip-10-0-101-78.us-east-2.compute.internal", + "private_ip": "10.0.101.78", + "public_dns": "", + "public_ip": "3.139.98.158", + "root_block_device": [ + { + "delete_on_termination": true, + "device_name": "/dev/xvda", + "encrypted": false, + "iops": 3000, + "kms_key_id": "", + "tags": null, + "throughput": 125, + "volume_id": "vol-0c66e54e1e8765e98", + "volume_size": 20, + "volume_type": "gp3" + } + ], + "secondary_private_ips": [], + "security_groups": [], + "source_dest_check": true, + "subnet_id": "subnet-066b4b922b54e51a2", + "tags": { + "Name": "able-8akNtK9QN75eYLnw-featurebase-ingest-0", + "Prefix": "able-8akNtK9QN75eYLnw", + "Role": "ingest_node" + }, + "tags_all": { + "Name": "able-8akNtK9QN75eYLnw-featurebase-ingest-0", + "Prefix": "able-8akNtK9QN75eYLnw", + "Role": "ingest_node" + }, + "tenancy": "default", + "timeouts": null, + "user_data": null, + "user_data_base64": null, + "volume_tags": null, + "vpc_security_group_ids": [ + "sg-0da5a1ac02f59fccc" + ] + }, + "sensitive_attributes": [], + "private": "eyJlMmJmYjczMC1lY2FhLTExZTYtOGY4OC0zNDM2M2JjN2M0YzAiOnsiY3JlYXRlIjo2MDAwMDAwMDAwMDAsImRlbGV0ZSI6MTIwMDAwMDAwMDAwMCwidXBkYXRlIjo2MDAwMDAwMDAwMDB9LCJzY2hlbWFfdmVyc2lvbiI6IjEifQ==", + "dependencies": [ + "module.able-cluster.aws_iam_instance_profile.fb_cluster_node_profile", + "module.able-cluster.aws_iam_role.fb_cluster_node_role", + "module.able-cluster.aws_key_pair.gitlab-featurebase-ci", + "module.able-cluster.aws_security_group.ingest", + "module.able-cluster.data.aws_ami.amazon_linux_2" + ] + } + ] + }, + { + "module": "module.able-cluster", + "mode": "managed", + "type": "aws_key_pair", + "name": "gitlab-featurebase-ci", + "provider": "provider[\"registry.terraform.io/hashicorp/aws\"]", + "instances": [ + { + "schema_version": 1, + "attributes": { + "arn": "arn:aws:ec2:us-east-2:977373308795:key-pair/able-8akNtK9QN75eYLnw-gitlab-ci", + "fingerprint": "69:e5:4b:15:8d:1f:22:61:de:08:a9:ee:f3:29:5c:69", + "id": "able-8akNtK9QN75eYLnw-gitlab-ci", + "key_name": "able-8akNtK9QN75eYLnw-gitlab-ci", + "key_name_prefix": "", + "key_pair_id": "key-0c55daaad2208fc6a", + "public_key": "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQC91hhpVHNonAG7ku2ugpxEskf9KHeyHJPQJT26OHrMUw7R+T5A8TjqSzTau07sXQ/E9SO3ebV8SJ5PqeaQOnQB8VEvVNK0DjQH7ppvNg1Rfs42FZT9ttzTMvOjsSbK3vZTHXdoKQEdC9NxBwSkFIRGQojK1HUOq9xGrw31fA1OjSwlpLcbx7yyg18lcqW6UOptnVR8U9Yy9qQ5jZF1HtkQ6L9J+gv4o1UyNAUK2bopeGiXpBc3PQ/CFaFT2h/aqLBP66qAHsHVyAFD3PIRtplC5EHa8jXDgLacEls0uF7Q3kRPxvzcuo4g4VkOn1rDy9qH3vd2hT3aKVnM73FIDUiL", + "tags": { + "Name": "able-8akNtK9QN75eYLnw-gitlab-featurebase-ci", + "Prefix": "able-8akNtK9QN75eYLnw", + "Role": "ssh_keypair" + }, + "tags_all": { + "Name": "able-8akNtK9QN75eYLnw-gitlab-featurebase-ci", + "Prefix": "able-8akNtK9QN75eYLnw", + "Role": "ssh_keypair" + } + }, + "sensitive_attributes": [], + "private": "eyJzY2hlbWFfdmVyc2lvbiI6IjEifQ==" + } + ] + }, + { + "module": "module.able-cluster", + "mode": "managed", + "type": "aws_security_group", + "name": "featurebase", + "provider": "provider[\"registry.terraform.io/hashicorp/aws\"]", + "instances": [ + { + "schema_version": 1, + "attributes": { + "arn": "arn:aws:ec2:us-east-2:977373308795:security-group/sg-0b359e17f4e8d2e80", + "description": "Allow featurebase inbound traffic", + "egress": [ + { + "cidr_blocks": [ + "0.0.0.0/0" + ], + "description": "", + "from_port": 0, + "ipv6_cidr_blocks": [ + "::/0" + ], + "prefix_list_ids": [], + "protocol": "-1", + "security_groups": [], + "self": false, + "to_port": 0 + } + ], + "id": "sg-0b359e17f4e8d2e80", + "ingress": [ + { + "cidr_blocks": [ + "0.0.0.0/0" + ], + "description": "SSH", + "from_port": 22, + "ipv6_cidr_blocks": [ + "::/0" + ], + "prefix_list_ids": [], + "protocol": "tcp", + "security_groups": [], + "self": false, + "to_port": 22 + }, + { + "cidr_blocks": [ + "0.0.0.0/0" + ], + "description": "icmp from Anywhere", + "from_port": -1, + "ipv6_cidr_blocks": [], + "prefix_list_ids": [], + "protocol": "icmp", + "security_groups": [], + "self": false, + "to_port": -1 + }, + { + "cidr_blocks": [ + "10.0.0.0/16" + ], + "description": "etcd from internal 2", + "from_port": 10401, + "ipv6_cidr_blocks": [], + "prefix_list_ids": [], + "protocol": "tcp", + "security_groups": [], + "self": false, + "to_port": 10401 + }, + { + "cidr_blocks": [ + "10.0.0.0/16" + ], + "description": "etcd from internal", + "from_port": 10301, + "ipv6_cidr_blocks": [], + "prefix_list_ids": [], + "protocol": "tcp", + "security_groups": [], + "self": false, + "to_port": 10301 + }, + { + "cidr_blocks": [ + "10.0.0.0/8", + "172.31.0.0/16" + ], + "description": "GRPC from Internal", + "from_port": 20101, + "ipv6_cidr_blocks": [], + "prefix_list_ids": [], + "protocol": "tcp", + "security_groups": [], + "self": false, + "to_port": 20101 + }, + { + "cidr_blocks": [ + "10.0.0.0/8", + "172.31.0.0/16" + ], + "description": "HTTP from Internal", + "from_port": 10101, + "ipv6_cidr_blocks": [], + "prefix_list_ids": [], + "protocol": "tcp", + "security_groups": [], + "self": false, + "to_port": 10101 + }, + { + "cidr_blocks": [ + "10.0.0.0/8", + "172.31.0.0/16" + ], + "description": "PostgreSQL from Internal", + "from_port": 55432, + "ipv6_cidr_blocks": [], + "prefix_list_ids": [], + "protocol": "tcp", + "security_groups": [], + "self": false, + "to_port": 55432 + } + ], + "name": "able-8akNtK9QN75eYLnw-allow_featurebase", + "name_prefix": "", + "owner_id": "977373308795", + "revoke_rules_on_delete": false, + "tags": { + "Name": "able-8akNtK9QN75eYLnw-allow_featurebase", + "Prefix": "able-8akNtK9QN75eYLnw", + "Role": "allow_featurebase" + }, + "tags_all": { + "Name": "able-8akNtK9QN75eYLnw-allow_featurebase", + "Prefix": "able-8akNtK9QN75eYLnw", + "Role": "allow_featurebase" + }, + "timeouts": null, + "vpc_id": "vpc-05a26a122f961dc2b" + }, + "sensitive_attributes": [], + "private": "eyJlMmJmYjczMC1lY2FhLTExZTYtOGY4OC0zNDM2M2JjN2M0YzAiOnsiY3JlYXRlIjo2MDAwMDAwMDAwMDAsImRlbGV0ZSI6OTAwMDAwMDAwMDAwfSwic2NoZW1hX3ZlcnNpb24iOiIxIn0=" + } + ] + }, + { + "module": "module.able-cluster", + "mode": "managed", + "type": "aws_security_group", + "name": "ingest", + "provider": "provider[\"registry.terraform.io/hashicorp/aws\"]", + "instances": [ + { + "schema_version": 1, + "attributes": { + "arn": "arn:aws:ec2:us-east-2:977373308795:security-group/sg-0da5a1ac02f59fccc", + "description": "Allow ingest inbound traffic", + "egress": [ + { + "cidr_blocks": [ + "0.0.0.0/0" + ], + "description": "", + "from_port": 0, + "ipv6_cidr_blocks": [ + "::/0" + ], + "prefix_list_ids": [], + "protocol": "-1", + "security_groups": [], + "self": false, + "to_port": 0 + } + ], + "id": "sg-0da5a1ac02f59fccc", + "ingress": [ + { + "cidr_blocks": [ + "0.0.0.0/0" + ], + "description": "", + "from_port": 10101, + "ipv6_cidr_blocks": [ + "::/0" + ], + "prefix_list_ids": [], + "protocol": "tcp", + "security_groups": [], + "self": false, + "to_port": 10101 + }, + { + "cidr_blocks": [ + "0.0.0.0/0" + ], + "description": "SSH", + "from_port": 22, + "ipv6_cidr_blocks": [ + "::/0" + ], + "prefix_list_ids": [], + "protocol": "tcp", + "security_groups": [], + "self": false, + "to_port": 22 + }, + { + "cidr_blocks": [ + "0.0.0.0/0" + ], + "description": "icmp from Anywhere", + "from_port": -1, + "ipv6_cidr_blocks": [], + "prefix_list_ids": [], + "protocol": "icmp", + "security_groups": [], + "self": false, + "to_port": -1 + } + ], + "name": "able-8akNtK9QN75eYLnw-allow_ingest", + "name_prefix": "", + "owner_id": "977373308795", + "revoke_rules_on_delete": false, + "tags": { + "Name": "able-8akNtK9QN75eYLnw-allow_ingest", + "Prefix": "able-8akNtK9QN75eYLnw", + "Role": "allow_ingest" + }, + "tags_all": { + "Name": "able-8akNtK9QN75eYLnw-allow_ingest", + "Prefix": "able-8akNtK9QN75eYLnw", + "Role": "allow_ingest" + }, + "timeouts": null, + "vpc_id": "vpc-05a26a122f961dc2b" + }, + "sensitive_attributes": [], + "private": "eyJlMmJmYjczMC1lY2FhLTExZTYtOGY4OC0zNDM2M2JjN2M0YzAiOnsiY3JlYXRlIjo2MDAwMDAwMDAwMDAsImRlbGV0ZSI6OTAwMDAwMDAwMDAwfSwic2NoZW1hX3ZlcnNpb24iOiIxIn0=" + } + ] + } + ] }