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
Copy file name to clipboardExpand all lines: .tools/test/stacks/nuke/typescript/README.md
+21-12Lines changed: 21 additions & 12 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -11,34 +11,43 @@ Please use caution and configure this tool to delete unused resources only in yo
11
11
12
12
## Overview
13
13
14
-
The code in this repository deploys the following architecture to a peovided "Plugin" AWS account:
14
+
Defined in [account_nuker.ts](account_nuker.ts), this CDK stack deploys an AWS Lambda function that runs in a Docker container, scheduled to execute weekly via EventBridge.
15
15
16
-

16
+
It includes:
17
+
- A Docker-based Lambda function with ARM64 architecture and 1GB memory
18
+
- An IAM role with administrative permissions for the Lambda
19
+
- An EventBridge rule that triggers the function every Sunday at midnight
20
+
- Deployment configurations including termination protection
17
21
18
-
## Feature Outline
22
+
The Lambda function is built from a [Dockerfile](Dockerfile) and runs with a 15-minute timeout. It contains [this Nuke configuration](nuke_generic_config.yaml).
2.**Regional Scalability**: Runs AWS CodeBuild projects per region.
22
-
4.**Custom Config**: Pulls resource filters and region targets in [nuke_generic_config.yaml](nuke_generic_config.yaml).
24
+

23
25
24
26
## Prerequisites
25
-
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 demo` or following [these instructions](https://docs.aws.amazon.com/IAM/latest/UserGuide/account-alias-create.html).
27
+
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).
26
28
27
29
## Setup and Installation
28
-
* Deploy the stack using the below command. You can run it in any desired region.
30
+
For multi-account deployments, please use the [deploy.py](../../../DEPLOYMENT.md#option-1-using-deploypy) script.
31
+
32
+
For single-account deployment, you can just run:
29
33
```sh
30
34
cdk bootstrap && cdk deploy
31
35
```
32
36
33
37
Note a successful stack creation, e.g.:
34
38
35
39
```bash
40
+
NukeStack: success: Published 956fbd116734e79edb987e767fe7f45d0b97e23b8882e6b1af543843f80ba4c1:616362385685-us-east-1
0 commit comments