{"id":15293285,"url":"https://github.com/catalystcode/cloud-cd","last_synced_at":"2026-05-11T05:55:38.305Z","repository":{"id":57151242,"uuid":"78624151","full_name":"CatalystCode/cloud-cd","owner":"CatalystCode","description":null,"archived":false,"fork":false,"pushed_at":"2017-05-23T13:31:20.000Z","size":67,"stargazers_count":0,"open_issues_count":0,"forks_count":2,"subscribers_count":7,"default_branch":"master","last_synced_at":"2025-03-21T13:50:52.054Z","etag":null,"topics":["arm","continuous-delivery","multi-cloud","nodejs","typescript"],"latest_commit_sha":null,"homepage":null,"language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/CatalystCode.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-01-11T09:36:56.000Z","updated_at":"2017-02-12T13:34:03.000Z","dependencies_parsed_at":"2022-08-31T23:52:13.459Z","dependency_job_id":null,"html_url":"https://github.com/CatalystCode/cloud-cd","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/CatalystCode%2Fcloud-cd","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CatalystCode%2Fcloud-cd/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CatalystCode%2Fcloud-cd/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CatalystCode%2Fcloud-cd/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/CatalystCode","download_url":"https://codeload.github.com/CatalystCode/cloud-cd/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245284357,"owners_count":20590306,"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":["arm","continuous-delivery","multi-cloud","nodejs","typescript"],"created_at":"2024-09-30T16:45:22.503Z","updated_at":"2026-05-11T05:55:38.266Z","avatar_url":"https://github.com/CatalystCode.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# cloud-cd\nThis module abstracts the process of continuous delivery on multiple clouds.\n\n# Resources\n\n- `pkgcloud`: This module uses [pkgcloud](https://github.com/pkgcloud/pkgcloud) for creating and managing resources on different clouds.\n\n# Known Issues\nThis package currently uses [CatalystCode/pkgcloud](https://github.com/CatalystCode/pkgcloud) directly to enable azure ARM.\nOnce the [pull request](https://github.com/pkgcloud/pkgcloud/pull/550) is merged, the relevant dependency should also be updated.\n\nCurrently supports Windows Server 2012 and up for running remote commands (using SSH).\n\n# Usage\n\n1. [Create a service principal](https://docs.microsoft.com/en-us/azure/azure-resource-manager/resource-group-create-service-principal-portal)\n2. Create a resource group in azure (i.e. \"resources-rg\")\n3. Create the following config (edit to match your account's info):\n\n```js\n\n// This is an example of the values you need to insert (it will not work as is)\n// Make sure to update all values with your relevant data\nvar config = {\n  azure: {\n    connection: {\n      provider: 'azure-v2',\n      subscriptionId: \"e9be1fc6-cb43-4830-99f9-0251055fecec\",\n      resourceGroup: \"resources-rg\",\n\n      servicePrincipal: {\n        clientId: \"2285862c-d875-45f2-a53a-57d7a5b76606\",\n        secret: \"FIUH34R98HSsdfHF9438swoieFNcij3SffsSf45nJFl=\",\n        domain: \"06f306c4-bc72-4ad4-99ac-a6b5f4b56cc9\"\n      }\n    },\n    server: {\n      name:  'vm-name',\n      flavor: 'Standard_D1',\n      username:  'cloudcdusr',\n      password:  'Cloudcdusr!!',\n\n      storageOSDiskName: \"osdisk\",\n      storageDataDiskNames: [ \"datadisk1\" ],\n\n      osType: 'Linux',\n      imagePublisher: \"Canonical\",\n      imageOffer: \"UbuntuServer\",\n      imageSku: \"16.04.0-LTS\",\n      imageVersion: \"latest\"\n    }\n  }\n}\n```\n\n4. Execute the following command:\n\n```js\nvar cloudCD = require('cloud-cd');\n\nvar getVMClient = new cloudCD.GetVMAction(config.azure.connection);\ngetVMClient.perform(config.azure.server, (err, server) =\u003e {\n  if (err) {\n    return console.error(err);\n  }\n  console.dir(server);\n});\n\nvar createVMClient = new cloudCD.CreateVMAction(config.azure.connection);\ncreateVMClient.perform(config.azure.server, (err, server) =\u003e {\n  if (err) {\n    return console.error(err);\n  }\n  console.dir(server);\n});\n\nvar remoteExecuteClient = new cloudCD.RemoteExecute(config.azure.connection);\n// Windows remote execute sample\nvar ps_script = path.join(__dirname, 'scripts', 'dummy.ps1');\nremoteExecuteClient.perform(config.azure.server2, { script: ps_script }, (err, outputs) =\u003e {\n  if (err) {\n    return console.error(err);\n  }\n});\n\n// Linux remote execute sample\nvar ssh_script = path.join(__dirname, 'scripts', 'demo.sh');\nremoteExecuteClient.perform(config.azure.server, { script: ssh_script }, (err, outputs) =\u003e {\n  if (err) {\n    return console.error(err);\n  }\n});\n\nvar destroyVMClient = new cloudCD.DestroyVMAction(config.azure.connection);\ndestroyVMClient.perform(config.azure.server, (err) =\u003e {\n  if (err) {\n    return console.error(err);\n  }\n});\n```\n\n# License\nMIT","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcatalystcode%2Fcloud-cd","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcatalystcode%2Fcloud-cd","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcatalystcode%2Fcloud-cd/lists"}