From 79e1c55680e3f8d32a665a4e4f6aa8899253a52b Mon Sep 17 00:00:00 2001 From: Alex Meng Date: Fri, 23 Sep 2016 11:18:17 -0600 Subject: [PATCH] aws_flow_docs Update aws_flow_log docs with aws_cloudwatch_log_group resource example. --- .../source/docs/providers/aws/r/flow_log.html.markdown | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) 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 d0ea141ef..498e23450 100644 --- a/website/source/docs/providers/aws/r/flow_log.html.markdown +++ b/website/source/docs/providers/aws/r/flow_log.html.markdown @@ -13,14 +13,16 @@ 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" + log_group_name = "${aws_cloudwatch_log_group.test_log_group.name}" iam_role_arn = "${aws_iam_role.test_role.arn}" vpc_id = "${aws_vpc.default.id}" traffic_type = "ALL" } +resource "aws_cloudwatch_log_group" "test_log_group" { + name = "test_log_group" +} + resource "aws_iam_role" "test_role" { name = "test_role" assume_role_policy = <