{"id":18448970,"url":"https://github.com/davydany/pycloud","last_synced_at":"2025-04-15T11:30:00.138Z","repository":{"id":74317426,"uuid":"143363397","full_name":"davydany/pycloud","owner":"davydany","description":"A simple python provisioner for ec2 instances.","archived":false,"fork":false,"pushed_at":"2018-08-06T04:19:20.000Z","size":53,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-02-16T13:31:48.839Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","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/davydany.png","metadata":{"files":{"readme":"README.rst","changelog":"HISTORY.rst","contributing":"docs/contributing.rst","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-08-03T01:43:51.000Z","updated_at":"2018-08-06T04:19:21.000Z","dependencies_parsed_at":null,"dependency_job_id":"26d1dcd9-28cd-4e5c-a162-91ab8928b114","html_url":"https://github.com/davydany/pycloud","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/davydany%2Fpycloud","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/davydany%2Fpycloud/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/davydany%2Fpycloud/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/davydany%2Fpycloud/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/davydany","download_url":"https://codeload.github.com/davydany/pycloud/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249060747,"owners_count":21206386,"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-11-06T07:17:51.271Z","updated_at":"2025-04-15T11:30:00.120Z","avatar_url":"https://github.com/davydany.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"=========\nPyCloud\n=========\n\n.. image:: https://travis-ci.org/davydany/pycloud.svg?branch=master\n    :target: https://travis-ci.org/davydany/pycloud\n\n\nWhat it Does\n------------\n\nA simple cloud provisioner for provisioning VMs on EC2 and configuring them\nbased on a simple plan.\n\nGetting Started\n---------------\n\n.. code:: bash\n\n  pip install --upgrade git+https://github.com/davydany/pycloud\n\nUsage\n-----\n\nTo see all the options available for you, run:\n\n.. code:: bash\n\n    pycloud --help\n\nPyCloud uses a plan file to setup your infrastructure, similar to how \nAnsible works. There are a few sample files in **example_plans** directory.\n\nHere is how to execute a plan:\n\n.. code:: bash\n\n    export AWS_ACCESS_KEY=\"\u003cYOUR_AWS_ACCESS_KEY\u003e\"\n    export AWS_SECRET_KEY=\"\u003cYOUR_AWS_SECRET_KEY\u003e\"\n\n    pycloud setup ./example_plans/test_plan.yml\n\n\nIf you'd like to run the process in reverse, and teardown the setup plan, run:\n\n.. code:: bash\n\n    pycloud teardown ./example_plans/test_plan.yml\n\n\nIf you'd like to see all the available provisioners, along with their required\nand optional arguments, run:\n\n.. code:: bash\n\n    pycloud docs\n\nUsing the docs in **pycloud docs**, you can create your own plan, like the one\nbelow:\n\n**WARNING:** Setting **max_count** under **ec2_instance** to a value larger than\n1 will make that many instances on EC2, and Amazon will charge you for those\ninstances.\n\n.. code:: yaml\n\n    ---\n    tasks:\n        - ec2_security_group:\n            name: Create Security Groups for our Ubuntu Instance\n            region: us-east-1a\n            group_name: 'ubuntu_sg'\n            group_description: 'The Ubuntu Security Group'\n            rules:\n                - tcp:\n                    start: 22\n                    end: 22\n                    cidr_ip: '0.0.0.0/0'\n            \n        - ec2_key_pair:\n            name: Create the Key Pair we need to access the Ubuntu Instance\n            region: us-east-1a\n            key_name: admin_kp\n            \n        - ec2_instance:\n            name: Setup Simple Ubuntu Instance on AWS\n            region: us-east-1a\n            ami_id:  ami-456b493a\n            instance_type: t2.micro\n            security_group: ubuntu_sg\n            key_name: admin_kp\n            min_count: 1\n            max_count: 1\n            instance_id_ref: $ubuntu_vms\n\n        - ssh_keygen:\n            name: Generate a RSA Key for our user, Rick Sanchez! \n            key_type: 'rsa'\n            file: id_rsa\n            passphrase: ''\n            out_dir: '/tmp/keys/'\n\n        - user_add:\n            name: Creates the Rick Sanchez user on the referenced Instances\n            region: us-east-1a\n            key_name: admin_kp\n            user_name: rsanchez\n            instance_id_ref: $ubuntu_vms\n            default_shell: /bin/bash\n            public_key: /tmp/keys/id_rsa.pub\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdavydany%2Fpycloud","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdavydany%2Fpycloud","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdavydany%2Fpycloud/lists"}