-
-
Notifications
You must be signed in to change notification settings - Fork 38
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #479 from ekristen/feat-expand-names
feat: expand resource names
- Loading branch information
Showing
6 changed files
with
64 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
# Name Expansion | ||
|
||
This allows you to use wildcards in the resource names to match multiple resources. This is primarily useful when you | ||
want to target a group of resource type for either inclusion or exclusion. | ||
|
||
Resource Name expansion is valid for use in the following areas: | ||
|
||
!!! warning | ||
This feature is currently **NOT** supported in filters. | ||
|
||
- cli includes/excludes | ||
- config resource types includes/excludes | ||
- account resource types includes/excludes | ||
|
||
## Examples | ||
|
||
### CLI | ||
|
||
```console | ||
aws-nuke run --config config.yaml --include "Cognito*" | ||
``` | ||
|
||
This can also be used with `resource-types` subcommand to see what resource types are available, and you can specify | ||
multiple wildcard arguments. | ||
|
||
```console | ||
aws-nuke resource-types "Cognito*" "IAM*" | ||
``` | ||
|
||
### Config | ||
|
||
```yaml | ||
resource-types: | ||
includes: | ||
- "Cognito*" | ||
excludes: | ||
- "OpsWorks*" | ||
``` | ||
### Account Config | ||
```yaml | ||
accounts: | ||
'012345678912': | ||
resource-types: | ||
includes: | ||
- "Cognito*" | ||
excludes: | ||
- "OpsWorks*" | ||
``` | ||
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters