Role
akamai_iam_role
Create, update, or delete roles at the account level. Then use these roles to assign to users and grant them access to objects in a group. To delete a role, use terraform destroy
.
resource "akamai_iam_role" "my_role" {
name = "View Reports Only"
description = "This role will allow you to view all reports."
granted_roles = [
123456,
987654
]
}
data "akamai_iam_grantable_roles" "my_grantable_roles" {
}
resource "akamai_iam_role" "my_role" {
depends_on = [data.akamai_iam_grantable_roles.my_grantable_roles]
name = "View Reports Only"
description = "This role will allow you to view all reports."
granted_roles = [
data.akamai_iam_grantable_roles.my_grantable_roles.grantable_roles[0].granted_role_id,
data.akamai_iam_grantable_roles.my_grantable_roles.grantable_roles[5].granted_role_id
]
}
Arguments
Argument | Required | Description |
---|---|---|
name | ✔ | A name for your new role. |
description | ✔ | A description of the role. |
granted_roles | ✔ | A set of granted role IDs for an account. To list all granted_role_ids , use the akamai_iam_grantable_roles resource. |
Attributes
There is no default standard output. Upon creation, the last line of the process log contains a success message.
Adding an output block returns the role details you provided on create along with the computed type
attribute. This attribute indicates whether it's a standard role provided by Akamai or a custom role for the account.
Updated 4 days ago