aws_flow_docs
Update aws_flow_log docs with aws_cloudwatch_log_group resource example.
This commit is contained in:
parent
582ba66e6c
commit
79e1c55680
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue