Closed madhuravius closed 1 year ago
This pull request has been linked to Shortcut Story #7090: Add Stack data source to Terraform provider.
The added integration tests ran for environments:
Validation tests also pass:
Added another client-based test that pulls stacks and checks the stack data resource:
Unless there's a time-boxable way to proceed, this will work:
In an unset environment:
Tests should work after changes:
Guard and comment are ugly on data source for stacks, but will allow us to get by for now The lack of env_id does not bother me because it would either not find the value in the client or there is another issue. i can replicate the same ugliness of stack there if you want me to use the client, but i'd like to keep that to a minimum (juice not worth the squeeze there)
Added a data source for stacks (searchable by stack name)
This works as is:
This also worked on redeploy:
And finally validated correctly on the dashboard: