{"id":15426436,"url":"https://github.com/tomconte/ece-azure-scripts","last_synced_at":"2025-09-12T17:37:55.814Z","repository":{"id":148764269,"uuid":"135992340","full_name":"tomconte/ece-azure-scripts","owner":"tomconte","description":"Provisioning and configuration scripts to prepare an Elastic Cloud Enterprise (ECE) environment on Microsoft Azure.","archived":false,"fork":false,"pushed_at":"2018-06-27T12:24:53.000Z","size":14,"stargazers_count":3,"open_issues_count":0,"forks_count":2,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-07-30T22:32:13.463Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/tomconte.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-06-04T08:11:23.000Z","updated_at":"2024-12-01T01:57:59.000Z","dependencies_parsed_at":"2023-05-28T21:45:09.762Z","dependency_job_id":null,"html_url":"https://github.com/tomconte/ece-azure-scripts","commit_stats":{"total_commits":13,"total_committers":1,"mean_commits":13.0,"dds":0.0,"last_synced_commit":"12e97d2c69c515cd943f3753529de4bd1e8d6c03"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/tomconte/ece-azure-scripts","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tomconte%2Fece-azure-scripts","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tomconte%2Fece-azure-scripts/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tomconte%2Fece-azure-scripts/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tomconte%2Fece-azure-scripts/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tomconte","download_url":"https://codeload.github.com/tomconte/ece-azure-scripts/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tomconte%2Fece-azure-scripts/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":274847834,"owners_count":25360978,"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","status":"online","status_checked_at":"2025-09-12T02:00:09.324Z","response_time":60,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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-10-01T17:56:13.280Z","updated_at":"2025-09-12T17:37:55.783Z","avatar_url":"https://github.com/tomconte.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Elastic Cloud Enterprise setup script for Microsoft Azure\n\nThis is a set of automation tools and scripts that will automate the creation of the Azure environment for Elastic Cloud Enterprise (ECE).\n\n## Terraform-based deployment\n\nThis method uses Packer to generate a base image with all the pre-requisites, and a Terraform configuration to deploy the Azure resources. It requires to prepare the image up front, but makes the deployment itself much faster since the OS is already prepared.\n\n### Preparing the environment\n\nThis method require you to first define some environment variables to authorize Packer and Terraform to access Azure.\n\n```\nexport ARM_SUBSCRIPTION_ID=00000000-0000-0000-0000-000000000000\nexport ARM_CLIENT_ID=00000000-0000-0000-0000-000000000000\nexport ARM_CLIENT_SECRET=00000000-0000-0000-0000-000000000000\nexport ARM_TENANT_ID=00000000-0000-0000-0000-000000000000\n```\n\n### Run Packer\n\nFirst create a Resource Group:\n\n```\naz group create -n ece-base-image -l westeurope\n```\n\nMake sure you use the same name and location as used in the Packer configuration.\n\nThen run Packer:\n\n```\npacker build ece-packer.json\n```\n\nOnce the VM image has been created, retrieve its ID using the following command:\n\n```\naz vm image list -g ece-base-image\n```\n\nThe ID will have this form:\n\n```\n/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/ece-base-image/providers/Microsoft.Compute/images/ece-base-image\n```\n\n### Run Terraform\n\nCopy the image ID into the `image_id` variables in `veriables.tf`. It should look like this:\n\n```\nvariable \"image_id\" {\n  default = \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/ece-base-image/providers/Microsoft.Compute/images/ece-base-image\"\n}\n```\n\nYou can also edit other variables, like the VM size and the data disk size (in GB).\n\nThen run Terraform:\n\n```\nterraform apply\n```\n\nThe Terraform configuration will execute the `disk_setup.sh` script in order to format the data disk. The script will also change the Docker configuration to point to the newly created data directory.\n\n## Script-based deployment\n\nThis method uses the `az` command to provision the ECE resources in Azure. It uses base Ubuntu images and prepares them according to the ECE documentation.\n\n### Provisioning the resources\n\nRun `provision.sh` to provision three Virtual Machines ready to be used to deploy ECE, including networking, security, and OS pre-requisites. The `node_setup.sh` and `disk_setup.sh` scripts will be executed on each VM in order to prepare the OS. Each VM will be rebooted for the system settings to take effect.\n\n## Installing ECE\n\nOnce the machines are prepared, you can log into them to install ECE.\n\nTo find the public IP addresses allocated to the nodes, use the following command:\n\n```\naz network public-ip list -g ece --query '[].ipAddress'\n```\n\nLog into the first machine and change to the `elastic` user:\n\n```\nsudo su - elastic\n```\n\nThen install ECE on the first host using the following commands:\n\n```\ncurl -O https://download.elastic.co/cloud/elastic-cloud-enterprise.sh\nchmod +x ./elastic-cloud-enterprise.sh\n./elastic-cloud-enterprise.sh install --host-storage-path /data/elastic\n```\n\nThen follow the ECE instructions to install on all the hosts.\n\n## Disclaimer\n\nThis is just an example and not officially supported by Elastic nor Microsoft.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftomconte%2Fece-azure-scripts","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftomconte%2Fece-azure-scripts","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftomconte%2Fece-azure-scripts/lists"}