You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/guides/dbt_docs/generating-docs.rst
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -139,7 +139,7 @@ Requirements specific to Kubernetes:
139
139
140
140
- The container image must include your dbt project files.
141
141
- The container image or mounted files must include a ``profiles.yml`` file, because Kubernetes execution mode does not support :ref:`use-profile-mapping`.
142
-
- The container image must have the AWS CLI available because Cosmos uploads the generated docs with ``aws s3 sync``.
142
+
- The container image must have ``boto3`` available because Cosmos uploads the generated docs from inside the Pod with a small Python uploader.
143
143
- The Pod still needs the database credentials and any other secrets required to run ``dbt docs generate``.
144
144
145
145
The following example extends the Kubernetes example DAG and uploads the generated docs to S3:
@@ -149,7 +149,7 @@ The following example extends the Kubernetes example DAG and uploads the generat
The ``connection_id`` is resolved from Airflow and translated into AWS environment variables that are injected into the Pod before ``aws s3 sync`` runs.
152
+
The ``connection_id`` is resolved from Airflow with ``AwsBaseHook`` and translated into AWS environment variables that are injected into the Pod before the ``boto3`` uploader runs.
153
153
154
154
.. note::
155
155
This Kubernetes integration currently supports S3 only. If you need another storage backend, use one of the local operators or extend Cosmos with another Kubernetes docs operator.
Copy file name to clipboardExpand all lines: docs/guides/run_dbt/container/kubernetes.rst
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -38,7 +38,7 @@ At the moment, the user is expected to add to the Docker image both:
38
38
- The dbt Profile, which contains the information for dbt to access the database while parsing the project from Apache Airflow nodes
39
39
- Handle secrets
40
40
41
-
If you plan to generate dbt docs and upload them to S3 from Kubernetes, the image also needs the AWS CLI because Cosmos performs the upload from inside the Pod.
41
+
If you plan to generate dbt docs and upload them to S3 from Kubernetes, the Pod image must have ``boto3`` available, either installed directly or provided by packages such as ``apache-airflow-providers-amazon``.
42
42
43
43
Additional KubernetesPodOperator parameters can be added to the ``operator_args`` parameter of the ``DbtKubernetesOperator``.
0 commit comments