You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@dlab.apache.org by om...@apache.org on 2020/01/27 13:56:32 UTC

[incubator-dlab] branch DLAB-1467 created (now c32f80d)

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

omartushevskyi pushed a change to branch DLAB-1467
in repository https://gitbox.apache.org/repos/asf/incubator-dlab.git.


      at c32f80d  [DLAB-1467]: Added terraform scripts for endpoint deployment on Azure

This branch includes the following new commits:

     new c32f80d  [DLAB-1467]: Added terraform scripts for endpoint deployment on Azure

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: [DLAB-1467]: Added terraform scripts for endpoint deployment on Azure

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

omartushevskyi pushed a commit to branch DLAB-1467
in repository https://gitbox.apache.org/repos/asf/incubator-dlab.git

commit c32f80d5b0a63d4f4255df0157c0232dace0e833
Author: Oleh Martushevskyi <Ol...@epam.com>
AuthorDate: Mon Jan 27 15:56:19 2020 +0200

    [DLAB-1467]: Added terraform scripts for endpoint deployment on Azure
---
 .../terraform/azure/endpoint/main/main.tf          | 31 +++++++++++++++++++
 .../terraform/azure/endpoint/main/outputs.tf       | 36 ++++++++++++++++++++++
 .../terraform/azure/endpoint/main/variables.tf     | 22 +++++++++++++
 3 files changed, 89 insertions(+)

diff --git a/infrastructure-provisioning/terraform/azure/endpoint/main/main.tf b/infrastructure-provisioning/terraform/azure/endpoint/main/main.tf
new file mode 100644
index 0000000..fd6c252
--- /dev/null
+++ b/infrastructure-provisioning/terraform/azure/endpoint/main/main.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.
+#
+# ******************************************************************************
+
+locals {
+  json_data = jsondecode(file(var.auth_file_path))
+}
+
+provider "azurerm" {
+  subscription_id = local.json_data.subscriptionId
+  client_id       = local.json_data.clientId
+  client_secret   = local.json_data.clientSecret
+  tenant_id       = local.json_data.tenantId
+}
\ No newline at end of file
diff --git a/infrastructure-provisioning/terraform/azure/endpoint/main/outputs.tf b/infrastructure-provisioning/terraform/azure/endpoint/main/outputs.tf
new file mode 100644
index 0000000..4586fd2
--- /dev/null
+++ b/infrastructure-provisioning/terraform/azure/endpoint/main/outputs.tf
@@ -0,0 +1,36 @@
+# *****************************************************************************
+#
+# 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.
+#
+# ******************************************************************************
+
+output "endpoint_eip_address" {
+  value = aws_eip.endpoint_eip.public_ip
+}
+
+output "subnet_id" {
+  value = data.aws_subnet.data_subnet.id
+}
+
+output "vpc_id" {
+  value = data.aws_vpc.data_vpc.id
+}
+
+output "ssn_k8s_sg_id" {
+  value = aws_security_group.endpoint_sec_group.id
+}
\ No newline at end of file
diff --git a/infrastructure-provisioning/terraform/azure/endpoint/main/variables.tf b/infrastructure-provisioning/terraform/azure/endpoint/main/variables.tf
new file mode 100644
index 0000000..0d51b0e
--- /dev/null
+++ b/infrastructure-provisioning/terraform/azure/endpoint/main/variables.tf
@@ -0,0 +1,22 @@
+# *****************************************************************************
+#
+# 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 "auth_file_path" {}
\ 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