Skip to content
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

Tag exclusion not functioning for aws_workspaces_directory #122

Open
aghassemlouei opened this issue Jan 30, 2021 · 1 comment
Open

Tag exclusion not functioning for aws_workspaces_directory #122

aghassemlouei opened this issue Jan 30, 2021 · 1 comment

Comments

@aghassemlouei
Copy link
Contributor

When attempting to leverage 0.11.1 the following filter the directory service with the relevant tag does not show up:

aws_workspaces_directory:
  - tags:
      NOT(Owner): [email protected]

The output indicates that tags may not be parsed properly as other resource types return the tag values underneath each id:

awsweeper --dry-run filter.yml --region us-gov-west-1
   • SHOWING RESOURCES THAT WOULD BE DELETED (DRY RUN)
	---
	Type: aws_workspaces_directory
	Found: 3
		Id:		d-986735dc38
		Id:		d-9867374fe8
		Id:		d-986736710f
	---
   • TOTAL NUMBER OF RESOURCES THAT WOULD BE DELETED: 3
@jckuester
Copy link
Owner

Hi @aghassemlouei,

The output indicates that tags may not be parsed properly as other resource types return the tag values underneath each id:

This looks like this is the case. Can you please run awsls --region us-gov-west-1 -a tags and let me know if your resources with tags are listed correctly? (you find awsls for listing resources here: https://github.com/jckuester/awsls). awsweeper uses awsls as a dependency for listing resources and tags.

Thanks,
Jan

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants