mirror of
https://github.com/devitq/yandexcloud-k3s.git
synced 2026-09-21 04:40:34 +00:00
init: initial commit
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
resource "yandex_iam_service_account" "sa" {
|
||||
name = "terraform-provider"
|
||||
description = "Service account for Terraform"
|
||||
}
|
||||
|
||||
resource "yandex_resourcemanager_folder_iam_member" "sa_admin" {
|
||||
folder_id = var.folder_id
|
||||
role = "admin"
|
||||
member = "serviceAccount:${yandex_iam_service_account.sa.id}"
|
||||
}
|
||||
|
||||
resource "yandex_iam_service_account_key" "sa_key" {
|
||||
service_account_id = yandex_iam_service_account.sa.id
|
||||
description = "Key for Terraform"
|
||||
}
|
||||
Reference in New Issue
Block a user