Description of changes: These open source Docker images will be used both externally by our customers willing to experiment with the images in native Docker and internally within an Amazon MWAA setup (which relies on Fargate.) This commit involves multiple small changes to make this possible:
Introduced a /healthcheck.sh script which is used by Fargate to monitor health status. This script currently always return success status (0 code) just to make the integration possible. In the future, we need to:
Improve this script to do some real checks.
Move this script to a better location (scripts shouldn't be placed at the root.)
Supported reading database credentials from a JSON-formatted environment variable, MWAA__DB__CREDENTIALS, containing the username and password. This is needed because Amazon MWAA employs Secrets Manager to pass the credentials safely to the Fargate container in a JSON-formatted object.
During the work on this, I temporarily downgraded the Airflow version to 2.7.2 since this a version we internally support, which should make the testing easier.
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.
Issue #, if available: #31
Description of changes: These open source Docker images will be used both externally by our customers willing to experiment with the images in native Docker and internally within an Amazon MWAA setup (which relies on Fargate.) This commit involves multiple small changes to make this possible:
/healthcheck.sh
script which is used by Fargate to monitor health status. This script currently always return success status (0 code) just to make the integration possible. In the future, we need to:MWAA__DB__CREDENTIALS
, containing the username and password. This is needed because Amazon MWAA employs Secrets Manager to pass the credentials safely to the Fargate container in a JSON-formatted object.During the work on this, I temporarily downgraded the Airflow version to 2.7.2 since this a version we internally support, which should make the testing easier.
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.