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/23 12:38:24 UTC

[incubator-dlab] branch DLAB-1472 created (now 28c4d44)

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

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


      at 28c4d44  [DLAB-1472]: added creation of route table and VPC endpoint

This branch includes the following new commits:

     new 28c4d44  [DLAB-1472]: added creation of route table and VPC 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: [DLAB-1472]: added creation of route table and VPC endpoint

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

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

commit 28c4d44848c36f88bb9543aa745e6abd8ca7197a
Author: Oleh Martushevskyi <Ol...@epam.com>
AuthorDate: Thu Jan 23 14:38:13 2020 +0200

    [DLAB-1472]: added creation of route table and VPC endpoint
---
 .../terraform/aws/endpoint/main/network.tf             | 18 ++++++++++++++++++
 1 file changed, 18 insertions(+)

diff --git a/infrastructure-provisioning/terraform/aws/endpoint/main/network.tf b/infrastructure-provisioning/terraform/aws/endpoint/main/network.tf
index d123b23..566a2a3 100644
--- a/infrastructure-provisioning/terraform/aws/endpoint/main/network.tf
+++ b/infrastructure-provisioning/terraform/aws/endpoint/main/network.tf
@@ -26,6 +26,7 @@ locals {
   additional_tag             = split(":", var.additional_tag)
   endpoint_igw_name          = "${var.service_base_name}-${var.endpoint_id}-igw"
   endpoint_ip_name           = "${var.service_base_name}-${var.endpoint_id}-eip"
+  projects_rt                = "${var.service_base_name}-${var.endpoint_id}-project-rt"
 }
 
 
@@ -137,3 +138,20 @@ resource "aws_eip" "endpoint_eip" {
     "${var.service_base_name}-Tag" = local.endpoint_ip_name
   }
 }
+
+resource "aws_route_table" "projects_route_table" {
+  vpc_id = data.aws_vpc.data_vpc.id
+  tags   = {
+    Name                           = local.projects_rt
+    "${local.additional_tag[0]}"   = local.additional_tag[1]
+    "${var.tag_resource_id}"       = "${var.service_base_name}:${local.projects_rt}"
+    "${var.service_base_name}-Tag" = local.projects_rt
+    "${var.service_base_name}-Tag" = var.service_base_name
+  }
+}
+
+resource "aws_vpc_endpoint" "s3-endpoint" {
+  vpc_id          = data.aws_vpc.data_vpc.id
+  service_name    = "com.amazonaws.${var.region}.s3"
+  route_table_ids = aws_route_table.projects_route_table.id
+}


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