aws_flow_docs

Update aws_flow_log docs with aws_cloudwatch_log_group resource example.
This commit is contained in:
Alex Meng 2016-09-23 11:18:17 -06:00 committed by GitHub
parent 582ba66e6c
commit 79e1c55680
1 changed files with 6 additions and 4 deletions

View File

@ -13,14 +13,16 @@ interface, subnet, or VPC. Logs are sent to a CloudWatch Log Group.
``` ```
resource "aws_flow_log" "test_flow_log" { resource "aws_flow_log" "test_flow_log" {
# log_group_name needs to exist before hand log_group_name = "${aws_cloudwatch_log_group.test_log_group.name}"
# until we have a CloudWatch Log Group Resource
log_group_name = "tf-test-log-group"
iam_role_arn = "${aws_iam_role.test_role.arn}" iam_role_arn = "${aws_iam_role.test_role.arn}"
vpc_id = "${aws_vpc.default.id}" vpc_id = "${aws_vpc.default.id}"
traffic_type = "ALL" traffic_type = "ALL"
} }
resource "aws_cloudwatch_log_group" "test_log_group" {
name = "test_log_group"
}
resource "aws_iam_role" "test_role" { resource "aws_iam_role" "test_role" {
name = "test_role" name = "test_role"
assume_role_policy = <<EOF assume_role_policy = <<EOF