[ 
https://issues.apache.org/jira/browse/BEAM-13841?focusedWorklogId=736002&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-736002
 ]

ASF GitHub Bot logged work on BEAM-13841:
-----------------------------------------

                Author: ASF GitHub Bot
            Created on: 03/Mar/22 14:26
            Start Date: 03/Mar/22 14:26
    Worklog Time Spent: 10m 
      Work Description: ilya-kozyrev commented on pull request #16822:
URL: https://github.com/apache/beam/pull/16822#issuecomment-1058094873


   
   
https://user-images.githubusercontent.com/58932578/156583447-674419b0-0003-4860-a891-15af1a761cec.mp4
   
   Hi @damondouglas please see this short demo with deploy Playground to the 
new GCP project.
   
   commands from the video: 
   ```
   1)login to GCP
     
     gcloud auth login  or  gcloud auth application-default login
     
   2)create a project 
      
     round-sunset-342906
     
   3)add state cloud bucket
       $ gsutil mb -p round-sunset-342906 gs://state-bucket-name-sunset
       $ gsutil versioning set on gs://state-bucket-name-sunset
       
   4) supply config for cloud
     create dir  test (equals environment) 
.../beam/playground/terraform/environment/test
     in this directory create config file
     
      a)state.tfbackend
          bucket  = "state-bucket-name-sunset"
      b)terraform.tfvars  (cpu and memo constrain demo mode)
       state_bucket = "state-bucket-name-sunset"
       bucket_examples_name = "playground-precompiled-sunset"
       project_id   = "round-sunset-342906"
       router_cpu = 2
       router_memory = 4
       router_max_instance = 1
       java_cpu = 2
       java_memory = 4
       java_max_instance = 1
       python_cpu = 2
       python_memory = 4
       python_max_instance = 1
       go_cpu = 1
       go_memory = 4
       go_max_instance = 1
       scio_cpu = 2
       scio_memory = 4
       scio_max_instance = 1
       network_name = "playground-sunset"    
     
   5) init terraform
    ./gradlew playground:terraform:terraformInit -Pproject_environment="test" 
   6) deploy infrastructure
    ./gradlew playground:terraform:InitInfrastructure 
-Pproject_environment="test"
   7) clean old build (optional)
     ./gradlew clean
   8) if not connected to the docker repository
       
       gcloud auth configure-docker us-central1-docker.pkg.dev 
       
   9) deploy backend services (java, scio, go, python, router)
    ./gradlew playground:terraform:deployBackend -Pproject_environment="test" 
-Pdocker-tag="test"
    
   10) deploy frontend service
    ./gradlew playground:terraform:deployFrontend -Pproject_environment="test" 
-Pdocker-tag="test"
   ```


-- 
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]


Issue Time Tracking
-------------------

    Worklog Id:     (was: 736002)
    Time Spent: 10h 40m  (was: 10.5h)

> [Playground] Union application terraform modules to common submodule
> --------------------------------------------------------------------
>
>                 Key: BEAM-13841
>                 URL: https://issues.apache.org/jira/browse/BEAM-13841
>             Project: Beam
>          Issue Type: Improvement
>          Components: beam-playground
>            Reporter: Ilya Kozyrev
>            Assignee: Andrey Kustov
>            Priority: P2
>              Labels: beam-playground-devops, beam-playground-sprint-8
>          Time Spent: 10h 40m
>  Remaining Estimate: 0h
>
> Currently, all applications services for different SDK and router is 
> independent terraform modules, to deploy all of them requires applying 
> resources from different folders. 
> Goal - make all application deployment a common sub-module.



--
This message was sent by Atlassian Jira
(v8.20.1#820001)

Reply via email to