From 8e23607b670005883fe3da6f0bd563fa1a07dd8f Mon Sep 17 00:00:00 2001 From: Clint Shryock Date: Mon, 22 Jun 2015 10:07:43 -0500 Subject: [PATCH] update docs to include IAM roles --- .../providers/aws/r/flow_log.html.markdown | 46 ++++++++++++++++++- 1 file changed, 45 insertions(+), 1 deletion(-) diff --git a/website/source/docs/providers/aws/r/flow_log.html.markdown b/website/source/docs/providers/aws/r/flow_log.html.markdown index 0858730f1..0de997c3d 100644 --- a/website/source/docs/providers/aws/r/flow_log.html.markdown +++ b/website/source/docs/providers/aws/r/flow_log.html.markdown @@ -13,11 +13,55 @@ interface, subnet, or VPC. Logs are sent to a CloudWatch Log Group. ``` resource "aws_flow_log" "test_flow_log" { + # log_group_name needs to exist before hand + # until we have a CloudWatch Log Group Resource log_group_name = "tf-test-log-group" - iam_role_arn = "arn:aws:iam::470663696735:role/tf-test-cloud" + iam_role_arn = "${aws_iam_role.test_role.arn}" vpc_id = "${aws_vpc.default.id}" traffic_type = "ALL" } + +resource "aws_iam_role" "test_role" { + name = "test_role" + assume_role_policy = <