Skip to content

Commit fad517c

Browse files
ekristencorybekk
authored andcommitted
docs: improving resource documentation
1 parent 5439fa2 commit fad517c

File tree

6 files changed

+78
-0
lines changed

6 files changed

+78
-0
lines changed

docs/resources/ec2-image.md

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
# EC2 Image
2+
3+
This will remove all IAM Roles an AWS account.
4+
5+
## Resource
6+
7+
```text
8+
EC2Image
9+
```
10+
11+
## Settings
12+
13+
- `IncludeDisabled`
14+
- `IncludeDeprecated`
15+
- `DisableDeregistrationProtection`
16+
17+
### IncludeDisabled
18+
19+
This will include any EC2 Images (AMI) that are disabled in the deletion process. By default, disabled images are excluded
20+
from the discovery process.
21+
22+
Default is `false`.
23+
24+
### IncludeDeprecated
25+
26+
This will include any EC2 Images (AMI) that are deprecated in the deletion process. By default, deprecated images are excluded
27+
from the discovery process.
28+
29+
Default is `false`.
30+
31+
### DisableDeregistrationProtection
32+
33+
This will disable the deregistration protection on the EC2 Image (AMI) prior to deletion. By default, deregistration protection
34+
is not disabled.
35+
36+
Default is `false`.

docs/resources/iam-role.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,12 @@
22

33
This will remove all IAM Roles an AWS account.
44

5+
## Resource
6+
7+
```text
8+
IAMRole
9+
```
10+
511
## Settings
612

713
- `IncludeServiceLinkedRoles`

docs/resources/overview.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# Resources Overview
2+
3+
This is the start of the documentation for all resources handled by aws-nuke. Eventually each resource will have its own
4+
page with detailed information on how to use it, what settings are available, and what the resource does.
5+

docs/resources/s3-bucket.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,12 @@ This will remove all S3 buckets from an AWS account. The following actions are p
1313
- This will include bypassing any Object Lock governance retention settings if the `BypassGovernanceRetention`
1414
setting is set to `true`
1515

16+
## Resource
17+
18+
```text
19+
S3Bucket
20+
```
21+
1622
## Settings
1723

1824
- `BypassGovernanceRetention`

docs/resources/s3-object.md

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
# S3Object
2+
3+
!!! warning
4+
**You should exclude this resource by default.** Not doing so can lead to deadlocks and hung runs of the tool. In
5+
the next major version of aws-nuke, this resource will be excluded by default.
6+
7+
!!! important
8+
This resource is **NOT** required to remove a [S3Bucket](./s3-bucket.md). The `S3Bucket` resource will remove all
9+
objects in the bucket as part of the deletion process using a batch removal process.
10+
11+
This removes all objects from S3 buckets in an AWS account while retaining the S3 bucket itself. This resource is
12+
useful if you want to remove a single object from a bucket, or a subset of objects without removing the entire bucket.
13+
14+
## Resource
15+
16+
```text
17+
S3Object
18+
```
19+
20+
## Settings
21+
22+
**No settings available.**

mkdocs.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,9 +92,12 @@ nav:
9292
- Custom Endpoints: config-custom-endpoints.md
9393
- Migration Guide: config-migration.md
9494
- Resources:
95+
- Overview: resources/overview.md
9596
- Cognito User Pool: resources/cognito-user-pool.md
97+
- EC2 Image: resources/ec2-image.md
9698
- IAM Role: resources/iam-role.md
9799
- S3 Bucket: resources/s3-bucket.md
100+
- S3 Object: resources/s3-object.md
98101
- Development:
99102
- Overview: development.md
100103
- Contributing: contributing.md

0 commit comments

Comments
 (0)