can we use older version of airbyte cloud ?
# ask-ai
a
can we use older version of airbyte cloud ?
k
No, you cannot use an older version of Airbyte Cloud. Airbyte Cloud users always run on the newest Airbyte version automatically, and there is no option to select or roll back to a previous version. This approach ensures that all users benefit from the latest features, security updates, and connector improvements without manual intervention. The documentation specifically states that this only applies to users deploying the self-managed version, not Airbyte Cloud users [Upgrading Airbyte](https://docs.airbyte.com/platform/operator-guides/upgrading-airbyte).
a
can we use reference of docker image in the manifest while creating new connector? @kapa.ai
k
A message from kapa.ai
Yes, you can use a reference to a Docker image when creating a new connector in Airbyte. When adding a custom Docker-based connector, you are required to provide the full Docker image name and tag. This allows Airbyte to pull the connector image from your specified registry. This process is supported in both the UI and via the API for custom connectors [Uploading Docker-based custom connectors](https://docs.airbyte.com/platform/operator-guides/using-custom-connectors#4-use-your-custom-docker-connector-in-airbyte). Additionally, Airbyte's public APIs and Terraform provider allow you to create and update custom connectors using a Docker image reference. However, you cannot use these endpoints to modify Airbyte's public connector definitions—only custom connectors can be created or updated this way [Create custom connectors from YAML or Docker images using the API and Terraform](https://docs.airbyte.com/release_notes/v-1.6#create-custom-connectors-from-yaml-or-docker-images-using-the-api-and-terraform).
a
@kapa.ai how can i compute the time in the yaml file while building connector, for example i want the current time when sending the request
k
A message from kapa.ai
You can compute the current time in your YAML file using Jinja2 macros provided by Airbyte. For example, to get the current UTC date and time, you can use the
now_utc()
macro:
Copy code
yaml some_field: "{{ now_utc() }}"
This will evaluate to the current date and time in UTC, e.g.,
'2021-09-01 00:00:00+00:00'
. If you only need the date, you can format it like this:
Copy code
yaml some_field: "{{ now_utc().strftime('%Y-%m-%d') }}"
If you want just the current date (without time), you can also use the
today_utc()
macro:
Copy code
yaml some_field: "{{ today_utc() }}"
or with formatting:
Copy code
yaml some_field: "{{ today_utc().strftime('%Y/%m/%d') }}"
You can use these expressions in any field that supports string interpolation, such as request parameters, headers, or body fields in your connector YAML definition [see reference](https://docs.airbyte.com/platform/connector-development/config-based/understanding-the-yaml-file/reference#/variables/stream_slice) [see today_utc macro](https://docs.airbyte.com/platform/connector-development/config-based/understanding-the-yaml-file/reference#/macros/today_utc).
a
@kapa.ai how would it work if i need to compute : jakarta_time = datetime.now(ZoneInfo("Asia/Jakarta")) timestamp_str = jakarta_time.strftime('%d/%m/%Y %H:%M:%S')
k
A message from kapa.ai
I'm sorry, but the knowledge sources do not provide information about directly computing a timezone-aware datetime (such as Jakarta time) using
ZoneInfo
or similar functionality in Airbyte's YAML connector definitions. The documented macros like
now_utc()
and
today_utc()
only return the current time or date in UTC, and there is no mention of specifying a different timezone or using Python's
ZoneInfo
in the YAML interpolation context [Interpolation macros](https://docs.airbyte.com/platform/connector-development/config-based/understanding-the-yaml-file/reference#/variables/stream_slice). You can format the UTC time as needed, but converting to another timezone like "Asia/Jakarta" is not covered in the available documentation. If you need this feature, you may need to handle timezone conversion outside of the YAML macros or request this as a feature enhancement.