mirtov-alexey ddefab91d6 add iam module(update) 3 년 전
..
dev e2287a9b9a add iam module 3 년 전
iam_mgmt ddefab91d6 add iam module(update) 3 년 전
modules ddefab91d6 add iam module(update) 3 년 전
prod e2287a9b9a add iam module 3 년 전
README.md e2287a9b9a add iam module 3 년 전

README.md

Multi-environment infrastructure with centralized RBAC management

Use iam_mgmt folder to set roles.

Use data.data.terraform_remote_state to use newly created service accounts in dev/prod folders.

Remember to change your folder-IDs in all environment folders.

Configure Terraform for Yandex.Cloud

  • Install YC cli
  • Add environment variables for terraform auth in Yandex.Cloud
export YC_TOKEN=$(yc iam create-token)
export YC_CLOUD_ID=$(yc config get cloud-id)
export YC_FOLDER_ID=$(yc config get folder-id)

Quick Start

To run this example you need to execute from all folders:

terraform init
terraform plan
terraform apply