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

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


The following commit(s) were added to refs/heads/DATALAB-2969 by this push:
     new ce672d31a [DATALAB-2969]: changed var check
ce672d31a is described below

commit ce672d31a08001a3d1a184b9d103fb2669865271
Author: leonidfrolov <[email protected]>
AuthorDate: Mon Aug 15 14:55:06 2022 +0300

    [DATALAB-2969]: changed var check
---
 infrastructure-provisioning/terraform/aws/endpoint/main/network.tf | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/infrastructure-provisioning/terraform/aws/endpoint/main/network.tf 
b/infrastructure-provisioning/terraform/aws/endpoint/main/network.tf
index 94586e0f0..ab12846ca 100644
--- a/infrastructure-provisioning/terraform/aws/endpoint/main/network.tf
+++ b/infrastructure-provisioning/terraform/aws/endpoint/main/network.tf
@@ -85,7 +85,7 @@ resource "aws_route" "route" {
 
 resource "aws_security_group" "endpoint_sec_group" {
   name        = local.endpoint_sg_name
-  count       = var.sg_ids == [""] ? 1 : 0
+  count       = var.sg_ids == "" ? 1 : 0
   vpc_id      = data.aws_vpc.data_vpc.id
   ingress {
     from_port   = 22
@@ -145,7 +145,7 @@ resource "aws_security_group" "endpoint_sec_group" {
 }
 
 data "aws_security_group" "data_sg" {
-  id = var.sg_ids == [""] ? [aws_security_group.endpoint_sec_group.id] : 
var.sg_ids
+  id = var.sg_ids == "" ? [aws_security_group.endpoint_sec_group.id] : 
var.sg_ids
 }
 
 resource "aws_eip" "endpoint_eip" {


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

Reply via email to