Troubleshooting#
This page covers common AWS permission errors in CU Boulder AWS accounts. Most of these errors occur when a new IAM user or role is created without the required permissions boundary.
If you are looking for general account questions, see the FAQs section.
Failed to create role: not authorized to perform: iam:CreateRole#
This error appears in the AWS Management Console when you create an IAM role without attaching the required permissions boundary.
Solution:
When creating AWS Roles, you must attach the “Customer_Admin_PermissionBoundary” Permission Boundary. See Admin Account Permission Exclusions section.
Unable to create user: not authorized to perform: iam:CreateUser#
This error appears in the AWS Management Console when you create an IAM user without attaching the required permissions boundary.
Solution:
When creating AWS users, attach the Customer_Admin_PermissionBoundary permissions boundary. See Admin Account Permission Exclusions section.
AccessDenied: not authorized to perform: iam:CreateRole | Module Block#
This error occurs when creating an Amazon EKS cluster with the Terraform EKS module from the Terraform Registry.
This is not an AWS or Terraform bug. It happens when CU Boulder AWS customers use the Customer Admin IAM role to create an EKS cluster without passing the permissions boundary into the module.
The first error is raised from the EKS module IAM role. The second error is raised from the EKS managed node group submodule IAM role.
Solution:
Pass the Customer_Admin_PermissionBoundary permissions boundary twice: once on the EKS module and once on each EKS managed node group.
module "eks" {
iam_role_permissions_boundary = "arn:aws:iam::<AWS-account-number>:policy/Customer_Admin_PermissionBoundary"
eks_managed_node_groups = {
example = {
iam_role_permissions_boundary = "arn:aws:iam::<AWS-account-number>:policy/Customer_Admin_PermissionBoundary"
}
}
}
AccessDenied: not authorized to perform: iam:CreateRole | Resource Block#
This error occurs when creating an EKS cluster with an AWS IAM role Terraform resource.
This is not an AWS or Terraform bug. It happens when CU Boulder AWS customers use the Customer Admin IAM role to create an EKS cluster without attaching the permissions boundary to the role resource.
Solution:
Attach the Customer_Admin_PermissionBoundary permissions boundary on the IAM role resource:
resource "aws_iam_role" "example" {
permissions_boundary = "arn:aws:iam::<AWS-account-number>:policy/Customer_Admin_PermissionBoundary"
}