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

ArgumentRequiredDescription
nameA name for your new role.
descriptionA description of the role.
granted_rolesA 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.


Did this page help you?