Skip to content

Commit 667f165

Browse files
docs(gcp): update setup instructions
1 parent 2ad7826 commit 667f165

File tree

2 files changed

+14
-12
lines changed

2 files changed

+14
-12
lines changed

gcp/examples/cross_project/README.md

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -78,19 +78,19 @@ Use this **advanced** deployment model when:
7878
terraform init
7979
```
8080

81-
1. **Review the deployment plan**:
81+
1. **Review the deployment plan**. You will need to:
82+
- Set the project ID where the scanner will be deployed
83+
- Set your Datadog [API key](https://docs.datadoghq.com/account_management/api-app-keys/)
84+
- Set your Datadog site
85+
8286
```sh
8387
terraform plan \
8488
-var="scanner_project_id=my-scanner-project" \
8589
-var="datadog_api_key=$DD_API_KEY" \
8690
-var="datadog_site=datadoghq.com"
8791
```
8892

89-
1. **Deploy the scanner infrastructure**. You will need to:
90-
- Set your scanner project ID
91-
- Set your Datadog [API key](https://docs.datadoghq.com/account_management/api-app-keys/)
92-
- Set your Datadog site
93-
93+
1. **Deploy the scanner infrastructure**:
9494
```sh
9595
terraform apply \
9696
-var="scanner_project_id=my-scanner-project" \
@@ -107,6 +107,7 @@ Use this **advanced** deployment model when:
107107
### Step 2: Set up Other Projects for Scanning
108108

109109
1. Go to the `other_project` folder.
110+
1. Configure your other gcp project `gcloud config set project my-other-project`.
110111
1. Run `terraform init`.
111112
1. Run `terraform plan` to review the changes.
112113
1. Run `terraform apply` to deploy.
@@ -116,6 +117,7 @@ Use this **advanced** deployment model when:
116117
Example:
117118
```sh
118119
cd ../other_project
120+
gcloud config set project my-other-project
119121
terraform init
120122
terraform plan \
121123
-var="scanned_project_id=my-other-project" \

gcp/examples/single_region/README.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -35,19 +35,19 @@ To deploy a Datadog agentless scanner:
3535
terraform init
3636
```
3737

38-
1. **Review the deployment plan**:
38+
1. **Review the deployment plan**. You will need to:
39+
- Set your GCP project ID
40+
- Set your Datadog [API key](https://docs.datadoghq.com/account_management/api-app-keys/)
41+
- Set your Datadog site
42+
3943
```sh
4044
terraform plan \
4145
-var="project_id=my-gcp-project" \
4246
-var="datadog_api_key=$DD_API_KEY" \
4347
-var="datadog_site=datadoghq.com"
4448
```
4549

46-
1. **Deploy the scanner**. You will need to:
47-
- Set your GCP project ID
48-
- Set your Datadog [API key](https://docs.datadoghq.com/account_management/api-app-keys/)
49-
- Set your Datadog site
50-
50+
1. **Deploy the scanner**:
5151
```sh
5252
terraform apply \
5353
-var="project_id=my-gcp-project" \

0 commit comments

Comments
 (0)