You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@datalab.apache.org by my...@apache.org on 2021/08/02 09:45:30 UTC

[incubator-datalab] branch DATALAB-2409 updated: [DATALAB-2409] - [AWS] SSN configuration script refactored

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

mykolabodnar pushed a commit to branch DATALAB-2409
in repository https://gitbox.apache.org/repos/asf/incubator-datalab.git


The following commit(s) were added to refs/heads/DATALAB-2409 by this push:
     new f5b905b  [DATALAB-2409] - [AWS] SSN configuration script refactored
f5b905b is described below

commit f5b905beb9c923636a9f02865d09d97b47e2ff33
Author: bodnarmykola <bo...@gmail.com>
AuthorDate: Mon Aug 2 12:45:14 2021 +0300

    [DATALAB-2409] - [AWS] SSN configuration script refactored
---
 infrastructure-provisioning/src/general/scripts/aws/ssn_configure.py | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/infrastructure-provisioning/src/general/scripts/aws/ssn_configure.py b/infrastructure-provisioning/src/general/scripts/aws/ssn_configure.py
index 26e0d03..820bc7f 100644
--- a/infrastructure-provisioning/src/general/scripts/aws/ssn_configure.py
+++ b/infrastructure-provisioning/src/general/scripts/aws/ssn_configure.py
@@ -97,6 +97,11 @@ if __name__ == "__main__":
         if os.environ['conf_duo_vpc_enable'] == 'true' and not os.environ['aws_peering_id']:
             ssn_conf['aws_peering_id'] = datalab.meta_lib.get_peering_by_tag(ssn_conf['tag_name'],
                                                                            ssn_conf['service_base_name'])
+        elif os.environ['conf_duo_vpc_enable'] == 'true' and aws_peering_id in os.environ \
+                and os.environ['aws_peering_id'] != '':
+            ssn_conf['aws_peering_id'] = os.environ['aws_peering_id']
+        else:
+            ssn_conf['aws_peering_id'] = None
         if 'aws_subnet_id' in os.environ and os.environ['aws_subnet_id'] != '':
             ssn_conf['aws_subnet_id'] = os.environ['aws_subnet_ids']
         else:

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