Yandex Cloud
Search
Contact UsGet started
  • Pricing
  • Customer Stories
  • Documentation
  • Blog
  • All Services
  • System Status
    • Featured
    • Infrastructure & Network
    • Data Platform
    • Containers
    • Developer tools
    • Serverless
    • Security
    • Monitoring & Resources
    • AI for business
    • Business tools
  • All Solutions
    • By industry
    • By use case
    • Economics and Pricing
    • Security
    • Technical Support
    • Start testing with double trial credits
    • Cloud credits to scale your IT product
    • Gateway to Russia
    • Cloud for Startups
    • Center for Technologies and Society
    • Yandex Cloud Partner program
  • Pricing
  • Customer Stories
  • Documentation
  • Blog
© 2025 Direct Cursus Technology L.L.C.
Terraform in Yandex Cloud
  • Getting started
  • Solution library
    • Overview
    • Release notes
          • resourcemanager_cloud
          • resourcemanager_cloud_iam_binding
          • resourcemanager_cloud_iam_member
          • resourcemanager_folder
          • resourcemanager_folder_iam_binding
          • resourcemanager_folder_iam_member
          • resourcemanager_folder_iam_policy

In this article:

  • Example usage
  • Schema
  • Required
  • Optional
  • Read-Only
  • Nested Schema for timeouts
  • Import
  1. Terraform reference
  2. Resources
  3. Resource Manager
  4. Resources
  5. resourcemanager_folder_iam_policy

yandex_resourcemanager_folder_iam_policy (Resource)

Written by
Yandex Cloud
Updated at August 7, 2025
  • Example usage
  • Schema
    • Required
    • Optional
    • Read-Only
    • Nested Schema for timeouts
  • Import

Allows creation and management of the IAM policy for an existing Yandex Resource Manager folder.

Example usageExample usage

//
// Create a new IAM Policy for existing Folder.
//
data "yandex_resourcemanager_folder" "project1" {
  folder_id = "my_folder_id"
}

data "yandex_iam_policy" "admin" {
  binding {
    role = "editor"

    members = [
      "userAccount:some_user_id",
    ]
  }
}

resource "yandex_resourcemanager_folder_iam_policy" "folder_admin_policy" {
  folder_id   = data.yandex_folder.project1.id
  policy_data = data.yandex_iam_policy.admin.policy_data
}

SchemaSchema

RequiredRequired

  • folder_id (String) The ID of the folder to attach a policy to.
  • policy_data (String) Required only by yandex_iam_service_account_iam_policy. The policy data generated by a yandex_iam_policy data source.

OptionalOptional

  • timeouts (Block, Optional) (see below for nested schema)

Read-OnlyRead-Only

  • id (String) The ID of this resource.

Nested Schema for Nested Schema for timeouts

Optional:

  • default (String) A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).

ImportImport

The resource can be imported by using their resource ID. For getting the resource ID you can use Yandex Cloud Web Console or YC CLI.

# terraform import yandex_resourcemanager_folder_iam_policy.<resource Name> <resource Id>
terraform import yandex_resourcemanager_folder_iam_policy.folder_admin_policy ...

Was the article helpful?

Previous
resourcemanager_folder_iam_member
Next
function
© 2025 Direct Cursus Technology L.L.C.