{"id":15144393,"url":"https://github.com/nilsty/robotframework-terraformlibrary","last_synced_at":"2025-10-23T22:30:37.253Z","repository":{"id":248309027,"uuid":"827947775","full_name":"Nilsty/robotframework-terraformlibrary","owner":"Nilsty","description":"A RobotFramework wrapper for the Terraform / OpenTofu CLI","archived":false,"fork":false,"pushed_at":"2025-01-22T16:25:42.000Z","size":96,"stargazers_count":6,"open_issues_count":0,"forks_count":2,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-07T10:50:12.495Z","etag":null,"topics":["opentofu","robotframework","terraform"],"latest_commit_sha":null,"homepage":"https://nilsty.github.io/robotframework-terraformlibrary/","language":"Python","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/Nilsty.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-07-12T18:21:40.000Z","updated_at":"2025-01-22T16:25:45.000Z","dependencies_parsed_at":"2024-10-09T23:40:33.621Z","dependency_job_id":"02e1b72c-6405-47e4-85f1-ce28d7f05f74","html_url":"https://github.com/Nilsty/robotframework-terraformlibrary","commit_stats":{"total_commits":35,"total_committers":3,"mean_commits":"11.666666666666666","dds":0.05714285714285716,"last_synced_commit":"a7411d30d2fadde6f8769e182dfeddccf0e4ee86"},"previous_names":["nilsty/robotframework-terraformlibrary"],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Nilsty%2Frobotframework-terraformlibrary","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Nilsty%2Frobotframework-terraformlibrary/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Nilsty%2Frobotframework-terraformlibrary/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Nilsty%2Frobotframework-terraformlibrary/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Nilsty","download_url":"https://codeload.github.com/Nilsty/robotframework-terraformlibrary/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":237890774,"owners_count":19382562,"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":["opentofu","robotframework","terraform"],"created_at":"2024-09-26T10:41:06.969Z","updated_at":"2025-10-23T22:30:31.985Z","avatar_url":"https://github.com/Nilsty.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Terraform Library for Robot Framework\n[![PyPI](https://img.shields.io/pypi/v/robotframework-terraformlibrary)](https://pypi.org/project/robotframework-terraformlibrary/)[![PyPi downloads](https://img.shields.io/pypi/dm/robotframework-terraformlibrary.svg)](https://pypi.python.org/pypi/robotframework-terraformlibrary)\n\nTerraformLibrary is a wrapper for the [Hashicorp Terraform CLI](https://developer.hashicorp.com/terraform/cli)\n\nThe library can also be configured to run [OpenTofu](https://opentofu.org/) instead of Terraform.\n\n---\n## Keyword Documentation\n[Link to the keyword documentation](https://nilsty.github.io/robotframework-terraformlibrary/terraformlibrary.html)\n\n---\n## Installation\nIf you already have Python \u003e= 3.8 with pip installed, you can simply run:  \n`pip install --upgrade robotframework-terraformlibrary`\n\n---\n## Getting started\nSome examples how to import and use the library.\n\n``` robotframework\n*** Settings ***\nLibrary            TerraformLibrary\n\n*** Variables ***\n${PATH_TO_TERRAFORM_SCRIPT}    ${CURDIR}/terraform-script\n\n*** Test Cases ***\nRun Terraform Init\n    ${rc}    ${output}    Terraform Init    ${PATH_TO_TERRAFORM_SCRIPT}\n\nRun Terraform Plan\n    Set TF Var    my_var    test_value\n    ${rc}    ${output}    Terraform Plan    ${PATH_TO_TERRAFORM_SCRIPT}\n    Should Contain    ${output}    Plan: 1 to add, 0 to change, 0 to destroy.\n\nRun Terraform Apply\n    ${rc}    ${output}    Terraform Apply    ${PATH_TO_TERRAFORM_SCRIPT}\n    Should Contain    ${output}    Apply complete! Resources: 1 added, 0 changed, 0 destroyed.\n\nInspect Terraform State\n    ${output}    Get Terraform State    ${PATH_TO_TERRAFORM_SCRIPT}\n    Should Be Equal As Strings    ${output[\"values\"][\"root_module\"][\"resources\"][0][\"name\"]}    foo\n\nRun Terraform Destroy\n    ${rc}    ${output}    Terraform Destroy    ${PATH_TO_TERRAFORM_SCRIPT}\n    Should Contain    ${output}    Destroy complete! Resources: 1 destroyed.\n```\n\n---\n## Development\n\nInstall `poetry` on your system with `pip install poetry`.\n\nThen setup the current project in a virtual env for development:\n\n```\n$ poetry env use $(which python3)\n$ source $(poetry env info --path)/bin/activate\n$ poetry install\n```\n\nRun the unit tests:\n\n```\n$ poetry run invoke utests\n```\n\nRun the acceptance tests:\n\n```\n$ poetry run invoke atests\n```\n\nRun all tests:\n\n```\n$ poetry run invoke tests\n```\n\nExit the virtualenv\n\n```\ndeactivate\n```\n---\n## Releasing new versions to PyPi\n\nThe Robotframework-TerraformLibrary is released on [PyPi.org](https://pypi.org/project/robotframework-terraformlibrary/).\nTo release a new version of the library to PyPi, a few steps are needed.\n- update the version number in [pyproject.toml](pyproject.toml)\n- rebuild the keyword documentation with the command `poetry run libdoc`\n- create a pull request with the updated pyproject.toml and the keyword documentation under `docs/terraformlibrary.html`\n- once the pull request is merged a new github release can be created and published which will trigger a [github action](.github/workflows/publish.yml) publishing the release to PyPi via a trusted publisher setup.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnilsty%2Frobotframework-terraformlibrary","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnilsty%2Frobotframework-terraformlibrary","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnilsty%2Frobotframework-terraformlibrary/lists"}