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
This will run a local webserver at http://127.0.0.1:8000/
92
+
View the network map from that link, or view the report at http://127.0.0.1:8000/account-data/report.html
89
93
90
94
91
95
# Setup
@@ -95,20 +99,8 @@ This will run a local webserver at http://127.0.0.1:8000/
95
99
96
100
## 1. Configure your account
97
101
98
-
### Option 1: Edit config file manually
99
102
Copy the `config.json.demo` to `config.json` and edit it to include your account ID and name (ex. "prod"), along with any external CIDR names. A CIDR is an IP range such as `1.2.3.4/32` which means only the IP `1.2.3.4`.
100
103
101
-
### Option 2: Generate config file
102
-
CloudMapper has commands to configure your account:
103
-
104
-
```
105
-
python cloudmapper.py configure {add-account|remove-account} --config-file CONFIG_FILE --name NAME --id ID [--default DEFAULT]
106
-
python cloudmapper.py configure {add-cidr|remove-cidr} --config-file CONFIG_FILE --cidr CIDR --name NAME
107
-
```
108
-
109
-
This will allow you to define the different AWS accounts you use in your environment and the known CIDR IPs.
110
-
111
-
112
104
## 2. Collect data about the account
113
105
114
106
This step uses the CLI to make `describe` and `list` calls and records the json in the folder specified by the account name under `account-data`.
@@ -130,6 +122,36 @@ Collecting the data is done as follows:
From here, try running the different commands, such as:
127
+
128
+
```
129
+
python cloudmapper.py report --account my_account
130
+
python cloudmapper.py webserver
131
+
```
132
+
133
+
Then view the report in your browser at 127.0.0.1:8000/account-data/report.html
134
+
135
+
136
+
137
+
## Further configuration
138
+
139
+
### Generating a config file
140
+
Instead of modifying `config.json` directly, there is a command to configure the data there, in case that is needed:
141
+
142
+
```
143
+
python cloudmapper.py configure {add-account|remove-account} --config-file CONFIG_FILE --name NAME --id ID [--default DEFAULT]
144
+
python cloudmapper.py configure {add-cidr|remove-cidr} --config-file CONFIG_FILE --cidr CIDR --name NAME
145
+
```
146
+
147
+
This will allow you to define the different AWS accounts you use in your environment and the known CIDR IPs.
148
+
149
+
150
+
### Using audit config overrides
151
+
You may find that you don't care about some of audit items. You may want to ignore the check entirely, or just specific resources. Copy `config/audit_config_override.yaml.example` to `config/audit_config_override.yaml` and edit the file based on the comments in there.
152
+
153
+
154
+
133
155
### Alternatives
134
156
For network diagrams, you may want to try https://github.com/lyft/cartography or https://github.com/anaynayak/aws-security-viz
0 commit comments