-
Notifications
You must be signed in to change notification settings - Fork 150
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
support for data resources? #111
Comments
Technically possible. Marking as |
thank you! |
Could you please try your cases with Also please let me know about the use cases, I couldn't find much by myself really. |
Thanks for the quick turnaround.
and when I see the plan.json, it actually has the data block as shown below
however for some reason, TC could not recognize that data block. |
Smashing issue report :D Will have a look after I fix another bug that I am in the middle of it. |
Could you please have a try with |
That's why we need #74 :( Fixing this problem. |
Can you please try with |
Thank you! Examples: |
Thanks for testing. Error message will be fixed in |
So I am trying to test a data source but it keeps saying it can't find it. I am trying to test the filter conditions on the aws_ami data source.
|
hi @andrewjkeith, It is better to re-open the issue or create a new issue in these situations :) It couldn't find, because you are looking for a resource. https://terraform-compliance.com/pages/bdd-references/given.html#given-i-have-name-defined Can you try with ; Scenario: AMI enforcement on EC2 instances
Given I have aws_ami data configured
When it contains a filter
Then it must contain name
And its value must be name |
Sorry, didnt realize I could re-open issues. But yes, thank you, that worked! It ultimately ended up being (without the 'a' in the when):
|
Glad that it worked! 🎉 Closing the issue, please don't hesitate to re-open this or open a new issue! :) |
Hi,
May I know if we have support for terraform data sources?
for example:
data "aws_autoscaling_group" "foo" { name = "foo" .......... }
is there a way to read the name or any attribute inside data block? Thanks in advance!
The text was updated successfully, but these errors were encountered: