{"id":13652124,"url":"https://github.com/GoogleCloudPlatform/eos-block-producer","last_synced_at":"2025-04-23T03:30:33.639Z","repository":{"id":47091698,"uuid":"402256061","full_name":"GoogleCloudPlatform/eos-block-producer","owner":"GoogleCloudPlatform","description":null,"archived":true,"fork":false,"pushed_at":"2021-09-13T23:08:03.000Z","size":25,"stargazers_count":9,"open_issues_count":0,"forks_count":3,"subscribers_count":6,"default_branch":"main","last_synced_at":"2025-04-19T22:18:22.738Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Smarty","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/GoogleCloudPlatform.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2021-09-02T01:47:14.000Z","updated_at":"2023-01-13T07:40:21.000Z","dependencies_parsed_at":"2022-08-24T01:50:14.752Z","dependency_job_id":null,"html_url":"https://github.com/GoogleCloudPlatform/eos-block-producer","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GoogleCloudPlatform%2Feos-block-producer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GoogleCloudPlatform%2Feos-block-producer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GoogleCloudPlatform%2Feos-block-producer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GoogleCloudPlatform%2Feos-block-producer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/GoogleCloudPlatform","download_url":"https://codeload.github.com/GoogleCloudPlatform/eos-block-producer/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250365196,"owners_count":21418646,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-08-02T02:00:55.594Z","updated_at":"2025-04-23T03:30:33.324Z","avatar_url":"https://github.com/GoogleCloudPlatform.png","language":"Smarty","funding_links":[],"categories":["Developers"],"sub_categories":["Block Producer tools"],"readme":"# EOS Block Producer\nThis is a Terraform module to create an EOS Block Producer (BP) node on Google Cloud Platform (GCP).\n\nThe instructions for use assume an understanding of how a BP node works, full documnetation can be found on the EOS.io website https://developers.eos.io/manuals/eos/latest/index placeholder values have been used where possible and will need to be replaced as per the instructions.\n\n## Instructions\n1. gcloud SDK installed\n2. Terraform 0.13 installed\n3. A GCP project (create with the command `gcloud projects create \u003cPROJECT_NAME\u003e`)\n4. Set project as active (use the command `gcloud config set project \u003cPROJECT_NAME\u003e`)\n\u003c!-- 4. Enable the following APIs in the GCP project --\u003e\n5. Update EOS configuration files. Sample \"config.ini\" files are given which need to be updated according to the requirements. Agent name, Block producer key etc.\n6. A GCS Storage bucket (create with the command `gsutil mb gs://\u003cBUCKET_NAME\u003e')\n    - Copy the required files to this bucket with the command   `gsutil cp configs/*_config.ini.tpl gs://\u003cBUCKET_NAME\u003e/config_ini/`\n7. Update `example.terraform.tfvars` and rename to `terraform.tfvars` variables are detailed in table below\n8. Update `backend.tf` to store terraform state file in a GCS bucket\n9. Run `terraform init`\n10. Run `terraform plan` and review the output\n11. Run `terraform apply`\n\n## Terrform Variables\n1. Update backend.tf \nReplacing bucket = \"my-new-bucket\" with the bucket name to save terraform state.\n\n2. Update terraform.tfvars\n\n|variable| value|\n|------|-------|\n|org_id|Organization ID|\n|project_id|Project ID |\n|region|Region where resources will be created. |\n|subnetname| name of the subnet to be created|\n|network| name of the network to be created|\n|subnet| The subnet in CIDR notation for the network|\n|disk_type| Disk type, either pd-standard, pd-balanced, or pd-ssd|\n|disk_size| Disk size in MB|\n \n ## Resources created by the script\n\nThis terraform script will set-up Block Produer environment. It includes following list of Components.\n\n| Component | Description | Details    |\n|-----------|-------------|------------|\n| sign MIG  | Managed instance group for Singing API nodes.|  Maximum 2 instances, Auto-heal|\n| peer MIG  | Managed instance group for peering API nodes. |  Maximum 2 instances, Auto-heal |\n| web MIG  | Managed instance group for Chain API nodes.| Maximum 2 instances, Auto-heal|\n| sign instance template | Instance Template for Singing node |  n2-Standard-16 | \n| web instance template |  Instance Template for Web node (Chain API)| n2-Standard-4 |\n|peer instance template |  Instance Template for Peering node|n2-Standard-8 | \n|Service Accounts | 3 service accouts are created for each type of instances. | peer service account, web service account, sign service account | \n|TCP LB | TCP Load Balancers for Peer and Chain API Nodes | 2 LB|\n|HTTP LB | HTTP Load Balancers for Peer and Chain API Noes | 2 LB |\n|VPC and Subnet |  Single non-default VPC with 1 subnet is created. | |\n|TCP health check| TCP health check on port 8888 and 9876 |''|\n|HTTP health check |HTTP health check on port 8888 |''|\n|CloudNAT |  All instances only have internal IP address. Internet is accessed via CloudNAT|''|","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FGoogleCloudPlatform%2Feos-block-producer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FGoogleCloudPlatform%2Feos-block-producer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FGoogleCloudPlatform%2Feos-block-producer/lists"}