Yandex Cloud
Documentation
PresentationContact UsTry it for free
© 2026 Direct Cursus Technology L.L.C.
Terraform in Yandex Cloud
  • Getting started
  • Setting up Yandex Cloud Terraform provider authentication
  • Solution library
    • Overview
    • Release notes
          • iam_oauth_client
          • iam_policy
          • iam_role
          • iam_service_account
          • iam_service_agent
          • iam_user
          • iam_workload_identity_federated_credential
          • iam_workload_identity_oidc_federation

In this article:

  • Example usage
  • Arguments & Attributes Reference
  1. Terraform reference
  2. Resources
  3. Identity and Access Management
  4. Data Sources
  5. iam_service_account

yandex_iam_service_account (DataSource)

Written by
Yandex Cloud
Updated at February 9, 2026
View as Markdown
  • Example usage
  • Arguments & Attributes Reference

Get information about a Yandex IAM service account. For more information about accounts, see Yandex Cloud IAM accounts.

Warning

One of service_account_id or name should be specified.

Example usageExample usage

//
// Get information about existing IAM Service Account (SA).
//
data "yandex_iam_service_account" "builder" {
  service_account_id = "aje5a**********qspd3"
}

data "yandex_iam_service_account" "deployer" {
  name = "sa_name"
}

Arguments & Attributes ReferenceArguments & Attributes Reference

  • created_at (Read-Only) (String). The creation timestamp of the resource.
  • description (Read-Only) (String). The resource description.
  • folder_id (String). The folder identifier that resource belongs to. If it is not provided, the default provider folder-id is used.
  • id (String).
  • name (String). The resource name.
  • service_account_id (String). ID of a specific service account.

Was the article helpful?

Previous
iam_role
Next
iam_service_agent
© 2026 Direct Cursus Technology L.L.C.