@@ -78,6 +78,14 @@ Use this **advanced** deployment model when:
7878 terraform init
7979 ```
8080
81+ 1 . ** Review the deployment plan** :
82+ ``` sh
83+ terraform plan \
84+ -var=" scanner_project_id=my-scanner-project" \
85+ -var=" datadog_api_key=$DD_API_KEY " \
86+ -var=" datadog_site=datadoghq.com"
87+ ```
88+
81891 . ** Deploy the scanner infrastructure** . You will need to:
8290 - Set your scanner project ID
8391 - Set your Datadog [ API key] ( https://docs.datadoghq.com/account_management/api-app-keys/ )
@@ -100,14 +108,19 @@ Use this **advanced** deployment model when:
100108
1011091 . Go to the ` other_project ` folder.
1021101 . Run ` terraform init ` .
103- 1 . Run ` terraform apply ` .
111+ 1 . Run ` terraform plan ` to review the changes.
112+ 1 . Run ` terraform apply ` to deploy.
1041131 . Set the project ID to be scanned.
1051141 . Set both scanner service account emails from Step 1.
106115
107116Example:
108117``` sh
109118cd ../other_project
110119terraform init
120+ terraform plan \
121+ -var=" scanned_project_id=my-other-project" \
122+ -var=" scanner_service_account_email_us=$SCANNER_SA_US " \
123+ -var=" scanner_service_account_email_eu=$SCANNER_SA_EU "
111124terraform apply \
112125 -var=" scanned_project_id=my-other-project" \
113126 -var=" scanner_service_account_email_us=$SCANNER_SA_US " \
@@ -153,7 +166,7 @@ Repeat Step 2 for each additional project you want to scan.
153166
154167You have two options for providing the Datadog API key:
155168
156- 1 . ** Pass the API key directly** (shown in examples below ):
169+ 1 . ** Pass the API key directly** (shown in examples above ):
157170 ``` bash
158171 -var=" datadog_api_key=$DD_API_KEY "
159172 ```
0 commit comments