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 2019/08/12 09:36:49 UTC

[incubator-dlab] branch DLAB-terraform updated: fixed issue with route table

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

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


The following commit(s) were added to refs/heads/DLAB-terraform by this push:
     new 67a41b3  fixed issue with route table
67a41b3 is described below

commit 67a41b35b20c0099f8494eb88ce7e678e3ac2620
Author: Oleh Martushevskyi <Ol...@epam.com>
AuthorDate: Mon Aug 12 12:36:40 2019 +0300

    fixed issue with route table
---
 .../terraform/aws/ssn-k8s/main/vpc.tf                   | 17 +++++++++++++++++
 1 file changed, 17 insertions(+)

diff --git a/infrastructure-provisioning/terraform/aws/ssn-k8s/main/vpc.tf b/infrastructure-provisioning/terraform/aws/ssn-k8s/main/vpc.tf
index 3c0908e..a8d4e71 100644
--- a/infrastructure-provisioning/terraform/aws/ssn-k8s/main/vpc.tf
+++ b/infrastructure-provisioning/terraform/aws/ssn-k8s/main/vpc.tf
@@ -107,6 +107,23 @@ resource "aws_eip" "k8s-endpoint-eip" {
   }
 }
 
+resource "aws_route_table" "ssn-k8s-users-route-table" {
+  vpc_id = data.aws_vpc.ssn_k8s_vpc_data.id
+  tags = {
+    "${var.service_base_name}-Tag" = var.service_base_name
+  }
+}
+
+resource "aws_vpc_endpoint" "ssn-k8s-users-s3-endpoint" {
+  vpc_id       = data.aws_vpc.ssn_k8s_vpc_data.id
+  service_name = "com.amazonaws.${var.region}.s3"
+}
+
+resource "aws_vpc_endpoint_route_table_association" "ssn-k8s-users-s3-route" {
+  route_table_id  = aws_route_table.ssn-k8s-users-route-table.id
+  vpc_endpoint_id = aws_vpc_endpoint.ssn-k8s-users-s3-endpoint.id
+}
+
 //resource "aws_eip" "k8s-lb-eip-a" {
 //  vpc      = true
 //  tags = {


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