Singer tap for YandexCloud, built with the Meltano Singer SDK.
Project description
tap-yandex-cloud
tap-yandex-cloud is a Singer tap for YandexCloud.
Built with the Meltano Tap SDK for Singer Taps.
Configuration
Accepted Config Options
A full list of supported settings and capabilities for this tap is available by running:
tap-yandex-cloud --about
Configure using environment variables
This Singer tap will automatically import any environment variables within the working directory's
.env if the --config=ENV is provided, such that config values will be considered if a matching
environment variable is set either in the terminal context or in the .env file.
Source Authentication and Authorization
tap-yandex-cloud supports two authentication methods:
iam_token — a short-lived IAM token.
service_account_key_json — a Yandex Cloud service account authorized key JSON.
For local development and quick checks, iam_token is the simplest option:
export TAP_YANDEX_CLOUD_IAM_TOKEN="$(yc iam create-token)"
IAM tokens are short-lived and are valid for up to 12 hours, so this method is not recommended for unattended production runs.
For production, prefer service_account_key_json. The tap uses the service account authorized key to generate IAM tokens automatically during execution. This avoids manually rotating iam_token before every scheduled run.
Example:
export TAP_YANDEX_CLOUD_SERVICE_ACCOUNT_KEY_JSON='{"id":"...","service_account_id":"...","created_at":"...","key_algorithm":"RSA_2048","public_key":"...","private_key":"..."}'
The service account must have enough permissions to read billing usage data for the configured billing account. In Yandex Cloud, IAM permissions on the service account itself are not enough. You also need to grant the service account access to the billing account in the Yandex Cloud Billing section.
Minimal required tap settings:
export TAP_YANDEX_CLOUD_BILLING_ACCOUNT_ID="your-billing-account-id"
export TAP_YANDEX_CLOUD_START_DATE="2025-01-01T00:00:00Z"
export TAP_YANDEX_CLOUD_AGGREGATION_PERIOD="DAY"
export TAP_YANDEX_CLOUD_API_ENDPOINT="billing.api.cloud.yandex.net:443"
Then provide either:
export TAP_YANDEX_CLOUD_IAM_TOKEN="$(yc iam create-token)"
or:
export TAP_YANDEX_CLOUD_SERVICE_ACCOUNT_KEY_JSON='...'
Usage
You can easily run tap-yandex-cloud by itself or in a pipeline using Meltano.
Executing the Tap Directly
tap-yandex-cloud --version
tap-yandex-cloud --help
tap-yandex-cloud --config CONFIG --discover > ./catalog.json
Developer Resources
Follow these instructions to contribute to this project.
Initialize your Development Environment
Prerequisites:
- Python 3.12+
- uv
uv sync
Create and Run Tests
Create tests within the tests subfolder and
then run:
uv run pytest
You can also test the tap-yandex-cloud CLI interface directly using uv run:
uv run tap-yandex-cloud --help
Testing with Meltano
Note: This tap will work in any Singer environment and does not require Meltano. Examples here are for convenience and to streamline end-to-end orchestration scenarios.
Use Meltano to run an EL pipeline:
# Install meltano
uv tool install meltano
# Test invocation
meltano invoke tap-yandex-cloud --version
# Run a test EL pipeline
meltano run tap-yandex-cloud target-jsonl
SDK Dev Guide
See the dev guide for more instructions on how to use the SDK to develop your own taps and targets.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file tap_yandex_cloud-0.9.0.tar.gz.
File metadata
- Download URL: tap_yandex_cloud-0.9.0.tar.gz
- Upload date:
- Size: 105.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
03f8702b3b2e986fde99739c1cbba990917f7aca2644b4369b822b1c55d5cb9c
|
|
| MD5 |
cd0b45963be1889cec74f724ba2c2d47
|
|
| BLAKE2b-256 |
918adab54e9ae7a01b0c2c98a47cb6c96bde6592aa09da07a21fe6bff6d9f885
|
Provenance
The following attestation bundles were made for tap_yandex_cloud-0.9.0.tar.gz:
Publisher:
release.yml on data7m/tap-yandex-cloud
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
tap_yandex_cloud-0.9.0.tar.gz -
Subject digest:
03f8702b3b2e986fde99739c1cbba990917f7aca2644b4369b822b1c55d5cb9c - Sigstore transparency entry: 1672160564
- Sigstore integration time:
-
Permalink:
data7m/tap-yandex-cloud@3029d58ab4d901d60122bc2657107f9aea9e26ba -
Branch / Tag:
refs/tags/v0.9.0 - Owner: https://github.com/data7m
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@3029d58ab4d901d60122bc2657107f9aea9e26ba -
Trigger Event:
push
-
Statement type:
File details
Details for the file tap_yandex_cloud-0.9.0-py3-none-any.whl.
File metadata
- Download URL: tap_yandex_cloud-0.9.0-py3-none-any.whl
- Upload date:
- Size: 9.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
51757e7a319ed79630d74775a8c25cc8f2c973e679237d1cf6a44f996ba3c670
|
|
| MD5 |
1197bfda2bb83a833d0f505fa3889c0c
|
|
| BLAKE2b-256 |
bb4fe0666fbd0d6de04d2999208d4138b6ae009a6efaf94a8ef62ee915804a85
|
Provenance
The following attestation bundles were made for tap_yandex_cloud-0.9.0-py3-none-any.whl:
Publisher:
release.yml on data7m/tap-yandex-cloud
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
tap_yandex_cloud-0.9.0-py3-none-any.whl -
Subject digest:
51757e7a319ed79630d74775a8c25cc8f2c973e679237d1cf6a44f996ba3c670 - Sigstore transparency entry: 1672160575
- Sigstore integration time:
-
Permalink:
data7m/tap-yandex-cloud@3029d58ab4d901d60122bc2657107f9aea9e26ba -
Branch / Tag:
refs/tags/v0.9.0 - Owner: https://github.com/data7m
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@3029d58ab4d901d60122bc2657107f9aea9e26ba -
Trigger Event:
push
-
Statement type: