Skip to content

Commit 66ead41

Browse files
KMS: update README.md (GoogleCloudPlatform#1776)
updated kms README.md
1 parent fd7e5a3 commit 66ead41

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

kms/README.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,22 @@ cloud services the same way you do on-premise. You can generate, use, rotate and
99
destroy AES-256 encryption keys. These sample Java applications demonstrate
1010
how to access the KMS API using the Google Java API Client Libraries.
1111

12+
## Prerequisites
13+
14+
### Enable the API
15+
16+
You must [enable the Google Cloud KMS API](https://console.cloud.google.com/flows/enableapi?apiid=cloudkms.googleapis.com) for your project in order to use these samples
17+
18+
### Set Environment Variables
19+
20+
You must set your project ID in order to run the tests
21+
22+
`GOOGLE_CLOUD_PROJECT=<your-project-id-here>`
23+
24+
### Grant Permissions
25+
26+
You must ensure that the [user account or service account](https://cloud.google.com/iam/docs/service-accounts#differences_between_a_service_account_and_a_user_account) you used to authorize your gcloud session has the proper permissions to edit KMS resources for your project. More information can be found in the [Google KMS Docs](https://cloud.google.com/kms/docs/reference/permissions-and-roles)
27+
1228
## Quickstart
1329

1430
Install [Maven](http://maven.apache.org/).

0 commit comments

Comments
 (0)