github.com/atsaki/terraform@v0.4.3-0.20150919165407-25bba5967654/website/source/docs/providers/aws/r/iam_user.html.markdown (about) 1 --- 2 layout: "aws" 3 page_title: "AWS: aws_iam_user" 4 sidebar_current: "docs-aws-resource-iam-user" 5 description: |- 6 Provides an IAM user. 7 --- 8 9 # aws\_iam\_user 10 11 Provides an IAM user. 12 13 ## Example Usage 14 15 ``` 16 resource "aws_iam_user" "lb" { 17 name = "loadbalancer" 18 path = "/system/" 19 } 20 21 resource "aws_iam_access_key" "lb" { 22 user = "${aws_iam_user.lb.name}" 23 } 24 25 resource "aws_iam_user_policy" "lb_ro" { 26 name = "test" 27 user = "${aws_iam_user.lb.name}" 28 policy = <<EOF 29 { 30 "Version": "2012-10-17", 31 "Statement": [ 32 { 33 "Action": [ 34 "ec2:Describe*" 35 ], 36 "Effect": "Allow", 37 "Resource": "*" 38 } 39 ] 40 } 41 EOF 42 } 43 ``` 44 45 ## Argument Reference 46 47 The following arguments are supported: 48 49 * `name` - (Required) The user's name. 50 * `path` - (Optional, default "/") Path in which to create the user. 51 52 ## Attributes Reference 53 54 The following attributes are exported: 55 56 * `unique_id` - The [unique ID][1] assigned by AWS. 57 * `arn` - The ARN assigned by AWS for this user. 58 59 [1]: http://docs.aws.amazon.com/IAM/latest/UserGuide/Using_Identifiers.html#GUIDs