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
Description: Creates a new role to allow an administrator account to enable and manage Detective.
3
11
@@ -7,6 +15,10 @@ Parameters:
7
15
Description: AWS Account Id of the administrator account (the account in which will recieve Detective findings from member accounts).
8
16
MaxLength: 12
9
17
MinLength: 12
18
+
RoleName:
19
+
Type: String
20
+
Default: "ManageDetective"
21
+
Description: RoleName to create IAM Role in the administrator account and each member account.
10
22
CreateInstanceRole:
11
23
Type: String
12
24
Description: Select Yes to create an EC2 instance role that can be attached to an instnace in the Master account which will allow the instance to assume the exection role. Select No if you plan to run the script locally or are creating the stack in a member account.
Copy file name to clipboardExpand all lines: README.md
+45-1
Original file line number
Diff line number
Diff line change
@@ -3,7 +3,7 @@
3
3
Amazon Detective provides a set of open-source Python scripts in this repository. The scripts require Python 3.
4
4
5
5
You can use these to perform the following tasks:
6
-
* Enable Detective for an administrator account across Regions. When you enable Detective, you can assign tag values to the behavior graph.
6
+
* Enable Detective for an administrator account across Regions. When you enable Detective, you can assign tag values to assign to a new behavior graph.
7
7
* Add member accounts to an administrator account's behavior graphs across Regions.
8
8
* Optionally send invitation emails to the member accounts. You can also configure the request to not send invitation emails.
9
9
* Remove member accounts from an administrator account's behavior graphs across Regions.
@@ -13,12 +13,56 @@ For more information on how to use these scripts, see [Using the Amazon Detectiv
13
13
14
14
## Contributing to this project
15
15
16
+
### Complete use case
17
+
18
+
The following is an example use case of adding multiple accounts in a graph.
19
+
20
+
1. Create a .csv file of the AWS account ids.
21
+
1. (Please check the format in section: *Creating a .csv list of accounts to add or remove*)
22
+
2. Add the necessary permissions to each account.
23
+
1. (Please check the complete setup in section: *Required permissions for the scripts*)
4. Go to the root module, and run the python script and specify the .csv file. Make sure the role specified by --assume_role is the one created in Step 2.
31
+
```
32
+
#For example:
33
+
cd /my_folder/amazon-detective-multiaccount-scripts/src/amazon_detective_multiaccount_scripts
1. If you experience the following error Message for opt-in regions while enabling detective in all regions:
62
+
63
+
`ERROR - error with region <region>: An error occurred (UnrecognizedClientException) when calling the ListGraphs operation:
64
+
The security token included in the request is invalid`
65
+
66
+
Using the scripts in opt-in regions assumes you have your accounts/resources configured in that region, so please double-check your accounts' configuration.
67
+
68
+
For further information, here is documentation on opt-in regions work: https://docs.aws.amazon.com/general/latest/gr/rande-manage.html.
0 commit comments