Skip to content

fix(filter-region): Support comma separated regions#1071

Merged
jfagoagas merged 3 commits into
prowler-cloud:masterfrom
thetemplateblog:regions
Mar 16, 2022
Merged

fix(filter-region): Support comma separated regions#1071
jfagoagas merged 3 commits into
prowler-cloud:masterfrom
thetemplateblog:regions

Conversation

@thetemplateblog
Copy link
Copy Markdown
Contributor

Context

When filtering on regions, the results are not as expected. None of the workarounds from #887 worked in my case. I have found that if regions are comma delimited, the filter works as intended. The problem with using single quotes is that the single quotes are passed into $FILTERREGION and the aws command line won't work like that.

Description

Using a simple bash replace character on line 344 of the prowler bash script allows the -f value to be delimited using a comma.

License

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@jfagoagas jfagoagas added the status/needs-triage Issue pending triage label Mar 16, 2022
Comment thread README.md Outdated
Co-authored-by: Toni de la Fuente <toni@blyx.com>
Comment thread README.md Outdated
@jfagoagas jfagoagas self-requested a review March 16, 2022 16:46
@jfagoagas jfagoagas removed the status/needs-triage Issue pending triage label Mar 16, 2022
@jfagoagas
Copy link
Copy Markdown
Member

Thank you @thetemplateblog, good catch!! 👏

@jfagoagas jfagoagas changed the title regions separated by a comma deliminator fix(filter-region): Support comma separated regions Mar 16, 2022
@jfagoagas jfagoagas merged commit cb0d9d3 into prowler-cloud:master Mar 16, 2022
@thetemplateblog thetemplateblog deleted the regions branch March 16, 2022 17:37
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

Successfully merging this pull request may close these issues.

3 participants