k1LoW / awspec

RSpec tests for your AWS resources.
MIT License
1.17k stars 194 forks source link

how to test tags? #585

Closed BFTnaito closed 4 months ago

BFTnaito commented 6 months ago

When I run ''bundle exec awspec generate vpc xxx-VPC --region=xx'' to test a VPC, the configuration values regarding tags is not output. Why are the configuration values related to tags not outputted? Of course, tags are assigned to a VPC. Is it possible to run tests on tags in this case?

k1LoW commented 6 months ago

awspec generate is only a template output, not all parameters are generated.

If you are able to resolve this, we would encourage you to send a pull request.

Thanks

BFTnaito commented 6 months ago

So, we can test tags, even though they are not outputted in a template, right?

k1LoW commented 6 months ago

Yes. See https://github.com/k1LoW/awspec/blob/master/doc/resource_types.md#have_tag-28 👍