sparse-intern-71089
08/08/2020, 8:46 AMbillowy-army-68599
narrow-jackal-57645
08/09/2020, 10:55 PMresource "google_project_iam_custom_role" "custom-role" {
role_id = "myRole"
title = "custom k8s Role"
description = "All permissions required to run K8S"
permissions = [
"container.clusters.get",
"container.deployments.list",
"container.configMaps.get"
]
}
resource "google_project_iam_binding" "custom-role-binding" {
role = google_project_iam_custom_role.custom-role.id
members = [
"serviceAccount:my-account@xxx-test.iam.gserviceaccount.com",
]
}
billowy-army-68599
narrow-jackal-57645
08/10/2020, 7:28 AMnarrow-jackal-57645
08/10/2020, 7:29 AMiam
narrow-jackal-57645
08/10/2020, 7:29 AMprojects
bland-lamp-16797
08/10/2020, 10:03 AMHow does terraform do this? Can you show you terraform codeThis is how I usually search for the API. Althought I don't understand what is the diffrence in docs between urls
https://www.pulumi.com/*docs/reference/pkg*/gcp/projects/iambinding/and
https://www.pulumi.com/*docs/reference/pkg/nodejs/*pulumi/gcp/projects/#IAMBindingI understand that one is general and second is specific to nodejs, but it that would be unified somehow that would be awesome! Just my 2 cents