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

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


The following commit(s) were added to refs/heads/develop by this push:
     new f477ed485 [DATALAB-994]: Added conveying custom_tag for data_engines
     new 5dd0bd820 Merge pull request #1726 from OleksandrRepnikov/DATALAB-994
f477ed485 is described below

commit f477ed4854d90031d2000a4a03e8fb8d039f3e21
Author: orepnikov <[email protected]>
AuthorDate: Tue Sep 13 11:21:40 2022 +0300

    [DATALAB-994]: Added conveying custom_tag for data_engines
---
 .../src/general/scripts/aws/dataengine-service_create.py             | 5 +++++
 1 file changed, 5 insertions(+)

diff --git 
a/infrastructure-provisioning/src/general/scripts/aws/dataengine-service_create.py
 
b/infrastructure-provisioning/src/general/scripts/aws/dataengine-service_create.py
index e88010ff4..ed31bf513 100644
--- 
a/infrastructure-provisioning/src/general/scripts/aws/dataengine-service_create.py
+++ 
b/infrastructure-provisioning/src/general/scripts/aws/dataengine-service_create.py
@@ -76,6 +76,11 @@ parser.add_argument('--service_base_name', type=str, 
default='')
 parser.add_argument('--additional_emr_sg', type=str, default='')
 args = parser.parse_args()
 
+try:
+    os.environ['conf_additional_tags'] = os.environ['conf_additional_tags'] + 
';project_tag:{0};endpoint_tag:{1};'.format(os.environ['project_name'], 
os.environ['endpoint_name'])
+except KeyError:
+    os.environ['conf_additional_tags'] = 
'project_tag:{0};endpoint_tag:{1}'.format(os.environ['project_name'], 
os.environ['endpoint_name'])
+
 if args.region == 'us-east-1':
     endpoint_url = 'https://s3.amazonaws.com'
 elif args.region == 'cn-north-1':


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

Reply via email to