Skip to content

Commit e193a6d

Browse files
authored
chore: doc update for issue 543. Adding step needed to run locally. (#554)
1 parent 08b6d28 commit e193a6d

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

5-app-infra/README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -183,6 +183,10 @@ commands. The `-T` flag is needed for Linux, but causes problems for MacOS.
183183
1. Rename `bu1-non-production.auto.example.tfvars` to `bu1-non-production.auto.tfvars` and update the file with values from your environment.
184184
1. Rename `bu1-production.auto.example.tfvars` to `bu1-production.auto.tfvars` and update the file with values from your environment.
185185
1. Provide the user that will be running `./tf-wrapper.sh` the Service Account Token Creator role to the bu1 project service accounts
186+
1. Provide the user permissions to run the terraform locally with the `serviceAccountTokenCreator` permission.
187+
```
188+
gcloud iam service-accounts add-iam-policy-binding $PROJECT_SERVICE_ACCOUNT --project $PROJECT --member="user:$(gcloud auth list --format="value(account)")" --role="roles/iam.serviceAccountTokenCreator"
189+
```
186190
3. Update `backend.tf` with your bucket from the infra pipeline example.
187191
```
188192
for i in `find -name 'backend.tf'`; do sed -i 's/UPDATE_ME/<YOUR-BUCKET-NAME>/' $i; done

0 commit comments

Comments
 (0)