You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@beam.apache.org by GitBox <gi...@apache.org> on 2022/01/18 17:13:49 UTC
[GitHub] [beam] andreykus opened a new pull request #16549: [BEAM-13681][Playground] Refactoring terraform scripts
andreykus opened a new pull request #16549:
URL: https://github.com/apache/beam/pull/16549
Come up with the following terraform structure:
1. Distinguish modules (vpc, artifact_registry , memorystore (redis), bucket, Kubernet)\
2. Implement the description of the modules as a script
3. Introduce module dependencies (vpc -> buckets -> artifact_registry -> memorystore -> gke)
------------------------
Thank you for your contribution! Follow this checklist to help us incorporate your contribution quickly and easily:
- [ ] [**Choose reviewer(s)**](https://beam.apache.org/contribute/#make-your-change) and mention them in a comment (`R: @username`).
- [ ] Format the pull request title like `[BEAM-XXX] Fixes bug in ApproximateQuantiles`, where you replace `BEAM-XXX` with the appropriate JIRA issue, if applicable. This will automatically link the pull request to the issue.
- [ ] Update `CHANGES.md` with noteworthy changes.
- [ ] If this contribution is large, please file an Apache [Individual Contributor License Agreement](https://www.apache.org/licenses/icla.pdf).
See the [Contributor Guide](https://beam.apache.org/contribute) for more tips on [how to make review process smoother](https://beam.apache.org/contribute/#make-reviewers-job-easier).
`ValidatesRunner` compliance status (on master branch)
--------------------------------------------------------
<table>
<thead>
<tr>
<th>Lang</th>
<th>ULR</th>
<th>Dataflow</th>
<th>Flink</th>
<th>Samza</th>
<th>Spark</th>
<th>Twister2</th>
</tr>
</thead>
<tbody>
<tr>
<td>Go</td>
<td>---</td>
<td>
<a href="https://ci-beam.apache.org/job/beam_PostCommit_Go/lastCompletedBuild/">
<img alt="Build Status" src="https://ci-beam.apache.org/job/beam_PostCommit_Go/lastCompletedBuild/badge/icon">
</a>
<td>
<a href="https://ci-beam.apache.org/job/beam_PostCommit_Go_VR_Flink/lastCompletedBuild/">
<img alt="Build Status" src="https://ci-beam.apache.org/job/beam_PostCommit_Go_VR_Flink/lastCompletedBuild/badge/icon">
</a>
</td>
<td>
<a href="https://ci-beam.apache.org/job/beam_PostCommit_Go_VR_Samza/lastCompletedBuild/">
<img alt="Build Status" src="https://ci-beam.apache.org/job/beam_PostCommit_Go_VR_Samza/lastCompletedBuild/badge/icon">
</a>
</td>
<td>
<a href="https://ci-beam.apache.org/job/beam_PostCommit_Go_VR_Spark/lastCompletedBuild/">
<img alt="Build Status" src="https://ci-beam.apache.org/job/beam_PostCommit_Go_VR_Spark/lastCompletedBuild/badge/icon">
</a>
</td>
<td>---</td>
</tr>
<tr>
<td>Java</td>
<td>
<a href="https://ci-beam.apache.org/job/beam_PostCommit_Java_ValidatesRunner_ULR/lastCompletedBuild/">
<img alt="Build Status" src="https://ci-beam.apache.org/job/beam_PostCommit_Java_ValidatesRunner_ULR/lastCompletedBuild/badge/icon">
</a>
</td>
<td>
<a href="https://ci-beam.apache.org/job/beam_PostCommit_Java_ValidatesRunner_Dataflow/lastCompletedBuild/">
<img alt="Build Status" src="https://ci-beam.apache.org/job/beam_PostCommit_Java_ValidatesRunner_Dataflow/lastCompletedBuild/badge/icon?subject=V1">
</a><br>
<a href="https://ci-beam.apache.org/job/beam_PostCommit_Java_ValidatesRunner_Dataflow_Streaming/lastCompletedBuild/">
<img alt="Build Status" src="https://ci-beam.apache.org/job/beam_PostCommit_Java_ValidatesRunner_Dataflow_Streaming/lastCompletedBuild/badge/icon?subject=V1+Streaming">
</a><br>
<a href="https://ci-beam.apache.org/job/beam_PostCommit_Java_ValidatesRunner_Dataflow_Java11/lastCompletedBuild/">
<img alt="Build Status" src="https://ci-beam.apache.org/job/beam_PostCommit_Java_ValidatesRunner_Dataflow_Java11/lastCompletedBuild/badge/icon?subject=V1+Java+11">
</a><br>
<a href="https://ci-beam.apache.org/job/beam_PostCommit_Java_VR_Dataflow_V2/lastCompletedBuild/">
<img alt="Build Status" src="https://ci-beam.apache.org/job/beam_PostCommit_Java_VR_Dataflow_V2/lastCompletedBuild/badge/icon?subject=V2">
</a><br>
<a href="https://ci-beam.apache.org/job/beam_PostCommit_Java_VR_Dataflow_V2_Streaming/lastCompletedBuild/">
<img alt="Build Status" src="https://ci-beam.apache.org/job/beam_PostCommit_Java_VR_Dataflow_V2_Streaming/lastCompletedBuild/badge/icon?subject=V2+Streaming">
</a><br>
</td>
<td>
<a href="https://ci-beam.apache.org/job/beam_PostCommit_Java_ValidatesRunner_Flink/lastCompletedBuild/">
<img alt="Build Status" src="https://ci-beam.apache.org/job/beam_PostCommit_Java_ValidatesRunner_Flink/lastCompletedBuild/badge/icon?subject=Java+8">
</a><br>
<a href="https://ci-beam.apache.org/job/beam_PostCommit_Java_ValidatesRunner_Flink_Java11/lastCompletedBuild/">
<img alt="Build Status" src="https://ci-beam.apache.org/job/beam_PostCommit_Java_ValidatesRunner_Flink_Java11/lastCompletedBuild/badge/icon?subject=Java+11">
</a><br>
<a href="https://ci-beam.apache.org/job/beam_PostCommit_Java_PVR_Flink_Batch/lastCompletedBuild/">
<img alt="Build Status" src="https://ci-beam.apache.org/job/beam_PostCommit_Java_PVR_Flink_Batch/lastCompletedBuild/badge/icon?subject=Portable">
</a><br>
<a href="https://ci-beam.apache.org/job/beam_PostCommit_Java_PVR_Flink_Streaming/lastCompletedBuild/">
<img alt="Build Status" src="https://ci-beam.apache.org/job/beam_PostCommit_Java_PVR_Flink_Streaming/lastCompletedBuild/badge/icon?subject=Portable+Streaming">
</a>
</td>
<td>
<a href="https://ci-beam.apache.org/job/beam_PostCommit_Java_ValidatesRunner_Samza/lastCompletedBuild/">
<img alt="Build Status" src="https://ci-beam.apache.org/job/beam_PostCommit_Java_ValidatesRunner_Samza/lastCompletedBuild/badge/icon">
</a><br>
<a href="https://ci-beam.apache.org/job/beam_PostCommit_Java_PVR_Samza/lastCompletedBuild/">
<img alt="Build Status" src="https://ci-beam.apache.org/job/beam_PostCommit_Java_PVR_Samza/lastCompletedBuild/badge/icon?subject=Portable">
</a>
</td>
<td>
<a href="https://ci-beam.apache.org/job/beam_PostCommit_Java_ValidatesRunner_Spark/lastCompletedBuild/">
<img alt="Build Status" src="https://ci-beam.apache.org/job/beam_PostCommit_Java_ValidatesRunner_Spark/lastCompletedBuild/badge/icon">
</a><br>
<a href="https://ci-beam.apache.org/job/beam_PostCommit_Java_PVR_Spark_Batch/lastCompletedBuild/">
<img alt="Build Status" src="https://ci-beam.apache.org/job/beam_PostCommit_Java_PVR_Spark_Batch/lastCompletedBuild/badge/icon?subject=Portable">
</a><br>
<a href="https://ci-beam.apache.org/job/beam_PostCommit_Java_ValidatesRunner_SparkStructuredStreaming/lastCompletedBuild/">
<img alt="Build Status" src="https://ci-beam.apache.org/job/beam_PostCommit_Java_ValidatesRunner_SparkStructuredStreaming/lastCompletedBuild/badge/icon?subject=Structured+Streaming">
</a>
</td>
<td>
<a href="https://ci-beam.apache.org/job/beam_PostCommit_Java_ValidatesRunner_Twister2/lastCompletedBuild/">
<img alt="Build Status" src="https://ci-beam.apache.org/job/beam_PostCommit_Java_ValidatesRunner_Twister2/lastCompletedBuild/badge/icon">
</a>
</td>
</tr>
<tr>
<td>Python</td>
<td>---</td>
<td>
<a href="https://ci-beam.apache.org/job/beam_PostCommit_Py_VR_Dataflow/lastCompletedBuild/">
<img alt="Build Status" src="https://ci-beam.apache.org/job/beam_PostCommit_Py_VR_Dataflow/lastCompletedBuild/badge/icon?subject=V1">
</a><br>
<a href="https://ci-beam.apache.org/job/beam_PostCommit_Py_VR_Dataflow_V2/lastCompletedBuild/">
<img alt="Build Status" src="https://ci-beam.apache.org/job/beam_PostCommit_Py_VR_Dataflow_V2/lastCompletedBuild/badge/icon?subject=V2">
</a><br>
<a href="https://ci-beam.apache.org/job/beam_PostCommit_Py_ValCont/lastCompletedBuild/">
<img alt="Build Status" src="https://ci-beam.apache.org/job/beam_PostCommit_Py_ValCont/lastCompletedBuild/badge/icon?subject=ValCont">
</a>
</td>
<td>
<a href="https://ci-beam.apache.org/job/beam_PreCommit_Python_PVR_Flink_Cron/lastCompletedBuild/">
<img alt="Build Status" src="https://ci-beam.apache.org/job/beam_PreCommit_Python_PVR_Flink_Cron/lastCompletedBuild/badge/icon?subject=Portable">
</a><br>
<a href="https://ci-beam.apache.org/job/beam_PostCommit_Python_VR_Flink/lastCompletedBuild/">
<img alt="Build Status" src="https://ci-beam.apache.org/job/beam_PostCommit_Python_VR_Flink/lastCompletedBuild/badge/icon">
</a>
</td>
<td>
<a href="https://ci-beam.apache.org/job/beam_PostCommit_Python_VR_Samza/lastCompletedBuild/">
<img alt="Build Status" src="https://ci-beam.apache.org/job/beam_PostCommit_Python_VR_Samza/lastCompletedBuild/badge/icon">
</a>
</td>
<td>
<a href="https://ci-beam.apache.org/job/beam_PostCommit_Python_VR_Spark/lastCompletedBuild/">
<img alt="Build Status" src="https://ci-beam.apache.org/job/beam_PostCommit_Python_VR_Spark/lastCompletedBuild/badge/icon">
</a>
</td>
<td>---</td>
</tr>
<tr>
<td>XLang</td>
<td>
<a href="https://ci-beam.apache.org/job/beam_PostCommit_XVR_Direct/lastCompletedBuild/">
<img alt="Build Status" src="https://ci-beam.apache.org/job/beam_PostCommit_XVR_Direct/lastCompletedBuild/badge/icon">
</a>
</td>
<td>
<a href="https://ci-beam.apache.org/job/beam_PostCommit_XVR_Dataflow/lastCompletedBuild/">
<img alt="Build Status" src="https://ci-beam.apache.org/job/beam_PostCommit_XVR_Dataflow/lastCompletedBuild/badge/icon">
</a>
</td>
<td>
<a href="https://ci-beam.apache.org/job/beam_PostCommit_XVR_Flink/lastCompletedBuild/">
<img alt="Build Status" src="https://ci-beam.apache.org/job/beam_PostCommit_XVR_Flink/lastCompletedBuild/badge/icon">
</a>
</td>
<td>
<a href="https://ci-beam.apache.org/job/beam_PostCommit_XVR_Samza/lastCompletedBuild/">
<img alt="Build Status" src="https://ci-beam.apache.org/job/beam_PostCommit_XVR_Samza/lastCompletedBuild/badge/icon">
</a>
</td>
<td>
<a href="https://ci-beam.apache.org/job/beam_PostCommit_XVR_Spark/lastCompletedBuild/">
<img alt="Build Status" src="https://ci-beam.apache.org/job/beam_PostCommit_XVR_Spark/lastCompletedBuild/badge/icon">
</a>
</td>
<td>---</td>
</tr>
</tbody>
</table>
Examples testing status on various runners
--------------------------------------------------------
<table>
<thead>
<tr>
<th>Lang</th>
<th>ULR</th>
<th>Dataflow</th>
<th>Flink</th>
<th>Samza</th>
<th>Spark</th>
<th>Twister2</th>
</tr>
</thead>
<tbody>
<tr>
<td>Go</td>
<td>---</td>
<td>---</td>
<td>---</td>
<td>---</td>
<td>---</td>
<td>---</td>
<td>---</td>
</tr>
<tr>
<td>Java</td>
<td>---</td>
<td>
<a href="https://ci-beam.apache.org/job/beam_PreCommit_Java_Examples_Dataflow_Cron/lastCompletedBuild/">
<img alt="Build Status" src="https://ci-beam.apache.org/job/beam_PreCommit_Java_Examples_Dataflow_Cron/lastCompletedBuild/badge/icon?subject=V1">
</a><br>
<a href="https://ci-beam.apache.org/job/beam_PreCommit_Java_Examples_Dataflow_Java11_Cron/lastCompletedBuild/">
<img alt="Build Status" src="https://ci-beam.apache.org/job/beam_PreCommit_Java_Examples_Dataflow_Java11_Cron/lastCompletedBuild/badge/icon?subject=V1+Java11">
</a><br>
<a href="https://ci-beam.apache.org/job/beam_PostCommit_Java_Examples_Dataflow_V2/lastCompletedBuild/">
<img alt="Build Status" src="https://ci-beam.apache.org/job/beam_PostCommit_Java_Examples_Dataflow_V2/lastCompletedBuild/badge/icon?subject=V2">
</a><br>
</td>
<td>---</td>
<td>---</td>
<td>---</td>
<td>---</td>
<td>---</td>
</tr>
<tr>
<td>Python</td>
<td>---</td>
<td>---</td>
<td>---</td>
<td>---</td>
<td>---</td>
<td>---</td>
<td>---</td>
</tr>
<tr>
<td>XLang</td>
<td>---</td>
<td>---</td>
<td>---</td>
<td>---</td>
<td>---</td>
<td>---</td>
<td>---</td>
</tr>
</tbody>
</table>
Post-Commit SDK/Transform Integration Tests Status (on master branch)
------------------------------------------------------------------------------------------------
<table>
<thead>
<tr>
<th>Go</th>
<th>Java</th>
<th>Python</th>
</tr>
</thead>
<tbody>
<tr>
<td>
<a href="https://ci-beam.apache.org/job/beam_PostCommit_Go/lastCompletedBuild/">
<img alt="Build Status" src="https://ci-beam.apache.org/job/beam_PostCommit_Go/lastCompletedBuild/badge/icon">
</a>
</td>
<td>
<a href="https://ci-beam.apache.org/job/beam_PostCommit_Java/lastCompletedBuild/">
<img alt="Build Status" src="https://ci-beam.apache.org/job/beam_PostCommit_Java/lastCompletedBuild/badge/icon">
</a>
</td>
<td>
<a href="https://ci-beam.apache.org/job/beam_PostCommit_Python36/lastCompletedBuild/">
<img alt="Build Status" src="https://ci-beam.apache.org/job/beam_PostCommit_Python36/lastCompletedBuild/badge/icon?subject=3.6">
</a><br>
<a href="https://ci-beam.apache.org/job/beam_PostCommit_Python37/lastCompletedBuild/">
<img alt="Build Status" src="https://ci-beam.apache.org/job/beam_PostCommit_Python37/lastCompletedBuild/badge/icon?subject=3.7">
</a><br>
<a href="https://ci-beam.apache.org/job/beam_PostCommit_Python38/lastCompletedBuild/">
<img alt="Build Status" src="https://ci-beam.apache.org/job/beam_PostCommit_Python38/lastCompletedBuild/badge/icon?subject=3.8">
</a>
</td>
</tr>
</tbody>
</table>
Pre-Commit Tests Status (on master branch)
------------------------------------------------------------------------------------------------
<table>
<thead>
<tr>
<th>---</th>
<th>Java</th>
<th>Python</th>
<th>Go</th>
<th>Website</th>
<th>Whitespace</th>
<th>Typescript</th>
</tr>
</thead>
<tbody>
<tr>
<td>Non-portable</td>
<td>
<a href="https://ci-beam.apache.org/job/beam_PreCommit_Java_Cron/lastCompletedBuild/">
<img alt="Build Status" src="https://ci-beam.apache.org/job/beam_PreCommit_Java_Cron/lastCompletedBuild/badge/icon">
</a><br>
</td>
<td>
<a href="https://ci-beam.apache.org/job/beam_PreCommit_Python_Cron/lastCompletedBuild/">
<img alt="Build Status" src="https://ci-beam.apache.org/job/beam_PreCommit_Python_Cron/lastCompletedBuild/badge/icon?subject=Tests">
</a><br>
<a href="https://ci-beam.apache.org/job/beam_PreCommit_PythonLint_Cron/lastCompletedBuild/">
<img alt="Build Status" src="https://ci-beam.apache.org/job/beam_PreCommit_PythonLint_Cron/lastCompletedBuild/badge/icon?subject=Lint">
</a><br>
<a href="https://ci-beam.apache.org/job/beam_PreCommit_PythonDocker_Cron/lastCompletedBuild/">
<img alt="Build Status" src="https://ci-beam.apache.org/job/beam_PreCommit_PythonDocker_Cron/badge/icon?subject=Docker">
</a><br>
<a href="https://ci-beam.apache.org/job/beam_PreCommit_PythonDocs_Cron/lastCompletedBuild/">
<img alt="Build Status" src="https://ci-beam.apache.org/job/beam_PreCommit_PythonDocs_Cron/badge/icon?subject=Docs">
</a>
</td>
<td>
<a href="https://ci-beam.apache.org/job/beam_PreCommit_Go_Cron/lastCompletedBuild/">
<img alt="Build Status" src="https://ci-beam.apache.org/job/beam_PreCommit_Go_Cron/lastCompletedBuild/badge/icon">
</a>
</td>
<td>
<a href="https://ci-beam.apache.org/job/beam_PreCommit_Website_Cron/lastCompletedBuild/">
<img alt="Build Status" src="https://ci-beam.apache.org/job/beam_PreCommit_Website_Cron/lastCompletedBuild/badge/icon">
</a>
</td>
<td>
<a href="https://ci-beam.apache.org/job/beam_PreCommit_Whitespace_Cron/lastCompletedBuild/">
<img alt="Build Status" src="https://ci-beam.apache.org/job/beam_PreCommit_Whitespace_Cron/lastCompletedBuild/badge/icon">
</a>
</td>
<td>
<a href="https://ci-beam.apache.org/job/beam_PreCommit_Typescript_Cron/lastCompletedBuild/">
<img alt="Build Status" src="https://ci-beam.apache.org/job/beam_PreCommit_Typescript_Cron/lastCompletedBuild/badge/icon">
</a>
</td>
</tr>
<tr>
<td>Portable</td>
<td>---</td>
<td>
<a href="https://ci-beam.apache.org/job/beam_PreCommit_Portable_Python_Cron/lastCompletedBuild/">
<img alt="Build Status" src="https://ci-beam.apache.org/job/beam_PreCommit_Portable_Python_Cron/lastCompletedBuild/badge/icon">
</a>
</td>
<td>
<a href="https://ci-beam.apache.org/job/beam_PreCommit_GoPortable_Cron/lastCompletedBuild/">
<img alt="Build Status" src="https://ci-beam.apache.org/job/beam_PreCommit_GoPortable_Cron/lastCompletedBuild/badge/icon">
</a>
</td>
<td>---</td>
<td>---</td>
<td>---</td>
</tr>
</tbody>
</table>
See [.test-infra/jenkins/README](https://github.com/apache/beam/blob/master/.test-infra/jenkins/README.md) for trigger phrase, status and link of all Jenkins jobs.
GitHub Actions Tests Status (on master branch)
------------------------------------------------------------------------------------------------
[](https://github.com/apache/beam/actions?query=workflow%3A%22Build+python+source+distribution+and+wheels%22+branch%3Amaster+event%3Aschedule)
[](https://github.com/apache/beam/actions?query=workflow%3A%22Python+Tests%22+branch%3Amaster+event%3Aschedule)
[](https://github.com/apache/beam/actions?query=workflow%3A%22Java+Tests%22+branch%3Amaster+event%3Aschedule)
See [CI.md](https://github.com/apache/beam/blob/master/CI.md) for more information about GitHub Actions CI.
--
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: github-unsubscribe@beam.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [beam] damondouglas commented on a change in pull request #16549: [BEAM-13681][Playground] Refactoring terraform scripts
Posted by GitBox <gi...@apache.org>.
damondouglas commented on a change in pull request #16549:
URL: https://github.com/apache/beam/pull/16549#discussion_r808396448
##########
File path: playground/terraform/infrastructure/variables.tf
##########
@@ -0,0 +1,148 @@
+#
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements. See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership. The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License. You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied. See the License for the
+# specific language governing permissions and limitations
+# under the License.
+#
+
+variable "project_id" {
+ description = "The GCP Project ID where Playground Applications will be created"
+}
+
+#GCS
+
+variable "examples_bucket_name" {
+ description = "Name of Bucket to Store Playground Examples"
+ default = "playground-examples"
+}
+
+variable "examples_bucket_location" {
+ description = "Location of Playground Examples Bucket"
+ default = "US"
+}
+
+variable "examples_storage_class" {
+ description = "Examples Bucket Storage Class"
+ default = "STANDARD"
+}
+
+variable "terraform_bucket_name" {
+ description = "Name of Bucket to Store Terraform States"
+ default = "playground_terraform"
+}
+
+variable "terraform_bucket_location" {
+ description = "Location of Playground Examples Bucket"
+ default = "US"
+}
+
+variable "terraform_storage_class" {
+ description = "Terrafomr Bucket Storage Class"
Review comment:
Terrafomr => Terraform
##########
File path: playground/terraform/infrastructure/memorystore/main.tf
##########
@@ -0,0 +1,43 @@
+#
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements. See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership. The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License. You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied. See the License for the
+# specific language governing permissions and limitations
+# under the License.
+#
+
+
+data "terraform_remote_state" "remote_state_vpc" {
+ backend = "gcs"
+ config = {
+ bucket = var.terraform_state_bucket_name
+ }
+}
+
+
+# Redis for storing state of Playground application.
+# In this cache Playground instances stores pipeline's statuses, outputs and pipeline's graph
+resource "google_redis_instance" "cache" {
Review comment:
In order for this to work for me, I had to add the following:
```
authorized_network = "playground-vpc" // or a reference to the output of the created custom vpc network
read_replicase_mode = "READ_REPLICAS_ENABLED"
```
##########
File path: playground/terraform/provider.tf
##########
@@ -19,8 +18,8 @@
#
provider "google" {
- region = "us-central"
+ region = "us-central"
}
provider "google-beta" {
Review comment:
Do we have periodic reminders in place to watch for when resources leave beta and become generally available and refactor as needed?
##########
File path: playground/terraform/infrastructure/variables.tf
##########
@@ -0,0 +1,148 @@
+#
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements. See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership. The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License. You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied. See the License for the
+# specific language governing permissions and limitations
+# under the License.
+#
+
+variable "project_id" {
+ description = "The GCP Project ID where Playground Applications will be created"
+}
+
+#GCS
+
+variable "examples_bucket_name" {
+ description = "Name of Bucket to Store Playground Examples"
+ default = "playground-examples"
+}
+
+variable "examples_bucket_location" {
+ description = "Location of Playground Examples Bucket"
+ default = "US"
+}
+
+variable "examples_storage_class" {
+ description = "Examples Bucket Storage Class"
+ default = "STANDARD"
+}
+
+variable "terraform_bucket_name" {
+ description = "Name of Bucket to Store Terraform States"
+ default = "playground_terraform"
+}
+
+variable "terraform_bucket_location" {
+ description = "Location of Playground Examples Bucket"
+ default = "US"
+}
+
+variable "terraform_storage_class" {
+ description = "Terrafomr Bucket Storage Class"
+ default = "STANDARD"
+}
+
+# Artifact Registry
+
+variable "repository_id" {
+ description = "ID of Artifact Registry"
+ default = "playground-repository"
+}
+
+variable "repository_location" {
+ description = "Location of Artifact Registry"
+ default = "us-central1"
+}
+
+variable "service_account" {
+ description = "Service account email"
+ default = "service-account-playground"
Review comment:
The description says "Service account email". However, the default is an id format. Is this variable a service account id or an email?
##########
File path: playground/terraform/infrastructure/gke/main.tf
##########
@@ -18,28 +17,24 @@
# under the License.
#
-terraform {
- backend "gcs" {
- bucket = "playground_terraform"
- }
-}
+
resource "google_container_cluster" "playground-gke" {
- name = "playground-examples"
- project = "${var.project_id}"
- location = "us-central1-a"
- initial_node_count = "${var.node_count}"
+ name = var.gke_name
+ project = var.project_id
+ location = var.gke_location
+ initial_node_count = var.gke_node_count
node_config {
- machine_type = "${var.machine_type}"
- service_account = "${var.service_account}"
+ machine_type = var.gke_machine_type
+ service_account = var.service_account
- oauth_scopes = [
+ oauth_scopes = [
"https://www.googleapis.com/auth/cloud-platform"
]
- labels = {
- component = "beam-playground"
+ labels = {
+ component = "beam-playground"
}
- tags = ["beam-playground"]
+ tags = ["beam-playground"]
Review comment:
Some running this recipe may follow the practice I typically do by deleting the default GCP network which this module assumes to exist.
I had to add:
```
network = "playground-vpc" // or whatever is the output of the provisioned custom network name
```
--
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: github-unsubscribe@beam.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [beam] ilya-kozyrev commented on a change in pull request #16549: [BEAM-13681][Playground] Refactoring terraform scripts
Posted by GitBox <gi...@apache.org>.
ilya-kozyrev commented on a change in pull request #16549:
URL: https://github.com/apache/beam/pull/16549#discussion_r796695872
##########
File path: .github/workflows/build_playground_backend.yml
##########
@@ -69,7 +69,7 @@ jobs:
if: startsWith(github.ref, 'ref/tags/')
- name: Preapre Build Python
run: ./gradlew playground:backend:containers:python:dockerPush -Pdocker-repository-root='${{ secrets.REGISTRY_NAME}}/${{ secrets.PROJECT_ID }}/playground-repository' -Pbase-image='apache/beam_java8_sdk:${{ env.BEAM_VERSION }}'
- - name: Preapre Build Go
+ - name: Preapre Build Go
Review comment:
done
--
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: github-unsubscribe@beam.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [beam] ilya-kozyrev commented on a change in pull request #16549: [BEAM-13681][Playground] Refactoring terraform scripts
Posted by GitBox <gi...@apache.org>.
ilya-kozyrev commented on a change in pull request #16549:
URL: https://github.com/apache/beam/pull/16549#discussion_r809220663
##########
File path: playground/terraform/infrastructure/variables.tf
##########
@@ -0,0 +1,148 @@
+#
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements. See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership. The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License. You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied. See the License for the
+# specific language governing permissions and limitations
+# under the License.
+#
+
+variable "project_id" {
+ description = "The GCP Project ID where Playground Applications will be created"
+}
+
+#GCS
+
+variable "examples_bucket_name" {
+ description = "Name of Bucket to Store Playground Examples"
+ default = "playground-examples"
+}
+
+variable "examples_bucket_location" {
+ description = "Location of Playground Examples Bucket"
+ default = "US"
+}
+
+variable "examples_storage_class" {
+ description = "Examples Bucket Storage Class"
+ default = "STANDARD"
+}
+
+variable "terraform_bucket_name" {
+ description = "Name of Bucket to Store Terraform States"
+ default = "playground_terraform"
+}
+
+variable "terraform_bucket_location" {
+ description = "Location of Playground Examples Bucket"
+ default = "US"
+}
+
+variable "terraform_storage_class" {
+ description = "Terrafomr Bucket Storage Class"
Review comment:
changed, thanks
##########
File path: playground/terraform/provider.tf
##########
@@ -19,8 +18,8 @@
#
provider "google" {
- region = "us-central"
+ region = "us-central"
}
provider "google-beta" {
Review comment:
Added todo
##########
File path: playground/terraform/infrastructure/variables.tf
##########
@@ -0,0 +1,148 @@
+#
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements. See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership. The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License. You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied. See the License for the
+# specific language governing permissions and limitations
+# under the License.
+#
+
+variable "project_id" {
+ description = "The GCP Project ID where Playground Applications will be created"
+}
+
+#GCS
+
+variable "examples_bucket_name" {
+ description = "Name of Bucket to Store Playground Examples"
+ default = "playground-examples"
+}
+
+variable "examples_bucket_location" {
+ description = "Location of Playground Examples Bucket"
+ default = "US"
+}
+
+variable "examples_storage_class" {
+ description = "Examples Bucket Storage Class"
+ default = "STANDARD"
+}
+
+variable "terraform_bucket_name" {
+ description = "Name of Bucket to Store Terraform States"
+ default = "playground_terraform"
+}
+
+variable "terraform_bucket_location" {
+ description = "Location of Playground Examples Bucket"
+ default = "US"
+}
+
+variable "terraform_storage_class" {
+ description = "Terrafomr Bucket Storage Class"
+ default = "STANDARD"
+}
+
+# Artifact Registry
+
+variable "repository_id" {
+ description = "ID of Artifact Registry"
+ default = "playground-repository"
+}
+
+variable "repository_location" {
+ description = "Location of Artifact Registry"
+ default = "us-central1"
+}
+
+variable "service_account" {
+ description = "Service account email"
+ default = "service-account-playground"
Review comment:
changed, thanks
--
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: github-unsubscribe@beam.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [beam] pabloem commented on pull request #16549: [BEAM-13681][Playground] Refactoring terraform scripts
Posted by GitBox <gi...@apache.org>.
pabloem commented on pull request #16549:
URL: https://github.com/apache/beam/pull/16549#issuecomment-1048069180
this is very cool. thanks! LGTM.
--
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: github-unsubscribe@beam.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [beam] ilya-kozyrev commented on a change in pull request #16549: [BEAM-13681][Playground] Refactoring terraform scripts
Posted by GitBox <gi...@apache.org>.
ilya-kozyrev commented on a change in pull request #16549:
URL: https://github.com/apache/beam/pull/16549#discussion_r802857774
##########
File path: playground/terraform/applications/backend-java/main.tf
##########
@@ -44,15 +44,15 @@ resource "google_app_engine_flexible_app_version" "backend_app" {
}
env_variables = {
- CACHE_TYPE="${var.cache_type}"
- CACHE_ADDRESS="${var.cache_address}:6379"
- NUM_PARALLEL_JOBS=10
- LAUNCH_SITE = "app_engine"
+ CACHE_TYPE = var.cache_type
+ CACHE_ADDRESS = "${var.cache_address}:6379"
Review comment:
The application submodule will be refactored in https://issues.apache.org/jira/browse/BEAM-13841 and https://issues.apache.org/jira/browse/BEAM-13842
##########
File path: playground/terraform/applications/backend-go/main.tf
##########
@@ -35,22 +35,22 @@ resource "google_app_engine_flexible_app_version" "backend_app_go" {
automatic_scaling {
max_total_instances = 7
min_total_instances = 2
- cool_down_period = "120s"
+ cool_down_period = "120s"
cpu_utilization {
target_utilization = 0.7
}
}
resources {
memory_gb = 16
- cpu = 8
+ cpu = 8
}
env_variables = {
- CACHE_TYPE="${var.cache_type}"
- CACHE_ADDRESS="${var.cache_address}:6379"
- NUM_PARALLEL_JOBS=30
- LAUNCH_SITE = "app_engine"
+ CACHE_TYPE = var.cache_type
+ CACHE_ADDRESS = "${var.cache_address}:6379"
Review comment:
The application submodule will be refactored in https://issues.apache.org/jira/browse/BEAM-13841 and https://issues.apache.org/jira/browse/BEAM-13842
##########
File path: playground/terraform/README.md
##########
@@ -62,11 +62,13 @@ Do you want to perform these actions?
Enter a value:
```
-Type `yes` and hit **Enter**. Applying the configuration could take several minutes. When it's finished, you should see `Apply complete!` along with some other information, including the number of resources created.
+Type `yes` and hit **Enter**. Applying the configuration could take several minutes. When it's finished, you should
+see `Apply complete!` along with some other information, including the number of resources created.
### Applying a non-default configuration
-You can apply a non-default Terraform configuration by changing the values in the `terraform.tfvars` file. The following variables are available:
+You can apply a non-default Terraform configuration by changing the values in the `terraform.tfvars` file. The following
+variables are available:
Review comment:
Changed.
##########
File path: playground/terraform/README.md
##########
@@ -62,11 +62,13 @@ Do you want to perform these actions?
Enter a value:
```
-Type `yes` and hit **Enter**. Applying the configuration could take several minutes. When it's finished, you should see `Apply complete!` along with some other information, including the number of resources created.
+Type `yes` and hit **Enter**. Applying the configuration could take several minutes. When it's finished, you should
+see `Apply complete!` along with some other information, including the number of resources created.
### Applying a non-default configuration
-You can apply a non-default Terraform configuration by changing the values in the `terraform.tfvars` file. The following variables are available:
+You can apply a non-default Terraform configuration by changing the values in the `terraform.tfvars` file. The following
Review comment:
Done
##########
File path: playground/terraform/README.md
##########
@@ -62,11 +62,13 @@ Do you want to perform these actions?
Enter a value:
```
-Type `yes` and hit **Enter**. Applying the configuration could take several minutes. When it's finished, you should see `Apply complete!` along with some other information, including the number of resources created.
+Type `yes` and hit **Enter**. Applying the configuration could take several minutes. When it's finished, you should
Review comment:
Changed
##########
File path: playground/terraform/README.md
##########
@@ -29,14 +29,14 @@ You'll also need to make sure that you're currently logged into your GCP account
```bash
$ gcloud auth login
```
-In other case you'll need an environment variable `GOOGLE_APPLICATION_CREDENTIALS` set to JSON key for service account that will be used to deploy resources
+
+In other case you'll need an environment variable `GOOGLE_APPLICATION_CREDENTIALS` set to JSON key for service account
Review comment:
Done
--
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: github-unsubscribe@beam.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [beam] ilya-kozyrev commented on a change in pull request #16549: [BEAM-13681][Playground] Refactoring terraform scripts
Posted by GitBox <gi...@apache.org>.
ilya-kozyrev commented on a change in pull request #16549:
URL: https://github.com/apache/beam/pull/16549#discussion_r796696273
##########
File path: playground/terraform/modules/account.tf
##########
@@ -0,0 +1,50 @@
+#
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements. See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership. The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License. You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied. See the License for the
+# specific language governing permissions and limitations
+# under the License.
+#
+
+# need enable api
+# https://console.developers.google.com/apis/api/iam.googleapis.com/overview?project=750903720791
+resource "google_service_account" "account" {
+ project = "${var.project_id}"
+ account_id = "${var.service_account}"
+ display_name = "${var.service_account}"
+}
+
+
+output "playground_service_account_id" {
+ value = "${google_service_account.account.account_id}"
+}
+
+
+resource "google_project_iam_binding" "account_iam_binding" {
+ for_each = toset([
+ "roles/dataflow.admin",
+ "roles/compute.storageAdmin",
Review comment:
removed this module
##########
File path: playground/terraform/modules/account.tf
##########
@@ -0,0 +1,50 @@
+#
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements. See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership. The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License. You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied. See the License for the
+# specific language governing permissions and limitations
+# under the License.
+#
+
+# need enable api
+# https://console.developers.google.com/apis/api/iam.googleapis.com/overview?project=750903720791
+resource "google_service_account" "account" {
+ project = "${var.project_id}"
+ account_id = "${var.service_account}"
+ display_name = "${var.service_account}"
+}
+
+
+output "playground_service_account_id" {
+ value = "${google_service_account.account.account_id}"
+}
+
+
+resource "google_project_iam_binding" "account_iam_binding" {
+ for_each = toset([
+ "roles/dataflow.admin",
+ "roles/compute.storageAdmin",
+ "roles/iam.serviceAccountTokenCreator"
Review comment:
removed this module
--
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: github-unsubscribe@beam.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [beam] damondouglas commented on a change in pull request #16549: [BEAM-13681][Playground] Refactoring terraform scripts
Posted by GitBox <gi...@apache.org>.
damondouglas commented on a change in pull request #16549:
URL: https://github.com/apache/beam/pull/16549#discussion_r808513423
##########
File path: playground/terraform/infrastructure/memorystore/main.tf
##########
@@ -0,0 +1,43 @@
+#
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements. See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership. The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License. You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied. See the License for the
+# specific language governing permissions and limitations
+# under the License.
+#
+
+
+data "terraform_remote_state" "remote_state_vpc" {
+ backend = "gcs"
+ config = {
+ bucket = var.terraform_state_bucket_name
+ }
+}
+
+
+# Redis for storing state of Playground application.
+# In this cache Playground instances stores pipeline's statuses, outputs and pipeline's graph
+resource "google_redis_instance" "cache" {
Review comment:
I now see this PR that may address the missing network assignment: https://github.com/apache/beam/pull/16823
--
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: github-unsubscribe@beam.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [beam] damondouglas commented on a change in pull request #16549: [BEAM-13681][Playground] Refactoring terraform scripts
Posted by GitBox <gi...@apache.org>.
damondouglas commented on a change in pull request #16549:
URL: https://github.com/apache/beam/pull/16549#discussion_r808513103
##########
File path: playground/terraform/infrastructure/gke/main.tf
##########
@@ -18,28 +17,24 @@
# under the License.
#
-terraform {
- backend "gcs" {
- bucket = "playground_terraform"
- }
-}
+
resource "google_container_cluster" "playground-gke" {
- name = "playground-examples"
- project = "${var.project_id}"
- location = "us-central1-a"
- initial_node_count = "${var.node_count}"
+ name = var.gke_name
+ project = var.project_id
+ location = var.gke_location
+ initial_node_count = var.gke_node_count
node_config {
- machine_type = "${var.machine_type}"
- service_account = "${var.service_account}"
+ machine_type = var.gke_machine_type
+ service_account = var.service_account
- oauth_scopes = [
+ oauth_scopes = [
"https://www.googleapis.com/auth/cloud-platform"
]
- labels = {
- component = "beam-playground"
+ labels = {
+ component = "beam-playground"
}
- tags = ["beam-playground"]
+ tags = ["beam-playground"]
Review comment:
I now see this PR: https://github.com/apache/beam/pull/16823 that may address this.
--
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: github-unsubscribe@beam.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [beam] ilya-kozyrev commented on pull request #16549: [BEAM-13681][Playground] Refactoring terraform scripts
Posted by GitBox <gi...@apache.org>.
ilya-kozyrev commented on pull request #16549:
URL: https://github.com/apache/beam/pull/16549#issuecomment-1043134046
@damondouglas, thanks for the review! That's awesome that you successfully applied infrastructure via terraform. That's is a goal of this PR. Please don't worry about application deployment. We also have new PR with application deployment where we use Gradle to make deployment easier.
--
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: github-unsubscribe@beam.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [beam] damondouglas commented on a change in pull request #16549: [BEAM-13681][Playground] Refactoring terraform scripts
Posted by GitBox <gi...@apache.org>.
damondouglas commented on a change in pull request #16549:
URL: https://github.com/apache/beam/pull/16549#discussion_r809397557
##########
File path: playground/terraform/infrastructure/provider.tf
##########
@@ -0,0 +1,33 @@
+#
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements. See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership. The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License. You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied. See the License for the
+# specific language governing permissions and limitations
+# under the License.
+#
+
+provider "google" {
+ region = var.region
+ // TODO may need to run module.setup first independent of this solution and add the terraform service account as a variable
Review comment:
See: https://issues.apache.org/jira/browse/BEAM-13971
##########
File path: playground/terraform/infrastructure/provider.tf
##########
@@ -0,0 +1,33 @@
+#
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements. See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership. The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License. You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied. See the License for the
+# specific language governing permissions and limitations
+# under the License.
+#
+
+provider "google" {
+ region = var.region
+ // TODO may need to run module.setup first independent of this solution and add the terraform service account as a variable
+ // This allows us to use a service account to provision resources without downloading or storing service account keys
+ # impersonate_service_account = module.setup.terraform_service_account_email
+}
+
+// TODO: required by artifact registry and memorystore; remove when generally available
+provider "google-beta" {
+ region = var.region
+ // TODO may need to run module.setup first independent of this solution and add the terraform service account as a variable
Review comment:
See: https://issues.apache.org/jira/browse/BEAM-13971
--
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: github-unsubscribe@beam.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [beam] KhaninArtur commented on pull request #16549: [BEAM-13681][Playground] Refactoring terraform scripts
Posted by GitBox <gi...@apache.org>.
KhaninArtur commented on pull request #16549:
URL: https://github.com/apache/beam/pull/16549#issuecomment-1021005730
@andreykus do we need to update this PR with the latest master?
--
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: github-unsubscribe@beam.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [beam] ilya-kozyrev commented on a change in pull request #16549: [BEAM-13681][Playground] Refactoring terraform scripts
Posted by GitBox <gi...@apache.org>.
ilya-kozyrev commented on a change in pull request #16549:
URL: https://github.com/apache/beam/pull/16549#discussion_r796690209
##########
File path: playground/terraform/modules/account.tf
##########
@@ -0,0 +1,50 @@
+#
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements. See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership. The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License. You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied. See the License for the
+# specific language governing permissions and limitations
+# under the License.
+#
+
+# need enable api
+# https://console.developers.google.com/apis/api/iam.googleapis.com/overview?project=750903720791
Review comment:
This module is redundant, we use GH Secret for GHA deploy and Terraform variables for deploy outside the GH environment.
##########
File path: playground/terraform/modules/memorystore/variables.tf
##########
@@ -0,0 +1,31 @@
+#
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements. See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership. The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License. You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied. See the License for the
+# specific language governing permissions and limitations
+# under the License.
+#
+
+variable "project_id" {
+ description = "The GCP Project ID where Playground Applications will be created"
+}
+
+variable "redis_version" {
+ description = "The GCP Project ID where Playground Applications will be created"
+ default = "REDIS_6_X"
+}
+
+variable "beam_playground_terraform" {
Review comment:
It seems like the wrong name for this variable - renamed to terraform_state_bucket_name and added description
##########
File path: playground/terraform/modules/memorystore/main.tf
##########
@@ -0,0 +1,43 @@
+#
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements. See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership. The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License. You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied. See the License for the
+# specific language governing permissions and limitations
+# under the License.
+#
+
+
+data "terraform_remote_state" "remote_state_vpc" {
+ backend = "gcs"
+ config = {
+ bucket = "${var.beam_playground_terraform}"
+ }
+}
+
+
+resource "google_redis_instance" "cache" {
Review comment:
Added
##########
File path: playground/terraform/modules/account.tf
##########
@@ -0,0 +1,50 @@
+#
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements. See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership. The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License. You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied. See the License for the
+# specific language governing permissions and limitations
+# under the License.
+#
+
+# need enable api
+# https://console.developers.google.com/apis/api/iam.googleapis.com/overview?project=750903720791
+resource "google_service_account" "account" {
Review comment:
removed this module
--
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: github-unsubscribe@beam.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [beam] ilya-kozyrev commented on a change in pull request #16549: [BEAM-13681][Playground] Refactoring terraform scripts
Posted by GitBox <gi...@apache.org>.
ilya-kozyrev commented on a change in pull request #16549:
URL: https://github.com/apache/beam/pull/16549#discussion_r796698821
##########
File path: playground/terraform/modules/memorystore/main.tf
##########
@@ -0,0 +1,43 @@
+#
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements. See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership. The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License. You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied. See the License for the
+# specific language governing permissions and limitations
+# under the License.
+#
+
+
+data "terraform_remote_state" "remote_state_vpc" {
+ backend = "gcs"
+ config = {
+ bucket = "${var.beam_playground_terraform}"
+ }
+}
+
+
+resource "google_redis_instance" "cache" {
+ provider = google-beta
+ project = "${var.project_id}"
+# region = "${data.terraform_remote_state.remote_state_vpc.outputs.subnet_region}"
+ region = "us-central1"
+ name = "playground-backend-cache"
+ tier = "BASIC"
+ memory_size_gb = 16
+
+# authorized_network = "${data.terraform_remote_state.remote_state_vpc.outputs.vpc_id}"
Review comment:
It's WIP now, will be added in future PRs
--
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: github-unsubscribe@beam.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [beam] ilya-kozyrev commented on pull request #16549: [BEAM-13681][Playground] Refactoring terraform scripts
Posted by GitBox <gi...@apache.org>.
ilya-kozyrev commented on pull request #16549:
URL: https://github.com/apache/beam/pull/16549#issuecomment-1033965730
@damondouglas please review only the infrastructure part. For application's terraform we create another PR soon
--
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: github-unsubscribe@beam.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [beam] ilya-kozyrev commented on pull request #16549: [BEAM-13681][Playground] Refactoring terraform scripts
Posted by GitBox <gi...@apache.org>.
ilya-kozyrev commented on pull request #16549:
URL: https://github.com/apache/beam/pull/16549#issuecomment-1047975356
**R:** @pabloem
--
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: github-unsubscribe@beam.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [beam] ilya-kozyrev commented on a change in pull request #16549: [BEAM-13681][Playground] Refactoring terraform scripts
Posted by GitBox <gi...@apache.org>.
ilya-kozyrev commented on a change in pull request #16549:
URL: https://github.com/apache/beam/pull/16549#discussion_r796696743
##########
File path: playground/terraform/modules/memorystore/main.tf
##########
@@ -0,0 +1,43 @@
+#
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements. See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership. The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License. You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied. See the License for the
+# specific language governing permissions and limitations
+# under the License.
+#
+
+
+data "terraform_remote_state" "remote_state_vpc" {
+ backend = "gcs"
+ config = {
+ bucket = "${var.beam_playground_terraform}"
+ }
+}
+
+
+resource "google_redis_instance" "cache" {
+ provider = google-beta
+ project = "${var.project_id}"
+# region = "${data.terraform_remote_state.remote_state_vpc.outputs.subnet_region}"
+ region = "us-central1"
Review comment:
created variale
--
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: github-unsubscribe@beam.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [beam] damondouglas commented on a change in pull request #16549: [BEAM-13681][Playground] Refactoring terraform scripts
Posted by GitBox <gi...@apache.org>.
damondouglas commented on a change in pull request #16549:
URL: https://github.com/apache/beam/pull/16549#discussion_r799645175
##########
File path: playground/terraform/README.md
##########
@@ -62,11 +62,13 @@ Do you want to perform these actions?
Enter a value:
```
-Type `yes` and hit **Enter**. Applying the configuration could take several minutes. When it's finished, you should see `Apply complete!` along with some other information, including the number of resources created.
+Type `yes` and hit **Enter**. Applying the configuration could take several minutes. When it's finished, you should
+see `Apply complete!` along with some other information, including the number of resources created.
### Applying a non-default configuration
-You can apply a non-default Terraform configuration by changing the values in the `terraform.tfvars` file. The following variables are available:
+You can apply a non-default Terraform configuration by changing the values in the `terraform.tfvars` file. The following
Review comment:
A `*.tfvars` file is typically in the same directory of the terraform code. Following up on the previous comment, it isn't clear to the reader where the tfvars file should be created. I wonder if it makes more sense to not even document on any terraform workflow and refer to terraform's documentation on this subject.
##########
File path: playground/terraform/README.md
##########
@@ -29,14 +29,14 @@ You'll also need to make sure that you're currently logged into your GCP account
```bash
$ gcloud auth login
```
-In other case you'll need an environment variable `GOOGLE_APPLICATION_CREDENTIALS` set to JSON key for service account that will be used to deploy resources
+
+In other case you'll need an environment variable `GOOGLE_APPLICATION_CREDENTIALS` set to JSON key for service account
Review comment:
Should we be recommending the use of a JSON key? Wouldn't a more secure practice involve the use of service account impersonation?
##########
File path: playground/terraform/README.md
##########
@@ -62,11 +62,13 @@ Do you want to perform these actions?
Enter a value:
```
-Type `yes` and hit **Enter**. Applying the configuration could take several minutes. When it's finished, you should see `Apply complete!` along with some other information, including the number of resources created.
+Type `yes` and hit **Enter**. Applying the configuration could take several minutes. When it's finished, you should
Review comment:
The position of this README in the terraform folder and its description of how to run the terraform code, implies
a single terraform workflow in this terraform folder. It isn't clear to someone coming to this repository for the first time that they need to run the code in each of the folders. Also, it isn't clear if there is an order or dependency between each of the terraform code folders.
##########
File path: playground/terraform/README.md
##########
@@ -92,10 +94,10 @@ After applying terraform following resources will be created:
* GCP [Artifact Registry](https://cloud.google.com/artifact-registry) used to store application docker files:
* VPC to run GCP App Engine VM's ([VPC](https://cloud.google.com/vpc))
-* 2 buckets to store Examples for Playground Application and Terraform states [buckets](https://cloud.google.com/storage/docs/key-terms#buckets)
+* 2 buckets to store Examples for Playground Application and Terraform
+ states [buckets](https://cloud.google.com/storage/docs/key-terms#buckets)
* 2 GCP [App Engine](https://cloud.google.com/appengine) services for backend and frontend applications
-
### Destroying your cluster
Review comment:
The use of the word `cluster` is misleading in my opinion as the terraform code doesn't just create a "cluster". Is it even necessary to document on a workflow that is already documented by terraform?
##########
File path: playground/terraform/README.md
##########
@@ -62,11 +62,13 @@ Do you want to perform these actions?
Enter a value:
```
-Type `yes` and hit **Enter**. Applying the configuration could take several minutes. When it's finished, you should see `Apply complete!` along with some other information, including the number of resources created.
+Type `yes` and hit **Enter**. Applying the configuration could take several minutes. When it's finished, you should
+see `Apply complete!` along with some other information, including the number of resources created.
### Applying a non-default configuration
-You can apply a non-default Terraform configuration by changing the values in the `terraform.tfvars` file. The following variables are available:
+You can apply a non-default Terraform configuration by changing the values in the `terraform.tfvars` file. The following
+variables are available:
Review comment:
I would like to propose removing this section and rely on terraform variable description properties. Documenting on variables in a README makes the terraform codebase not as orthogonal as it could be. I've seen many situations where there is misalignment between the terraform variables and the documentation. Instead of listing out the variables and whether they are required in a README, one could simply provide a description of the variable in the terraform code directly and when using an IDE such as VS code or IntelliJ, the IDE is great about parsing these descriptions. If a default value is provided, the IDE will communicate to the developer whether the variable is optional. Relying only on terraform variables self documenting provides a single source of truth and preserves orthogonality of the code.
##########
File path: playground/terraform/applications/backend-go/main.tf
##########
@@ -35,22 +35,22 @@ resource "google_app_engine_flexible_app_version" "backend_app_go" {
automatic_scaling {
max_total_instances = 7
min_total_instances = 2
- cool_down_period = "120s"
+ cool_down_period = "120s"
cpu_utilization {
target_utilization = 0.7
}
}
resources {
memory_gb = 16
- cpu = 8
+ cpu = 8
}
env_variables = {
- CACHE_TYPE="${var.cache_type}"
- CACHE_ADDRESS="${var.cache_address}:6379"
- NUM_PARALLEL_JOBS=30
- LAUNCH_SITE = "app_engine"
+ CACHE_TYPE = var.cache_type
+ CACHE_ADDRESS = "${var.cache_address}:6379"
Review comment:
Do we want to hard code the port?
##########
File path: playground/terraform/applications/backend-java/main.tf
##########
@@ -44,15 +44,15 @@ resource "google_app_engine_flexible_app_version" "backend_app" {
}
env_variables = {
- CACHE_TYPE="${var.cache_type}"
- CACHE_ADDRESS="${var.cache_address}:6379"
- NUM_PARALLEL_JOBS=10
- LAUNCH_SITE = "app_engine"
+ CACHE_TYPE = var.cache_type
+ CACHE_ADDRESS = "${var.cache_address}:6379"
Review comment:
Do we want to hard code the port?
--
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: github-unsubscribe@beam.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [beam] ilya-kozyrev commented on a change in pull request #16549: [BEAM-13681][Playground] Refactoring terraform scripts
Posted by GitBox <gi...@apache.org>.
ilya-kozyrev commented on a change in pull request #16549:
URL: https://github.com/apache/beam/pull/16549#discussion_r796697678
##########
File path: playground/terraform/modules/memorystore/main.tf
##########
@@ -0,0 +1,43 @@
+#
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements. See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership. The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License. You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied. See the License for the
+# specific language governing permissions and limitations
+# under the License.
+#
+
+
+data "terraform_remote_state" "remote_state_vpc" {
+ backend = "gcs"
+ config = {
+ bucket = "${var.beam_playground_terraform}"
+ }
+}
+
+
+resource "google_redis_instance" "cache" {
+ provider = google-beta
+ project = "${var.project_id}"
+# region = "${data.terraform_remote_state.remote_state_vpc.outputs.subnet_region}"
+ region = "us-central1"
+ name = "playground-backend-cache"
+ tier = "BASIC"
+ memory_size_gb = 16
Review comment:
It seems like overkill for our cache reduced to 4G
--
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: github-unsubscribe@beam.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [beam] ilya-kozyrev commented on a change in pull request #16549: [BEAM-13681][Playground] Refactoring terraform scripts
Posted by GitBox <gi...@apache.org>.
ilya-kozyrev commented on a change in pull request #16549:
URL: https://github.com/apache/beam/pull/16549#discussion_r796696923
##########
File path: playground/terraform/modules/memorystore/main.tf
##########
@@ -0,0 +1,43 @@
+#
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements. See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership. The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License. You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied. See the License for the
+# specific language governing permissions and limitations
+# under the License.
+#
+
+
+data "terraform_remote_state" "remote_state_vpc" {
+ backend = "gcs"
+ config = {
+ bucket = "${var.beam_playground_terraform}"
+ }
+}
+
+
+resource "google_redis_instance" "cache" {
+ provider = google-beta
+ project = "${var.project_id}"
+# region = "${data.terraform_remote_state.remote_state_vpc.outputs.subnet_region}"
Review comment:
deleted
--
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: github-unsubscribe@beam.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [beam] damondouglas commented on a change in pull request #16549: [BEAM-13681][Playground] Refactoring terraform scripts
Posted by GitBox <gi...@apache.org>.
damondouglas commented on a change in pull request #16549:
URL: https://github.com/apache/beam/pull/16549#discussion_r809394786
##########
File path: playground/terraform/infrastructure/memorystore/main.tf
##########
@@ -0,0 +1,43 @@
+#
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements. See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership. The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License. You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied. See the License for the
+# specific language governing permissions and limitations
+# under the License.
+#
+
+
+data "terraform_remote_state" "remote_state_vpc" {
+ backend = "gcs"
+ config = {
+ bucket = var.terraform_state_bucket_name
+ }
+}
+
+
+# Redis for storing state of Playground application.
+# In this cache Playground instances stores pipeline's statuses, outputs and pipeline's graph
+resource "google_redis_instance" "cache" {
Review comment:
Resolved
--
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: github-unsubscribe@beam.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [beam] damondouglas commented on a change in pull request #16549: [BEAM-13681][Playground] Refactoring terraform scripts
Posted by GitBox <gi...@apache.org>.
damondouglas commented on a change in pull request #16549:
URL: https://github.com/apache/beam/pull/16549#discussion_r809394560
##########
File path: playground/terraform/infrastructure/gke/main.tf
##########
@@ -18,28 +17,24 @@
# under the License.
#
-terraform {
- backend "gcs" {
- bucket = "playground_terraform"
- }
-}
+
resource "google_container_cluster" "playground-gke" {
- name = "playground-examples"
- project = "${var.project_id}"
- location = "us-central1-a"
- initial_node_count = "${var.node_count}"
+ name = var.gke_name
+ project = var.project_id
+ location = var.gke_location
+ initial_node_count = var.gke_node_count
node_config {
- machine_type = "${var.machine_type}"
- service_account = "${var.service_account}"
+ machine_type = var.gke_machine_type
+ service_account = var.service_account
- oauth_scopes = [
+ oauth_scopes = [
"https://www.googleapis.com/auth/cloud-platform"
]
- labels = {
- component = "beam-playground"
+ labels = {
+ component = "beam-playground"
}
- tags = ["beam-playground"]
+ tags = ["beam-playground"]
Review comment:
Resolved
--
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: github-unsubscribe@beam.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [beam] pabloem merged pull request #16549: [BEAM-13681][Playground] Refactoring terraform scripts
Posted by GitBox <gi...@apache.org>.
pabloem merged pull request #16549:
URL: https://github.com/apache/beam/pull/16549
--
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: github-unsubscribe@beam.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [beam] damondouglas commented on a change in pull request #16549: [BEAM-13681][Playground] Refactoring terraform scripts
Posted by GitBox <gi...@apache.org>.
damondouglas commented on a change in pull request #16549:
URL: https://github.com/apache/beam/pull/16549#discussion_r792041617
##########
File path: playground/terraform/modules/memorystore/main.tf
##########
@@ -0,0 +1,43 @@
+#
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements. See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership. The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License. You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied. See the License for the
+# specific language governing permissions and limitations
+# under the License.
+#
+
+
+data "terraform_remote_state" "remote_state_vpc" {
+ backend = "gcs"
+ config = {
+ bucket = "${var.beam_playground_terraform}"
+ }
+}
+
+
+resource "google_redis_instance" "cache" {
+ provider = google-beta
Review comment:
Why is the provider `google-beta`?
##########
File path: playground/terraform/modules/account.tf
##########
@@ -0,0 +1,50 @@
+#
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements. See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership. The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License. You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied. See the License for the
+# specific language governing permissions and limitations
+# under the License.
+#
+
+# need enable api
+# https://console.developers.google.com/apis/api/iam.googleapis.com/overview?project=750903720791
+resource "google_service_account" "account" {
+ project = "${var.project_id}"
+ account_id = "${var.service_account}"
+ display_name = "${var.service_account}"
+}
+
+
+output "playground_service_account_id" {
+ value = "${google_service_account.account.account_id}"
+}
+
+
+resource "google_project_iam_binding" "account_iam_binding" {
+ for_each = toset([
+ "roles/dataflow.admin",
Review comment:
Is `roles/dataflow.admin` the minimal necessary to achieve the job function of the service account?
##########
File path: .github/workflows/build_playground_backend.yml
##########
@@ -69,7 +69,7 @@ jobs:
if: startsWith(github.ref, 'ref/tags/')
- name: Preapre Build Python
run: ./gradlew playground:backend:containers:python:dockerPush -Pdocker-repository-root='${{ secrets.REGISTRY_NAME}}/${{ secrets.PROJECT_ID }}/playground-repository' -Pbase-image='apache/beam_java8_sdk:${{ env.BEAM_VERSION }}'
- - name: Preapre Build Go
+ - name: Preapre Build Go
Review comment:
Can we correct the spelling here to `Prepare`?
##########
File path: playground/terraform/modules/account.tf
##########
@@ -0,0 +1,50 @@
+#
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements. See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership. The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License. You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied. See the License for the
+# specific language governing permissions and limitations
+# under the License.
+#
+
+# need enable api
+# https://console.developers.google.com/apis/api/iam.googleapis.com/overview?project=750903720791
Review comment:
Two comments:
1) Could we not hardcode specific Google Cloud artifact references such as projects in comments or the code?
2) Could we consider instead using the `google_project_service` block? If so, one would need to unfortunately provide a `depends_on` meta-argument to resources depending on the `google_project_service`. Alternatively, the API enablement could be added in the README as one of the pre-requisites documented prior to running the terraform workflow solution.
##########
File path: playground/terraform/modules/memorystore/main.tf
##########
@@ -0,0 +1,43 @@
+#
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements. See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership. The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License. You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied. See the License for the
+# specific language governing permissions and limitations
+# under the License.
+#
+
+
+data "terraform_remote_state" "remote_state_vpc" {
+ backend = "gcs"
+ config = {
+ bucket = "${var.beam_playground_terraform}"
+ }
+}
+
+
+resource "google_redis_instance" "cache" {
+ provider = google-beta
+ project = "${var.project_id}"
+# region = "${data.terraform_remote_state.remote_state_vpc.outputs.subnet_region}"
+ region = "us-central1"
+ name = "playground-backend-cache"
+ tier = "BASIC"
Review comment:
Since `BASIC` is default is this necessary? More importantly, shouldn't we use `STANDARD_HA`?
##########
File path: playground/terraform/modules/memorystore/main.tf
##########
@@ -0,0 +1,43 @@
+#
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements. See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership. The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License. You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied. See the License for the
+# specific language governing permissions and limitations
+# under the License.
+#
+
+
+data "terraform_remote_state" "remote_state_vpc" {
+ backend = "gcs"
+ config = {
+ bucket = "${var.beam_playground_terraform}"
+ }
+}
+
+
+resource "google_redis_instance" "cache" {
+ provider = google-beta
+ project = "${var.project_id}"
+# region = "${data.terraform_remote_state.remote_state_vpc.outputs.subnet_region}"
+ region = "us-central1"
+ name = "playground-backend-cache"
+ tier = "BASIC"
+ memory_size_gb = 16
Review comment:
Can `memory_size_gb` be provided using a variable and that variable default to `16`? Why was `16` chosen specifically?
##########
File path: playground/terraform/modules/memorystore/main.tf
##########
@@ -0,0 +1,43 @@
+#
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements. See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership. The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License. You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied. See the License for the
+# specific language governing permissions and limitations
+# under the License.
+#
+
+
+data "terraform_remote_state" "remote_state_vpc" {
+ backend = "gcs"
+ config = {
+ bucket = "${var.beam_playground_terraform}"
+ }
+}
+
+
+resource "google_redis_instance" "cache" {
+ provider = google-beta
+ project = "${var.project_id}"
+# region = "${data.terraform_remote_state.remote_state_vpc.outputs.subnet_region}"
+ region = "us-central1"
+ name = "playground-backend-cache"
+ tier = "BASIC"
+ memory_size_gb = 16
+
+# authorized_network = "${data.terraform_remote_state.remote_state_vpc.outputs.vpc_id}"
Review comment:
Why are we no longer using a custom virtual private network?
##########
File path: playground/terraform/modules/memorystore/main.tf
##########
@@ -0,0 +1,43 @@
+#
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements. See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership. The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License. You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied. See the License for the
+# specific language governing permissions and limitations
+# under the License.
+#
+
+
+data "terraform_remote_state" "remote_state_vpc" {
+ backend = "gcs"
+ config = {
+ bucket = "${var.beam_playground_terraform}"
+ }
+}
+
+
+resource "google_redis_instance" "cache" {
Review comment:
Could we provide a comment describing the purpose caching is achieving for the Playground application?
##########
File path: playground/terraform/modules/account.tf
##########
@@ -0,0 +1,50 @@
+#
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements. See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership. The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License. You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied. See the License for the
+# specific language governing permissions and limitations
+# under the License.
+#
+
+# need enable api
+# https://console.developers.google.com/apis/api/iam.googleapis.com/overview?project=750903720791
+resource "google_service_account" "account" {
+ project = "${var.project_id}"
+ account_id = "${var.service_account}"
+ display_name = "${var.service_account}"
+}
+
+
+output "playground_service_account_id" {
+ value = "${google_service_account.account.account_id}"
+}
+
+
+resource "google_project_iam_binding" "account_iam_binding" {
+ for_each = toset([
+ "roles/dataflow.admin",
+ "roles/compute.storageAdmin",
+ "roles/iam.serviceAccountTokenCreator"
Review comment:
What other service account is `google_service_account.account` impersonating? Shouldn't we bind this directly to the service account to which we want `google_service_account.account` to impersonate?
##########
File path: playground/terraform/modules/account.tf
##########
@@ -0,0 +1,50 @@
+#
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements. See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership. The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License. You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied. See the License for the
+# specific language governing permissions and limitations
+# under the License.
+#
+
+# need enable api
+# https://console.developers.google.com/apis/api/iam.googleapis.com/overview?project=750903720791
+resource "google_service_account" "account" {
+ project = "${var.project_id}"
+ account_id = "${var.service_account}"
+ display_name = "${var.service_account}"
+}
+
+
+output "playground_service_account_id" {
+ value = "${google_service_account.account.account_id}"
+}
+
+
+resource "google_project_iam_binding" "account_iam_binding" {
+ for_each = toset([
+ "roles/dataflow.admin",
+ "roles/compute.storageAdmin",
Review comment:
Is `roles/compute.storageAdmin` the minimal necessary to achieve the job function of the service account?
##########
File path: playground/terraform/modules/account.tf
##########
@@ -0,0 +1,50 @@
+#
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements. See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership. The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License. You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied. See the License for the
+# specific language governing permissions and limitations
+# under the License.
+#
+
+# need enable api
+# https://console.developers.google.com/apis/api/iam.googleapis.com/overview?project=750903720791
+resource "google_service_account" "account" {
Review comment:
Please provide a `description` to communicate the intent of the service account.
##########
File path: playground/terraform/modules/memorystore/main.tf
##########
@@ -0,0 +1,43 @@
+#
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements. See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership. The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License. You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied. See the License for the
+# specific language governing permissions and limitations
+# under the License.
+#
+
+
+data "terraform_remote_state" "remote_state_vpc" {
+ backend = "gcs"
+ config = {
+ bucket = "${var.beam_playground_terraform}"
+ }
+}
+
+
+resource "google_redis_instance" "cache" {
+ provider = google-beta
+ project = "${var.project_id}"
+# region = "${data.terraform_remote_state.remote_state_vpc.outputs.subnet_region}"
+ region = "us-central1"
Review comment:
Can `region` be provided using a variable and that variable default to `us-central1`?
##########
File path: playground/terraform/modules/memorystore/main.tf
##########
@@ -0,0 +1,43 @@
+#
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements. See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership. The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License. You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied. See the License for the
+# specific language governing permissions and limitations
+# under the License.
+#
+
+
+data "terraform_remote_state" "remote_state_vpc" {
+ backend = "gcs"
+ config = {
+ bucket = "${var.beam_playground_terraform}"
+ }
+}
+
+
+resource "google_redis_instance" "cache" {
+ provider = google-beta
+ project = "${var.project_id}"
+# region = "${data.terraform_remote_state.remote_state_vpc.outputs.subnet_region}"
Review comment:
Instead of commenting out, should this be deleted?
##########
File path: playground/terraform/modules/memorystore/variables.tf
##########
@@ -0,0 +1,31 @@
+#
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements. See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership. The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License. You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied. See the License for the
+# specific language governing permissions and limitations
+# under the License.
+#
+
+variable "project_id" {
+ description = "The GCP Project ID where Playground Applications will be created"
+}
+
+variable "redis_version" {
+ description = "The GCP Project ID where Playground Applications will be created"
+ default = "REDIS_6_X"
+}
+
+variable "beam_playground_terraform" {
Review comment:
Should this just be a `local` instead?
--
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: github-unsubscribe@beam.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [beam] ilya-kozyrev commented on a change in pull request #16549: [BEAM-13681][Playground] Refactoring terraform scripts
Posted by GitBox <gi...@apache.org>.
ilya-kozyrev commented on a change in pull request #16549:
URL: https://github.com/apache/beam/pull/16549#discussion_r796696127
##########
File path: playground/terraform/modules/account.tf
##########
@@ -0,0 +1,50 @@
+#
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements. See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership. The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License. You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied. See the License for the
+# specific language governing permissions and limitations
+# under the License.
+#
+
+# need enable api
+# https://console.developers.google.com/apis/api/iam.googleapis.com/overview?project=750903720791
+resource "google_service_account" "account" {
+ project = "${var.project_id}"
+ account_id = "${var.service_account}"
+ display_name = "${var.service_account}"
+}
+
+
+output "playground_service_account_id" {
+ value = "${google_service_account.account.account_id}"
+}
+
+
+resource "google_project_iam_binding" "account_iam_binding" {
+ for_each = toset([
+ "roles/dataflow.admin",
Review comment:
removed this module
--
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: github-unsubscribe@beam.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [beam] ilya-kozyrev commented on a change in pull request #16549: [BEAM-13681][Playground] Refactoring terraform scripts
Posted by GitBox <gi...@apache.org>.
ilya-kozyrev commented on a change in pull request #16549:
URL: https://github.com/apache/beam/pull/16549#discussion_r796697230
##########
File path: playground/terraform/modules/memorystore/main.tf
##########
@@ -0,0 +1,43 @@
+#
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements. See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership. The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License. You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied. See the License for the
+# specific language governing permissions and limitations
+# under the License.
+#
+
+
+data "terraform_remote_state" "remote_state_vpc" {
+ backend = "gcs"
+ config = {
+ bucket = "${var.beam_playground_terraform}"
+ }
+}
+
+
+resource "google_redis_instance" "cache" {
+ provider = google-beta
+ project = "${var.project_id}"
+# region = "${data.terraform_remote_state.remote_state_vpc.outputs.subnet_region}"
+ region = "us-central1"
+ name = "playground-backend-cache"
+ tier = "BASIC"
Review comment:
changed, thanks
--
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: github-unsubscribe@beam.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [beam] KhaninArtur commented on pull request #16549: [BEAM-13681][Playground] Refactoring terraform scripts
Posted by GitBox <gi...@apache.org>.
KhaninArtur commented on pull request #16549:
URL: https://github.com/apache/beam/pull/16549#issuecomment-1021005730
@andreykus do we need to update this PR with the latest master?
--
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: github-unsubscribe@beam.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [beam] ilya-kozyrev commented on a change in pull request #16549: [BEAM-13681][Playground] Refactoring terraform scripts
Posted by GitBox <gi...@apache.org>.
ilya-kozyrev commented on a change in pull request #16549:
URL: https://github.com/apache/beam/pull/16549#discussion_r796700086
##########
File path: playground/terraform/modules/memorystore/main.tf
##########
@@ -0,0 +1,43 @@
+#
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements. See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership. The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License. You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied. See the License for the
+# specific language governing permissions and limitations
+# under the License.
+#
+
+
+data "terraform_remote_state" "remote_state_vpc" {
+ backend = "gcs"
+ config = {
+ bucket = "${var.beam_playground_terraform}"
+ }
+}
+
+
+resource "google_redis_instance" "cache" {
+ provider = google-beta
Review comment:
Artifact registry creation currently available only in beta
--
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: github-unsubscribe@beam.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [beam] damondouglas commented on a change in pull request #16549: [BEAM-13681][Playground] Refactoring terraform scripts
Posted by GitBox <gi...@apache.org>.
damondouglas commented on a change in pull request #16549:
URL: https://github.com/apache/beam/pull/16549#discussion_r809393972
##########
File path: playground/terraform/applications/backend-java/main.tf
##########
@@ -44,15 +44,15 @@ resource "google_app_engine_flexible_app_version" "backend_app" {
}
env_variables = {
- CACHE_TYPE="${var.cache_type}"
- CACHE_ADDRESS="${var.cache_address}:6379"
- NUM_PARALLEL_JOBS=10
- LAUNCH_SITE = "app_engine"
+ CACHE_TYPE = var.cache_type
+ CACHE_ADDRESS = "${var.cache_address}:6379"
Review comment:
Resolved
--
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: github-unsubscribe@beam.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [beam] pabloem commented on pull request #16549: [BEAM-13681][Playground] Refactoring terraform scripts
Posted by GitBox <gi...@apache.org>.
pabloem commented on pull request #16549:
URL: https://github.com/apache/beam/pull/16549#issuecomment-1048069500
I'll try the infra scripts in a bit
--
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: github-unsubscribe@beam.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org