From d76719bbb8465dd7c9f6a97506ecb62e7a7e9450 Mon Sep 17 00:00:00 2001 From: Christopher Tiwald Date: Thu, 23 Apr 2015 10:24:45 -0400 Subject: [PATCH] Add docs for various iam_* resources. --- .../aws/r/iam_access_key.html.markdown | 1 + .../providers/aws/r/iam_group.html.markdown | 39 +++++++++++ .../aws/r/iam_group_policy.html.markdown | 55 +++++++++++++++ .../aws/r/iam_instance_profile.html.markdown | 59 ++++++++++++++++ .../providers/aws/r/iam_policy.html.markdown | 54 +++++++++++++++ .../aws/r/iam_role_policy.html.markdown | 67 +++++++++++++++++++ website/source/layouts/aws.erb | 22 +++++- 7 files changed, 296 insertions(+), 1 deletion(-) create mode 100644 website/source/docs/providers/aws/r/iam_group.html.markdown create mode 100644 website/source/docs/providers/aws/r/iam_group_policy.html.markdown create mode 100644 website/source/docs/providers/aws/r/iam_instance_profile.html.markdown create mode 100644 website/source/docs/providers/aws/r/iam_policy.html.markdown create mode 100644 website/source/docs/providers/aws/r/iam_role_policy.html.markdown diff --git a/website/source/docs/providers/aws/r/iam_access_key.html.markdown b/website/source/docs/providers/aws/r/iam_access_key.html.markdown index 042372c3c..0040c260c 100644 --- a/website/source/docs/providers/aws/r/iam_access_key.html.markdown +++ b/website/source/docs/providers/aws/r/iam_access_key.html.markdown @@ -54,6 +54,7 @@ The following arguments are supported: The following attributes are exported: * `id` - The access key ID. +* `user` - The IAM user associated with this access key. * `secret` - The secret access key. Note that this will be written to the state file. * `status` - "Active" or "Inactive". Keys are initially active, but can be made inactive by other means. diff --git a/website/source/docs/providers/aws/r/iam_group.html.markdown b/website/source/docs/providers/aws/r/iam_group.html.markdown new file mode 100644 index 000000000..458234ac7 --- /dev/null +++ b/website/source/docs/providers/aws/r/iam_group.html.markdown @@ -0,0 +1,39 @@ +--- +layout: "aws" +page_title: "AWS: aws_iam_group" +sidebar_current: "docs-aws-resource-iam-group" +description: |- + Provides an IAM group. +--- + +# aws\_iam\_group + +Provides an IAM group. + +## Example Usage + +``` +resource "aws_iam_group" "developers" { + name = "developers" + path = "/users/" +} +``` + +## Argument Reference + +The following arguments are supported: + +* `name` - (Required) The group's name. +* `path` - (Optional, default "/") Path in which to create the group. + +## Attributes Reference + +The following attributes are exported: + +* `id` - The group's ID. +* `arn` - The ARN assigned by AWS for this group. +* `name` - The group's name. +* `path` - The path of the group in IAM. +* `unique_id` - The [unique ID][1] assigned by AWS. + + [1]: http://docs.aws.amazon.com/IAM/latest/UserGuide/Using_Identifiers.html#GUIDs diff --git a/website/source/docs/providers/aws/r/iam_group_policy.html.markdown b/website/source/docs/providers/aws/r/iam_group_policy.html.markdown new file mode 100644 index 000000000..18603a662 --- /dev/null +++ b/website/source/docs/providers/aws/r/iam_group_policy.html.markdown @@ -0,0 +1,55 @@ +--- +layout: "aws" +page_title: "AWS: aws_group_policy" +sidebar_current: "docs-aws-resource-iam-group-policy" +description: |- + Provides an IAM policy attached to a group. +--- + +# aws\_iam\_group\_policy + +Provides an IAM policy attached to a group. + +## Example Usage + +``` +resource "aws_iam_group" "my_developers" { + name = "developers" + path = "/users/" +} + +resource "iam_group_policy" "my_developer_policy" { + name = "my_developer_policy" + group = "${aws_iam_group.my_developers.id}" + policy = <aws_elb - > + > aws_iam_access_key + > + aws_iam_group + + + > + aws_iam_group_policy + + + > + aws_iam_instance_profile + + + > + aws_iam_policy + + + > + aws_iam_role_policy + + > aws_iam_user