Yandex Cloud
Search
Contact UsGet started
  • Blog
  • Pricing
  • Documentation
  • All Services
  • System Status
    • Featured
    • Infrastructure & Network
    • Data Platform
    • Containers
    • Developer tools
    • Serverless
    • Security
    • Monitoring & Resources
    • ML & AI
    • Business tools
  • All Solutions
    • By industry
    • By use case
    • Economics and Pricing
    • Security
    • Technical Support
    • Customer Stories
    • Gateway to Russia
    • Cloud for Startups
    • Education and Science
  • Blog
  • Pricing
  • Documentation
Yandex project
© 2025 Yandex.Cloud LLC
Yandex Identity and Access Management
    • All tutorials
    • Differentiation of access permissions for user groups
      • Overview
      • CLI
      • Terraform
    • Service account with an OS Login profile for VM management via Ansible
  • Secure use of Yandex Cloud
  • Access management
  • Pricing policy
  • Role reference
  • Terraform reference
  • Monitoring metrics
  • Audit Trails events
  • Release notes
  1. Tutorials
  2. Storing a static access key in a Yandex Lockbox secret
  3. Overview

Using a Yandex Lockbox secret to store a static access key

Written by
Yandex Cloud
Updated at May 7, 2025

If you frequently use services with an AWS-compatible API, such as Yandex Object Storage, Yandex Data Streams, or Yandex Message Queue, it is up to you to ensure safe storage of your static access keys.

This tutorial covers a scenario where a Yandex Lockbox secret serves as the static access key storage. In this configuration, the access key value is neither stored locally on the user's computer nor displayed on the screen.

When accessing a resource of an AWS-compatible service (Object Storage), the static access key and its ID will be extracted from the Yandex Lockbox secret into special environment variables, which will be used for request authentication.

This approach will ensure safe storage and use of your key when accessing the services.

You can use the following tools to create an infrastructure:

  • CLI: Use this method to create an infrastructure step-by-step via the CLI.
  • Terraform: Streamline creating and managing your resources using the infrastructure as code (IaC) approach. Download a Terraform configuration example from the GitHub repository and then deploy the infrastructure using the TerraformYandex Cloud provider.

Was the article helpful?

Previous
Differentiation of access permissions for user groups
Next
CLI
Yandex project
© 2025 Yandex.Cloud LLC