|
| 1 | +/* |
| 2 | +Copyright 2025 The Kubernetes Authors. |
| 3 | +
|
| 4 | +Licensed under the Apache License, Version 2.0 (the "License"); |
| 5 | +you may not use this file except in compliance with the License. |
| 6 | +You may obtain a copy of the License at |
| 7 | +
|
| 8 | + http://www.apache.org/licenses/LICENSE-2.0 |
| 9 | +
|
| 10 | +Unless required by applicable law or agreed to in writing, software |
| 11 | +distributed under the License is distributed on an "AS IS" BASIS, |
| 12 | +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 13 | +See the License for the specific language governing permissions and |
| 14 | +limitations under the License. |
| 15 | +*/ |
| 16 | + |
| 17 | +resource "ibm_iam_access_group" "telemetry" { |
| 18 | + name = "telemetry" |
| 19 | + description = "Access group with reader, viewer access to telemetry related services." |
| 20 | +} |
| 21 | + |
| 22 | +resource "ibm_iam_access_group_policy" "telemetry_pvs" { |
| 23 | + access_group_id = ibm_iam_access_group.telemetry.id |
| 24 | + roles = ["Reader", "Viewer"] |
| 25 | + |
| 26 | + resources { |
| 27 | + service = "power-iaas" |
| 28 | + } |
| 29 | +} |
| 30 | + |
| 31 | +resource "ibm_iam_access_group_policy" "telemetry_cos" { |
| 32 | + access_group_id = ibm_iam_access_group.telemetry.id |
| 33 | + roles = ["Reader", "Viewer"] |
| 34 | + |
| 35 | + resources { |
| 36 | + service = "cloud-object-storage" |
| 37 | + } |
| 38 | +} |
| 39 | + |
| 40 | +resource "ibm_iam_access_group_policy" "telemetry_vpc" { |
| 41 | + access_group_id = ibm_iam_access_group.telemetry.id |
| 42 | + roles = ["Reader", "Viewer"] |
| 43 | + |
| 44 | + resources { |
| 45 | + service = "is" |
| 46 | + } |
| 47 | +} |
0 commit comments