iam
IAM
GeneralAWS
General
General information about the service.
Chat
Powered by AITalk 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 Documentation
terraform
1resource "aws_iam_role" "main" {2 name = "iam-role-${var.environment}"34 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.