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" {
# 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 = <<EOF
@ -89,4 +91,4 @@ Flow Logs can be imported using the `id`, e.g.
```
$ terraform import aws_flow_log.test_flow_log fl-1a2b3c4d
```
```