FEATURES PRICING ABOUT DOCS LOGIN

aws_iam_role

Provides an IAM role.

Example Usage

resource "aws_iam_role" "test_role" {
    name = "test_role"
    assume_role_policy = <<EOF
{
  "Version": "2012-10-17",
  "Statement": [
    {
      "Action": "sts:AssumeRole",
      "Principal": {
        "Service": "ec2.amazonaws.com"
      },
      "Effect": "Allow",
      "Sid": ""
    }
  ]
}
EOF
}

Argument Reference

The following arguments are supported:

Attributes Reference


See the source of this document at Terraform.io

REQUEST A DEMO