File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change 11
11
from datetime import datetime
12
12
13
13
import boto3
14
+ from airflow .models import Variable
14
15
from airflow .models .baseoperator import chain
15
16
from airflow .models .param import Param
16
17
from airflow .operators .python import PythonOperator
35
36
# SSM keys for venue-dependent parameters
36
37
UNITY_DAPA_CLIENT_ID = "/unity/shared-services/dapa/client-id"
37
38
UNITY_DAPA_API_URL = "/unity/shared-services/dapa/api-url"
38
- UNITY_OUTPUT_DATA_BUCKET = "/unity/ds/data/bucket/primary-data-bucket"
39
+ UNITY_IDENTIFIER = f"""{ Variable .get ("unity_deployment_name" )} /{ Variable .get ("unity_venue" )} -{ Variable .get ("unity_counter" )} """
40
+ UNITY_OUTPUT_DATA_BUCKET = f"/unity/ds/data/bucket/{ UNITY_IDENTIFIER } /primary-data-bucket"
39
41
40
42
# Resources needed by each Task
41
43
# EC2 r6a.xlarge 4vCPU 32GiB
You can’t perform that action at this time.
0 commit comments