Skip to content

Add support for skipping AWS service roles#53

Merged
mtibben merged 2 commits into
99designs:masterfrom
jacobbednarz:skip-aws-service-roles
Jan 10, 2019
Merged

Add support for skipping AWS service roles#53
mtibben merged 2 commits into
99designs:masterfrom
jacobbednarz:skip-aws-service-roles

Conversation

@jacobbednarz

Copy link
Copy Markdown
Collaborator

AWS service roles aren't something that end users need to concern
themselves with as they are managed by AWS and automatically applied to
some services that require the interaction.

To support this addition, I've refactored the skipping sections of the
existing functions to use a new method - isSkippableManagedResource.
This function consolidates the logic as to whether or not the resource
should be skipped.

Fixes #38

Creates a new single method that handles checking whether a resource
should be skipped from managing as it is already managed via automated
or alternative means.
AWS service roles aren't something that end users need to concern
themselves with as they are managed by AWS and automatically applied to
some services that require the interaction.

@simpsora simpsora left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks excellent! Thanks @jacobbednarz.

@simpsora

Copy link
Copy Markdown

This refactoring also should make it easier to implement a skip list (as suggested in #36).

@jacobbednarz

Copy link
Copy Markdown
Collaborator Author

Correct @simpsora. Once we yay/nay this approach, I'll open another PR with the additions. It will be relatively straight forward using a a newline delimited file for the custom ignores.

@simpsora

Copy link
Copy Markdown

cc @mtibben from the discussion in #36 (a year ago!).

@mtibben mtibben merged commit 05d13b6 into 99designs:master Jan 10, 2019
@mtibben

mtibben commented Jan 10, 2019

Copy link
Copy Markdown
Member

Looks good @jacobbednarz, thank you!

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