Connecting to a Yandex Object Storage bucket with a bucket policy
Written by
Updated at September 12, 2025
In Yandex Managed Service for Apache Airflow™, you can work with a Yandex Object Storage bucket with bucket policies configured. You access the bucket from a separate DNS zone through an internal load balancer that distributes traffic across NAT instances. This connection is outlined below. An Apache Airflow™ cluster will be used in place of the test-s3-vm VM.
Getting started
- Create a network infrastructure to access the Object Storage bucket as shown in the picture above. Learn how to create such an infrastructure in this tutorial.
- Test the new infrastructure.
- To connect to the bucket you created via Apache Airflow™, edit the bucket access policy. To do this, in the
Actionparameter , specify operations allowed for Apache Airflow™:"s3:GetObject, s3:ListBucket". After that, apply the changes using theterraform applycommand.
Prepare the Apache Airflow™ cluster
- Create a service account named
my-accountwith thevpc.userandmanaged-airflow.integrationProviderroles. - Grant the
READpermission for the bucket you created earlier tomy-account. - Create an Apache Airflow™ cluster and specify
my-accountin it.
Test the connection
To test the connection to the Object Storage bucket, upload the DAG file to the bucket The DAG should appear in the Apache Airflow™ web interface.