You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[aws-nuke](https://github.com/ekristen/aws-nuke) is an open-source tool that deletes non-default resources in a provided AWS account. It's implemented here in this directory using Cloud Development Kit (CDK) code that deploys the [official aws-nuke image](https://github.com/ekristen/aws-nuke/pkgs/container/aws-nuke) to an AWS Lambda function.
5
-
6
-
## ⚠ Important
7
-
This is a very destructive tool! It should not be deployed without fully understanding the impact it will have on your AWS accounts.
8
-
Please use caution and configure this tool to delete unused resources only in your lower test/sandbox environment accounts.
9
-
10
-
## Overview
11
-
12
-
This CDK stack is defined in [account_nuker.ts](account_nuker.ts). It includes:
13
-
- A Docker-based Lambda function with ARM64 architecture and 1GB memory
14
-
- An IAM role with administrative permissions for the Lambda's nuking function
15
-
- An EventBridge rule that triggers the function every Sunday at midnight
16
-
17
-
More specifically, this Lambda function is built from a [Dockerfile](Dockerfile) and runs with a 15-minute timeout. It contains a [nuke_generic_config.yml](nuke_generic_config.yaml) config and executes a [run.sh](run.sh) when invoked every Sunday at midnight UTC.
18
-
19
-

20
-
21
-
## Prerequisites
22
-
1.**Non-Prod AWS Account Alias**: A non-prod account alias must exist in target account. Set the alias by running `python create_account_alias.py weathertop-test` or following [these instructions](https://docs.aws.amazon.com/IAM/latest/UserGuide/account-alias-create.html).
23
-
24
-
## Setup and Installation
25
-
For multi-account deployments, please use the [deploy.py](../../../DEPLOYMENT.md#option-1-using-deploypy) script.
26
-
27
-
For single-account deployment, you can just run:
28
-
```sh
29
-
cdk bootstrap && cdk deploy
30
-
```
31
-
32
-
Note a successful stack creation, e.g.:
33
-
34
-
```bash
35
-
NukeStack: success: Published 956fbd116734e79edb987e767fe7f45d0b97e2123456789109103f80ba4c1:123456789101-us-east-1
[aws-nuke](https://github.com/ekristen/aws-nuke) is an open-source tool that deletes non-default resources in a provided AWS account. It's implemented here in this directory using Cloud Development Kit (CDK) code that deploys the [official aws-nuke image](https://github.com/ekristen/aws-nuke/pkgs/container/aws-nuke) to an AWS Lambda function.
4
+
5
+
## ⚠ Important
6
+
7
+
This is a very destructive tool! It should not be deployed without fully understanding the impact it will have on your AWS accounts.
8
+
Please use caution and configure this tool to delete unused resources only in your lower test/sandbox environment accounts.
9
+
10
+
## Overview
11
+
12
+
This CDK stack is defined in [account_nuker.ts](account_nuker.ts). It includes:
13
+
14
+
- A Docker-based Lambda function with ARM64 architecture and 1GB memory
15
+
- An IAM role with administrative permissions for the Lambda's nuking function
16
+
- An EventBridge rule that triggers the function every Sunday at midnight
17
+
18
+
More specifically, this Lambda function is built from a [Dockerfile](Dockerfile) and runs with a 15-minute timeout. It contains a [nuke_generic_config.yml](nuke_generic_config.yaml) config and executes a [run.sh](run.sh) when invoked every Sunday at midnight UTC.
19
+
20
+

21
+
22
+
## Prerequisites
23
+
24
+
1.**Non-Prod AWS Account Alias**: A non-prod account alias must exist in target account. Set the alias by running `python create_account_alias.py weathertop-test` or following [these instructions](https://docs.aws.amazon.com/IAM/latest/UserGuide/account-alias-create.html).
25
+
26
+
## Setup and Installation
27
+
28
+
For multi-account deployments, please use the [deploy.py](../../../DEPLOYMENT.md#option-1-using-deploypy) script.
29
+
30
+
For single-account deployment, you can just run:
31
+
32
+
```sh
33
+
cdk bootstrap && cdk deploy
34
+
```
35
+
36
+
Note a successful stack creation, e.g.:
37
+
38
+
```bash
39
+
NukeStack: success: Published 956fbd116734e79edb987e767fe7f45d0b97e2123456789109103f80ba4c1:123456789101-us-east-1
0 commit comments