-
-
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 #375 from ekristen/oct-various-changes
feat: various fixes and features - october
- Loading branch information
Showing
15 changed files
with
392 additions
and
31 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,107 @@ | ||
# Config Contributions | ||
|
||
## Community Presets | ||
|
||
These are a collection of presets from the community. | ||
|
||
!!! warning | ||
These presets are built from feedback from the community, they are not routinely tested. Use at your own risk. | ||
|
||
### Filter SSO Resources | ||
|
||
This is a preset to filter out AWS SSO resources. | ||
|
||
```yaml | ||
presets: | ||
sso: | ||
filters: | ||
IAMSAMLProvider: | ||
- type: "regex" | ||
value: "AWSSSO_.*_DO_NOT_DELETE" | ||
IAMRole: | ||
- type: "glob" | ||
value: "AWSReservedSSO_*" | ||
IAMRolePolicyAttachment: | ||
- type: "glob" | ||
value: "AWSReservedSSO_*" | ||
``` | ||
### Filter Control Tower | ||
This is a preset to filter out AWS Control Tower resources. | ||
```yaml | ||
presets: | ||
controltower: | ||
filters: | ||
CloudTrailTrail: | ||
- type: "contains" | ||
value: "aws-controltower" | ||
CloudWatchEventsRule: | ||
- type: "contains" | ||
value: "aws-controltower" | ||
- property: "Name" | ||
type: glob | ||
value: "AWSControlTower*" | ||
EC2VPCEndpoint: | ||
- type: "contains" | ||
value: "aws-controltower" | ||
EC2VPC: | ||
- type: "contains" | ||
value: "aws-controltower" | ||
OpsWorksUserProfile: | ||
- type: "contains" | ||
value: "AWSControlTowerExecution" | ||
CloudWatchLogsLogGroup: | ||
- type: "contains" | ||
value: "aws-controltower" | ||
- type: "contains" | ||
value: "AWSControlTowerBP" | ||
CloudWatchEventsTarget: | ||
- type: "contains" | ||
value: "aws-controltower" | ||
- type: "glob" | ||
value: "Rule: AWSControlTower*" | ||
SNSSubscription: | ||
- type: "contains" | ||
value: "aws-controltower" | ||
SNSTopic: | ||
- type: "contains" | ||
value: "aws-controltower" | ||
EC2Subnet: | ||
- type: "contains" | ||
value: "aws-controltower" | ||
ConfigServiceDeliveryChannel: | ||
- type: "contains" | ||
value: "aws-controltower" | ||
ConfigServiceConfigurationRecorder: | ||
- type: "contains" | ||
value: "aws-controltower" | ||
CloudFormationStack: | ||
- type: "contains" | ||
value: "AWSControlTower" | ||
EC2RouteTable: | ||
- type: "contains" | ||
value: "aws-controltower" | ||
LambdaFunction: | ||
- type: "contains" | ||
value: "aws-controltower" | ||
EC2DHCPOption: | ||
- type: "contains" | ||
value: "aws-controltower" | ||
IAMRole: | ||
- type: "contains" | ||
value: "aws-controltower" | ||
- type: "contains" | ||
value: "AWSControlTower" | ||
IAMRolePolicyAttachment: | ||
- type: "contains" | ||
value: "aws-controltower" | ||
- type: "contains" | ||
value: "AWSControlTower" | ||
IAMRolePolicy: | ||
- type: "contains" | ||
value: "aws-controltower" | ||
- type: glob | ||
value: "AWSReservedSSO_*" | ||
``` |
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,36 @@ | ||
# EC2 Image | ||
|
||
This will remove all EC2 Images (AMI) in an AWS account. | ||
|
||
## Resource | ||
|
||
```text | ||
EC2Image | ||
``` | ||
|
||
## Settings | ||
|
||
- `IncludeDisabled` | ||
- `IncludeDeprecated` | ||
- `DisableDeregistrationProtection` | ||
|
||
### IncludeDisabled | ||
|
||
This will include any EC2 Images (AMI) that are disabled in the deletion process. By default, disabled images are excluded | ||
from the discovery process. | ||
|
||
Default is `false`. | ||
|
||
### IncludeDeprecated | ||
|
||
This will include any EC2 Images (AMI) that are deprecated in the deletion process. By default, deprecated images are excluded | ||
from the discovery process. | ||
|
||
Default is `false`. | ||
|
||
### DisableDeregistrationProtection | ||
|
||
This will disable the deregistration protection on the EC2 Image (AMI) prior to deletion. By default, deregistration protection | ||
is not disabled. | ||
|
||
Default is `false`. |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
# Resources Overview | ||
|
||
This is the start of the documentation for all resources handled by aws-nuke. Eventually each resource will have its own | ||
page with detailed information on how to use it, what settings are available, and what the resource does. | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
# S3Object | ||
|
||
!!! warning | ||
**You should exclude this resource by default.** Not doing so can lead to deadlocks and hung runs of the tool. In | ||
the next major version of aws-nuke, this resource will be excluded by default. | ||
|
||
!!! important | ||
This resource is **NOT** required to remove a [S3Bucket](./s3-bucket.md). The `S3Bucket` resource will remove all | ||
objects in the bucket as part of the deletion process using a batch removal process. | ||
|
||
This removes all objects from S3 buckets in an AWS account while retaining the S3 bucket itself. This resource is | ||
useful if you want to remove a single object from a bucket, or a subset of objects without removing the entire bucket. | ||
|
||
## Resource | ||
|
||
```text | ||
S3Object | ||
``` | ||
|
||
## Settings | ||
|
||
**No settings available.** |
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
Oops, something went wrong.