ansible-collections / cloud.terraform

The collection automates the management and provisioning of infrastructure as code (IaC) using the Terraform CLI tool within Ansible playbooks and Execution Environment runtimes.
GNU General Public License v3.0
100 stars 36 forks source link

[PR #153/8c78d5ef backport][stable-2] inventory/terraform_state - Use `terraform state pull` command instead of `terraform show` to read state file #157

Closed patchback[bot] closed 4 months ago

patchback[bot] commented 4 months ago

This is a backport of PR #153 as merged into main (8c78d5ef879de1144a7cf6e001d673ce44dbdbc7).

SUMMARY

Closes #151

The plugin inventory/terraform_state has been updated to read the raw state file instead using terraform state pull command instead of reading the output from terraform show (which requires the provider version used) command to parse resources

ISSUE TYPE
COMPONENT NAME

inventory/terraform_state

codecov[bot] commented 4 months ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Please upload report for BASE (stable-2@f13b96e). Learn more about missing BASE report.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## stable-2 #157 +/- ## =========================================== Coverage ? 80.09% =========================================== Files ? 23 Lines ? 1522 Branches ? 274 =========================================== Hits ? 1219 Misses ? 262 Partials ? 41 ``` | [Flag](https://app.codecov.io/gh/ansible-collections/cloud.terraform/pull/157/flags?src=pr&el=flags&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=ansible-collections) | Coverage Δ | | |---|---|---| | [units](https://app.codecov.io/gh/ansible-collections/cloud.terraform/pull/157/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=ansible-collections) | `80.09% <ø> (?)` | | Flags with carried forward coverage won't be shown. [Click here](https://docs.codecov.io/docs/carryforward-flags?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=ansible-collections#carryforward-flags-in-the-pull-request-comment) to find out more.

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.

softwarefactory-project-zuul[bot] commented 4 months ago

Build succeeded. https://ansible.softwarefactory-project.io/zuul/buildset/e56cd7d358b4433287ef5cc555763a13

:heavy_check_mark: ansible-galaxy-importer SUCCESS in 4m 14s :heavy_check_mark: build-ansible-collection SUCCESS in 6m 59s

softwarefactory-project-zuul[bot] commented 4 months ago

Build succeeded (gate pipeline). https://ansible.softwarefactory-project.io/zuul/buildset/af322855cf4e4634b93a09b296d3f8aa

:heavy_check_mark: ansible-galaxy-importer SUCCESS in 4m 00s :heavy_check_mark: build-ansible-collection SUCCESS in 6m 51s