name

Required
Type string
Module iam-role

The name of the IAM role. Must be unique within your AWS account. **Naming conventions:** - Use lowercase with hyphens: `my-service-role` - Include purpose: `lambda-processor-role`, `ecs-task-role` - Include environment for clarity: `prod-api-gateway-role` **Constraints:** - Maximum 64 characters - Alphanumeric characters, plus `+=,.@-_` - Cannot begin with `aws-`

Naming Conventions

IAM role names must be unique within your AWS account. Maximum 64 characters.

Best Practices

  • Use descriptive names indicating the role’s purpose
  • Include the service type (e.g., lambda, ec2)
  • Follow organizational naming conventions

Full Module Example

module "iam_role" {
  source  = "registry.patterneddesigns.ca/patterneddesigns/iam-role/aws"
  version = "0.1.0"

  # name
  name = "..."

  # Other required inputs
}