Taragolis commented on code in PR #35479:
URL: https://github.com/apache/airflow/pull/35479#discussion_r1383579316


##########
docs/apache-airflow-providers-amazon/connections/aws.rst:
##########
@@ -240,6 +240,17 @@ With a AWS IAM key pair
       "password": "wJalrXUtnFEMI/K7MDENG/bPxRfiCYEXAMPLEKEY"
     }'
 
+Reference as Jinja templated fields
+^^^^^^^^^^^^^^^^^^^^^^^
+
+To render the AWS credentials using Jinja template reference 
``AWS_ACCESS_KEY_ID`` as ``login`` and ``AWS_SECRET_ACCESS_KEY`` as ``password``
+
+  .. code-block:: bash
+
+    echo "AWS_ACCESS_KEY_ID={{ conn.connection_id.login }}"
+    echo "AWS_SECRET_ACCESS_KEY={{ conn.connection_id.password }}"

Review Comment:
   Yeah, in the UI it have this name because it relabelling in the Hook
   
   
https://github.com/apache/airflow/blob/5f4d2b5dee2e98a05124865c6fa855bc26d0af26/airflow/providers/amazon/aws/hooks/base_aws.py#L820-L823
   
   All connections regardless of the conn_type have the same structure because 
you always retrieve `airflow.models.connection.Connection` object
   
   
https://github.com/apache/airflow/blob/f24e5199c793c48a2f8cf5fe6bb2699cd8283196/airflow/models/connection.py#L63-L84



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to