{"id":15140791,"url":"https://github.com/ansible-community/molecule-ec2","last_synced_at":"2025-09-29T10:30:36.074Z","repository":{"id":39880050,"uuid":"217321658","full_name":"ansible-community/molecule-ec2","owner":"ansible-community","description":"🚧 Migrated inside molecule-plugins","archived":true,"fork":false,"pushed_at":"2023-01-02T19:27:46.000Z","size":56,"stargazers_count":51,"open_issues_count":0,"forks_count":29,"subscribers_count":19,"default_branch":"main","last_synced_at":"2024-09-22T13:32:42.683Z","etag":null,"topics":["ansible","hacktoberfest","molecule","molecule-driver"],"latest_commit_sha":null,"homepage":"https://github.com/ansible-community/molecule-plugins","language":"Python","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/ansible-community.png","metadata":{"files":{"readme":"README.rst","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null},"funding":{"github":"ssbarnea"}},"created_at":"2019-10-24T14:38:59.000Z","updated_at":"2023-06-09T16:20:09.000Z","dependencies_parsed_at":"2023-02-01T04:00:37.789Z","dependency_job_id":null,"html_url":"https://github.com/ansible-community/molecule-ec2","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ansible-community%2Fmolecule-ec2","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ansible-community%2Fmolecule-ec2/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ansible-community%2Fmolecule-ec2/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ansible-community%2Fmolecule-ec2/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ansible-community","download_url":"https://codeload.github.com/ansible-community/molecule-ec2/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":219874048,"owners_count":16554541,"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":["ansible","hacktoberfest","molecule","molecule-driver"],"created_at":"2024-09-26T08:41:22.005Z","updated_at":"2025-09-29T10:30:35.724Z","avatar_url":"https://github.com/ansible-community.png","language":"Python","funding_links":["https://github.com/sponsors/ssbarnea"],"categories":[],"sub_categories":[],"readme":"*******************\nMolecule EC2 Plugin\n*******************\n\n.. image:: https://badge.fury.io/py/molecule-ec2.svg\n   :target: https://badge.fury.io/py/molecule-ec2\n   :alt: PyPI Package\n\n.. image:: https://zuul-ci.org/gated.svg\n   :target: https://dashboard.zuul.ansible.com/t/ansible/builds?project=ansible-community/molecule-ec2\n\n.. image:: https://img.shields.io/badge/code%20style-black-000000.svg\n   :target: https://github.com/python/black\n   :alt: Python Black Code Style\n\n.. image:: https://img.shields.io/badge/Code%20of%20Conduct-silver.svg\n   :target: https://docs.ansible.com/ansible/latest/community/code_of_conduct.html\n   :alt: Ansible Code of Conduct\n\n.. image:: https://img.shields.io/badge/Mailing%20lists-silver.svg\n   :target: https://docs.ansible.com/ansible/latest/community/communication.html#mailing-list-information\n   :alt: Ansible mailing lists\n\n.. image:: https://img.shields.io/badge/license-MIT-brightgreen.svg\n   :target: LICENSE\n   :alt: Repository License\n\nMolecule EC2 is designed to allow use of AWS EC2 for provisioning of test\nresources.\n\n.. _quickstart:\n\nQuickstart\n==========\n\nInstallation\n------------\n.. code-block:: bash\n\n   pip install molecule-ec2\n\nCreate a scenario\n-----------------\n\nWith a new role\n^^^^^^^^^^^^^^^\n.. code-block:: bash\n\n   molecule init role -d ec2 my-role\n\nThis will create a new folder *my-role* containing a bare-bone generated\nrole like you would do with ``ansible-galaxy init`` command.\nIt will also contain a molecule folder with a default scenario\nusing the ec2 driver (using ansible community.aws.ec2_instance collection).\nInstall the collection using\n`ansible-galaxy install -r test_requirements.yml`.\n\nIn a pre-existing role\n^^^^^^^^^^^^^^^^^^^^^^\n.. code-block:: bash\n\n   molecule init scenario -d ec2\n\nThis will create a default scenario with the ec2 driver in a molecule folder,\nlocated in the current working directory.\n\nExample\n-------\nThis is a molecule.yml example file\n\n.. code-block:: yaml\n\n   dependency:\n      name: galaxy\n   driver:\n      name: ec2\n   platforms:\n     - name: instance\n       image_owner: \"099720109477\"\n       image_name: ubuntu/images/hvm-ssd/ubuntu-bionic-18.04-amd64-server-*\n       instance_type: t2.micro\n       vpc_subnet_id: \u003cyour-aws-vpc-subnet-id\u003e\n       tags:\n         Name: molecule_instance\n   provisioner:\n     name: ansible\n   verifier:\n     name: ansible\n\nAll you need to do is fill in the subnet-id you want\nto create your test instance into.\nThen run\n\n.. code-block:: bash\n\n   molecule test\n\n.. note::\n   To make this work, you need to export your AWS credentials, as well as the AWS region you want to use, in your environment.\n\n   .. code-block:: bash\n\n      export AWS_ACCESS_KEY_ID=ACCESS_API_KEY\n      export AWS_SECRET_KEY=SECRET_API_KEY\n      export AWS_REGION=us-east-1\n\n   You can read more about managing AWS credentials with Ansible modules\n   in the official documentation of the `Ansible AWS modules \u003chttps://docs.ansible.com/ansible/latest/collections/amazon/aws\u003e`_\n\nDocumentation\n=============\n\nDetails on the parameters for the platforms section are detailed in\n`\u003cplatforms.rst\u003e`__.\n\nRead the molecule documentation and more at https://molecule.readthedocs.io/.\n\n.. _get-involved:\n\nGet Involved\n============\n\n* Join us in the ``#ansible-molecule`` channel on `Freenode`_.\n* Join the discussion in `molecule-users Forum`_.\n* Join the community working group by checking the `wiki`_.\n* Want to know about releases, subscribe to `ansible-announce list`_.\n* For the full list of Ansible email Lists, IRC channels see the\n  `communication page`_.\n\n.. _`Freenode`: https://freenode.net\n.. _`molecule-users Forum`: https://groups.google.com/forum/#!forum/molecule-users\n.. _`wiki`: https://github.com/ansible/community/wiki/Molecule\n.. _`ansible-announce list`: https://groups.google.com/group/ansible-announce\n.. _`communication page`: https://docs.ansible.com/ansible/latest/community/communication.html\n\n.. _authors:\n\nAuthors\n=======\n\nMolecule EC2 Plugin was created by Sorin Sbarnea based on code from\nMolecule.\n\n.. _license:\n\nLicense\n=======\n\nThe `MIT`_ License.\n\n.. _`MIT`: https://github.com/ansible/molecule/blob/master/LICENSE\n\nThe logo is licensed under the `Creative Commons NoDerivatives 4.0 License`_.\n\nIf you have some other use in mind, contact us.\n\n.. _`Creative Commons NoDerivatives 4.0 License`: https://creativecommons.org/licenses/by-nd/4.0/\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fansible-community%2Fmolecule-ec2","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fansible-community%2Fmolecule-ec2","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fansible-community%2Fmolecule-ec2/lists"}