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

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


The following commit(s) were added to refs/heads/EPMCDLAB-1186 by this push:
     new 2993b90  corrected sg rules
2993b90 is described below

commit 2993b9081c2edbf15acda5b1135796189478616e
Author: Oleh Martushevskyi <[email protected]>
AuthorDate: Tue Feb 19 12:05:18 2019 +0200

    corrected sg rules
---
 .../src/general/scripts/aws/edge_prepare.py                      | 9 +++++----
 1 file changed, 5 insertions(+), 4 deletions(-)

diff --git 
a/infrastructure-provisioning/src/general/scripts/aws/edge_prepare.py 
b/infrastructure-provisioning/src/general/scripts/aws/edge_prepare.py
index 043788c..e84929c 100644
--- a/infrastructure-provisioning/src/general/scripts/aws/edge_prepare.py
+++ b/infrastructure-provisioning/src/general/scripts/aws/edge_prepare.py
@@ -302,7 +302,7 @@ if __name__ == "__main__":
                 {
                     "PrefixListIds": [],
                     "FromPort": 80,
-                    "IpRanges": [{"CidrIp": 
"{}/32".format(os.environ['local_repository_host'])}],
+                    "IpRanges": [{"CidrIp": 
"{}/32".format(os.environ['local_repository_nginx_proxy_host'])}],
                     "ToPort": 80, "IpProtocol": "tcp", "UserIdGroupPairs": []
                 })
             edge_sg_egress.append(
@@ -315,9 +315,10 @@ if __name__ == "__main__":
             edge_sg_egress.append(
                 {
                     "PrefixListIds": [],
-                    "FromPort": 3128,
-                    "IpRanges": [{"CidrIp": 
"{}/32".format(os.environ['local_repository_host'])}],
-                    "ToPort": 3128, "IpProtocol": "tcp", "UserIdGroupPairs": []
+                    "FromPort": 
int(os.environ['local_repository_parent_proxy_port']),
+                    "IpRanges": [{"CidrIp": 
"{}/32".format(os.environ['local_repository_parent_proxy_host'])}],
+                    "ToPort": 
int(os.environ['local_repository_parent_proxy_port']),
+                    "IpProtocol": "tcp", "UserIdGroupPairs": []
                 })
         params = "--name {} --vpc_id {} --security_group_rules '{}' 
--infra_tag_name {} --infra_tag_value {} \
             --egress '{}' --force {} --nb_sg_name {} --resource {}".\


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to