iam

IAM

GeneralAWS
General

General information about the service.

Description

AWS Identity and Access Management enables you to manage access to AWS services and resources securely.

Service Namespace

AWS::IAM::Role

ARN Pattern

arn:aws:iam::{account}:role/{role-name}

References

Chat

Powered by AI

Talk to this service to learn more about it.

Suggested questions:

Naming

The conventions, rules, and restrictions for naming this service.

Naming Convention

iam-

Length

1-64

Valid Characters

Alphanumeric, plus, equals, comma, period, at, underscore, hyphen

Scope

global

Code

Deploy your infrastructure as code using your preferred tooling.

Official DocumentationTerraform
terraform
1resource "aws_iam_role" "main" {
2 name = "iam-role-${var.environment}"
3
4 assume_role_policy = jsonencode({
5 Version = "2012-10-17"
6 Statement = [{
7 Action = "sts:AssumeRole"
8 Effect = "Allow"
9 Principal = {
10 Service = "ec2.amazonaws.com"
11 }
12 }]
13 })
14}
Utilities

Utilities to support app deployment or configuration.