Skip to content

Commit ef18ae0

Browse files
committed
change config to map new logging block
1 parent 1a55fb9 commit ef18ae0

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

files/.env.airflow

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,10 @@ AIRFLOW__CORE__FERNET_KEY=${FERNET_KEY}
55
AIRFLOW__CORE__LOAD_EXAMPLES=${LOAD_EXAMPLE_DAGS}
66
AIRFLOW__CORE__LOAD_DEFAULTS=${LOAD_DEFAULT_CONNS}
77
AIRFLOW__CORE__SQL_ALCHEMY_CONN=postgresql+psycopg2://${DB_USERNAME}:${DB_PASSWORD}@${DB_ENDPOINT}/${DB_DBNAME}
8-
AIRFLOW__CORE__REMOTE_BASE_LOG_FOLDER=s3://${S3_BUCKET}
9-
AIRFLOW__CORE__REMOTE_LOGGING=True
8+
9+
AIRFLOW__LOGGING__REMOTE_BASE_LOG_FOLDER=s3://${S3_BUCKET}
10+
AIRFLOW__LOGGING__REMOTE_LOGGING=True
11+
1012
AIRFLOW__WEBSERVER__RBAC=${RBAC}
1113
AIRFLOW__WEBSERVER__WEB_SERVER_PORT=${WEBSERVER_PORT}
1214
AIRFLOW__CELERY__BROKER_URL=sqs://

files/cloud-init.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ function install_python_and_python_packages() {
5252
fi
5353

5454
pip3 install -U \
55-
apache-airflow[celery,postgres,s3,crypto,jdbc,google_auth,redis,slack,ssh,sentry]==1.10.9 \
55+
apache-airflow[celery,postgres,s3,crypto,jdbc,google_auth,redis,slack,ssh,sentry]==1.10.11 \
5656
boto3 \
5757
celery[sqs]==4.3.0 \
5858
cython \
@@ -105,7 +105,7 @@ EOL
105105
fi
106106

107107
if [ "$AIRFLOW__WEBSERVER__RBAC" = true ]; then
108-
airflow create_user -r Admin -u "${ADMIN_USERNAME}" -f "${ADMIN_NAME}" -l "${ADMIN_LASTNAME}" -e "${ADMIN_EMAIL}" -p "${ADMIN_PASSWORD}"
108+
airflow users --create -r Admin -u "${ADMIN_USERNAME}" -f "${ADMIN_NAME}" -l "${ADMIN_LASTNAME}" -e "${ADMIN_EMAIL}" -p "${ADMIN_PASSWORD}"
109109
fi
110110

111111
sudo chown -R ubuntu: /usr/local/airflow

0 commit comments

Comments
 (0)