Skip to content

Commit

Permalink
cw logs
Browse files Browse the repository at this point in the history
  • Loading branch information
drewmullen committed Aug 22, 2022
1 parent d675013 commit f944cde
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions examples/public_private_flow_logs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ At this point, only cloud-watch logs are support, pending: https://github.com/aw

| Name | Source | Version |
|------|--------|---------|
| <a name="module_vpc"></a> [vpc](#module\_vpc) | aws-ia/vpc/aws | >= 2.0.0 |
| <a name="module_vpc"></a> [vpc](#module\_vpc) | ../.. | n/a |

## Resources

Expand All @@ -35,7 +35,7 @@ At this point, only cloud-watch logs are support, pending: https://github.com/aw
| Name | Description | Type | Default | Required |
|------|-------------|------|---------|:--------:|
| <a name="input_kms_key_id"></a> [kms\_key\_id](#input\_kms\_key\_id) | KMS Key ID | `string` | `null` | no |
| <a name="input_vpc_flow_logs"></a> [vpc\_flow\_logs](#input\_vpc\_flow\_logs) | Whether or not to create VPC flow logs and which type. Options: "cloudwatch", "s3", "none". | <pre>object({<br> log_destination = optional(string)<br> iam_role_arn = optional(string)<br> kms_key_id = optional(string)<br><br> log_destination_type = string<br> retention_in_days = optional(number)<br> tags = optional(map(string))<br> traffic_type = optional(string)<br> destination_options = optional(object({<br> file_format = optional(string)<br> hive_compatible_partitions = optional(bool)<br> per_hour_partition = optional(bool)<br> }))<br> })</pre> | <pre>{<br> "kms_key_id": null,<br> "log_destination_type": "s3",<br> "retention_in_days": null<br>}</pre> | no |
| <a name="input_vpc_flow_logs"></a> [vpc\_flow\_logs](#input\_vpc\_flow\_logs) | Whether or not to create VPC flow logs and which type. Options: "cloudwatch", "s3", "none". | <pre>object({<br> log_destination = optional(string)<br> iam_role_arn = optional(string)<br> kms_key_id = optional(string)<br><br> log_destination_type = string<br> retention_in_days = optional(number)<br> tags = optional(map(string))<br> traffic_type = optional(string)<br> destination_options = optional(object({<br> file_format = optional(string)<br> hive_compatible_partitions = optional(bool)<br> per_hour_partition = optional(bool)<br> }))<br> })</pre> | <pre>{<br> "kms_key_id": null,<br> "log_destination_type": "cloud-watch-logs",<br> "retention_in_days": 180<br>}</pre> | no |

## Outputs

Expand Down
4 changes: 2 additions & 2 deletions examples/public_private_flow_logs/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@ variable "vpc_flow_logs" {
}))
})
default = {
log_destination_type = "s3"
retention_in_days = null
log_destination_type = "cloud-watch-logs"
retention_in_days = 180
kms_key_id = null
}
}
2 changes: 1 addition & 1 deletion test/examples_public_private_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (
"github.com/likexian/gokit/assert"
)

func TestExamplesPublicPrivate(t *testing.T) {
func TestExamplesPublicPrivateCWLogs(t *testing.T) {

terraformOptions := &terraform.Options{
TerraformDir: "../examples/public_private_flow_logs",
Expand Down

0 comments on commit f944cde

Please sign in to comment.