diff --git a/examples/public_private_flow_logs/README.md b/examples/public_private_flow_logs/README.md index d1c0b09..e4d1592 100644 --- a/examples/public_private_flow_logs/README.md +++ b/examples/public_private_flow_logs/README.md @@ -22,7 +22,7 @@ At this point, only cloud-watch logs are support, pending: https://github.com/aw | Name | Source | Version | |------|--------|---------| -| [vpc](#module\_vpc) | aws-ia/vpc/aws | >= 2.0.0 | +| [vpc](#module\_vpc) | ../.. | n/a | ## Resources @@ -35,7 +35,7 @@ At this point, only cloud-watch logs are support, pending: https://github.com/aw | Name | Description | Type | Default | Required | |------|-------------|------|---------|:--------:| | [kms\_key\_id](#input\_kms\_key\_id) | KMS Key ID | `string` | `null` | no | -| [vpc\_flow\_logs](#input\_vpc\_flow\_logs) | Whether or not to create VPC flow logs and which type. Options: "cloudwatch", "s3", "none". |
object({|
log_destination = optional(string)
iam_role_arn = optional(string)
kms_key_id = optional(string)
log_destination_type = string
retention_in_days = optional(number)
tags = optional(map(string))
traffic_type = optional(string)
destination_options = optional(object({
file_format = optional(string)
hive_compatible_partitions = optional(bool)
per_hour_partition = optional(bool)
}))
})
{| no | +| [vpc\_flow\_logs](#input\_vpc\_flow\_logs) | Whether or not to create VPC flow logs and which type. Options: "cloudwatch", "s3", "none". |
"kms_key_id": null,
"log_destination_type": "s3",
"retention_in_days": null
}
object({|
log_destination = optional(string)
iam_role_arn = optional(string)
kms_key_id = optional(string)
log_destination_type = string
retention_in_days = optional(number)
tags = optional(map(string))
traffic_type = optional(string)
destination_options = optional(object({
file_format = optional(string)
hive_compatible_partitions = optional(bool)
per_hour_partition = optional(bool)
}))
})
{| no | ## Outputs diff --git a/examples/public_private_flow_logs/variables.tf b/examples/public_private_flow_logs/variables.tf index b94941a..d0c1796 100644 --- a/examples/public_private_flow_logs/variables.tf +++ b/examples/public_private_flow_logs/variables.tf @@ -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 } } diff --git a/test/examples_public_private_test.go b/test/examples_public_private_test.go index 904cd4b..7d2e3ed 100644 --- a/test/examples_public_private_test.go +++ b/test/examples_public_private_test.go @@ -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",
"kms_key_id": null,
"log_destination_type": "cloud-watch-logs",
"retention_in_days": 180
}