MakarkinSAkvelon commented on code in PR #23208:
URL: https://github.com/apache/beam/pull/23208#discussion_r989102363


##########
playground/terraform/README.md:
##########
@@ -17,73 +17,89 @@
     under the License.
 -->
 
-# Requirements
-
-The following items need to be setup for the Playground cluster deployment on 
GCP:
-
-* [GCP account](https://cloud.google.com/)
-* [`gcloud` command-line tool](https://cloud.google.com/sdk/gcloud) and 
required setup i.e. login
-* [Terraform](https://www.terraform.io/downloads.html) tool
-* [Docker](https://www.docker.com/get-started)
-
-# Deployment steps
-
-## 0. Create GCS bucket for state
-
-```bash
-$ gsutil mb -p ${PROJECT_ID} gs://state-bucket-name
-$ gsutil versioning set on gs://state-bucket-name
+# Prerequisit:
+
+* GCP project should be created
+* Bucket should be created
+* Service account with the following roles should be created:
+   - App Engine Admin
+   - App Engine Creator
+   - Artifact Registry Administrator
+   - Cloud Memorystore Redis Admin
+   - Compute Admin
+   - Create Service Accounts
+   - Kubernetes Engine Admin
+   - Quota Administrator
+   - Role Administrator
+   - Security Admin
+   - Service Account User
+   - Storage Admin
+   - Cloud Datastore Index Admin
+* Following APIs should be enabled:
+   - Identity and Access Management (IAM)
+   - Compute Engine API
+   - App Engine Admin API
+   - Cloud Resource Manager API
+
+* Make necessary changes in 
`playground/terraform/environment/beta/terraform.tfvars` file:
 ```
-
-## 1. Create new environment
-
-To provide information about the terraform backend, run the following commands
-
-* New environment folder
-
-```bash
-mkdir /path/to/beam/playground/terraform/environment/{env-name}
+network_name         = "network_name"        #Choose network name
+project_id           = "project_id"          #Input project ID
+gke_name             = "playground-backend"  #Define GKE name
+region               = "us-east1"            #Choose region
+pg_location          = "us-east1-b"          #Choose location (should be in 
the region)
+state_bucket         = "bucket_name"         #Input bucket name
+bucket_examples_name = "bucket_name-example" #Input example bucket name
 ```
-
-* Backend config
-
-```bash
-echo 'bucket = "put your state bucket name here"' > 
/path/to/beam/playground/terraform/environment/{env-name}/state.tfbackend
+* Make necessary changes in 
`playground/terraform/environment/beta/state.tfbackend` file:
 ```
-
-* Terraform variables config and provide necessary variables
-
-```bash
-touch 
/path/to/beam/playground/terraform/environment/{env-name}/terraform.tfvars
+bucket               = "bucket_name"         #input bucket name (will be used 
for tfstate file)
 ```
-
-Then provide necessary variables.
-
-## 2. Provision infrastructure
-
-To deploy Playground infrastructure run gradle task:
-
-```bash
-./gradlew playground:terraform:InitInfrastructure 
-Pproject_environment="env-name"
+* Export GOOGLE_APPLICATION_CREDENTIALS using following command:
 ```
-
-## 3. Deploy application
-
-To deploy application run following steps:
-
-* Authinticate in Artifact registry
-
-```bash
-gcloud auth configure-docker us-central1-docker.pkg.dev
+    export GOOGLE_APPLICATION_CREDENTIALS=`your json key locaton`

Review Comment:
   path could be "any" - absolute or relative
   Link to "How to create an account"? 



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to