You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@dlab.apache.org by ad...@apache.org on 2019/10/09 09:12:40 UTC

[incubator-dlab] branch added-bucket created (now 182def4)

This is an automated email from the ASF dual-hosted git repository.

adamsd pushed a change to branch added-bucket
in repository https://gitbox.apache.org/repos/asf/incubator-dlab.git.


      at 182def4  Added bucket for gcp endpoint.

This branch includes the following new commits:

     new 182def4  Added bucket for gcp endpoint.

The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@dlab.apache.org
For additional commands, e-mail: commits-help@dlab.apache.org


[incubator-dlab] 01/01: Added bucket for gcp endpoint.

Posted by ad...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

adamsd pushed a commit to branch added-bucket
in repository https://gitbox.apache.org/repos/asf/incubator-dlab.git

commit 182def4d9c5a3548437d9e39693c3b01ae02a4d4
Author: AdamsDisturber <ad...@gmail.com>
AuthorDate: Wed Oct 9 12:12:22 2019 +0300

    Added bucket for gcp endpoint.
---
 .../terraform/gcp/endpoint/main/instance.tf                  |  7 +++++++
 .../terraform/gcp/endpoint/main/variables.tf                 | 12 ++++++++----
 2 files changed, 15 insertions(+), 4 deletions(-)

diff --git a/infrastructure-provisioning/terraform/gcp/endpoint/main/instance.tf b/infrastructure-provisioning/terraform/gcp/endpoint/main/instance.tf
index cfca293..397b1ec 100644
--- a/infrastructure-provisioning/terraform/gcp/endpoint/main/instance.tf
+++ b/infrastructure-provisioning/terraform/gcp/endpoint/main/instance.tf
@@ -65,3 +65,10 @@ resource "google_compute_address" "static" {
   name = local.endpoint_instance_ip
   count = var.static_ip == "" ? 1 : 0
 }
+
+resource "google_storage_bucket" "image-store" {
+  name          = "${var.service_base_name}-${var.endpoint_id}-shared-bucket"
+  location      = var.bucket_region
+  force_destroy = true
+  project       = var.project_id
+}
diff --git a/infrastructure-provisioning/terraform/gcp/endpoint/main/variables.tf b/infrastructure-provisioning/terraform/gcp/endpoint/main/variables.tf
index 6c00f97..db7806f 100644
--- a/infrastructure-provisioning/terraform/gcp/endpoint/main/variables.tf
+++ b/infrastructure-provisioning/terraform/gcp/endpoint/main/variables.tf
@@ -20,11 +20,11 @@
 # ******************************************************************************
 
 variable "project_id" {
-  default = ""
+  default = "or2-msq-epmc-dlab-t1iylu"
 }
 
 variable "creds_file" {
-  default = ""
+  default = "../../service_account.json"
 }
 
 variable "endpoint_shape" {
@@ -32,11 +32,11 @@ variable "endpoint_shape" {
 }
 
 variable "region" {
-  default = ""
+  default = "us-west1"
 }
 
 variable "zone" {
-  default = ""
+  default = "us-west1-a"
 }
 
 variable "service_base_name" {
@@ -142,3 +142,7 @@ variable "product" {
 variable "static_ip" {
   default = ""
 }
+
+variable "bucket_region" {
+  default = "US" # Allowed US, EU, ASIA
+}
\ No newline at end of file


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@dlab.apache.org
For additional commands, e-mail: commits-help@dlab.apache.org