diff --git a/docs/apache-airflow-providers-amazon/img/aws-secrets-manager-gcp.png b/docs/apache-airflow-providers-amazon/img/aws-secrets-manager-gcp.png new file mode 100644 index 000000000000..abaaba79fb21 Binary files /dev/null and b/docs/apache-airflow-providers-amazon/img/aws-secrets-manager-gcp.png differ diff --git a/docs/apache-airflow-providers-amazon/secrets-backends/aws-secrets-manager.rst b/docs/apache-airflow-providers-amazon/secrets-backends/aws-secrets-manager.rst index 4a0b32f96873..320cb87ecb04 100644 --- a/docs/apache-airflow-providers-amazon/secrets-backends/aws-secrets-manager.rst +++ b/docs/apache-airflow-providers-amazon/secrets-backends/aws-secrets-manager.rst @@ -161,10 +161,22 @@ For example, if you want to only lookup connections starting by "m" in AWS Secre Example of storing Google Secrets in AWS Secrets Manager ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -For connecting to a google cloud conn, all the fields must be in the extra field, and their names follow the pattern -``extra_google_cloud_platform__value``. For example: +For connecting to a google cloud connection, all the fields must be in the extra field. For example: + +If you are using the key file: .. code-block:: ini - {'key_path': '/opt/airflow/service_account.json', - 'scope': 'https://www.googleapis.com/auth/devstorage.read_only'} + {"extra": {"key_path": "/opt/airflow/service_account.json", + "scope": "https://www.googleapis.com/auth/devstorage.read_only"}} + +If you are using the key dictionary. + +.. code-block:: ini + + {"extra": {"keyfile_dict": "", + "scope": "https://www.googleapis.com/auth/devstorage.read_only"}} + +Either way you can edit the ``Key/value`` pairs directly on the UI + +.. image:: /img/aws-secrets-manager-gcp.png