Skip to content

enabled_cloudwatch_logs_exports description is incorrect #36

@razorsedge

Description

@razorsedge

Describe the Bug

The input variable enabled_cloudwatch_logs_exports description is incorrect compared to the the Terraform AWS provider version 3.47.0. Resource: aws_docdb_cluster enabled_cloudwatch_logs_exports states:

enabled_cloudwatch_logs_exports - (Optional) List of log types to export to cloudwatch. If omitted, no logs will be exported. The following log types are supported: audit, profiler.

The resulting error is:

Error: expected enabled_cloudwatch_logs_exports.1 to be one of [audit profiler], got error

  on .terraform/modules/documentdb_cluster/main.tf line 63, in resource "aws_docdb_cluster" "default":
  63:   enabled_cloudwatch_logs_exports = var.enabled_cloudwatch_logs_exports

Expected Behavior

Variable documentation should not contradict the AWS provider's capabilities.

Steps to Reproduce

Steps to reproduce the behavior:

  1. Set module input to enabled_cloudwatch_logs_exports = ["audit", "error", "general", "slowquery"]
  2. Run 'terraform plan'
  3. See error

Environment (please complete the following information):

Anything that will help us triage the bug will help. Here are some ideas:

  • Module Version: 0.13.0
$ terraform version
Terraform v0.13.7
+ provider registry.terraform.io/hashicorp/aws v3.46.0
+ provider registry.terraform.io/hashicorp/external v2.1.0
+ provider registry.terraform.io/hashicorp/local v2.1.0
+ provider registry.terraform.io/hashicorp/null v3.1.0
+ provider registry.terraform.io/hashicorp/random v3.1.0
+ provider registry.terraform.io/hashicorp/template v2.2.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug🐛 An issue with the system

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions