Skip to content

var.backup_plan_config_aurora.restore_testing_overrides optional but passed to jsondecode() making it mandatory #66

@nomad3k

Description

@nomad3k

Is there an existing issue for this?

  • I have searched the existing Issues

Current Behavior

The variable backup_plan_config_aurora has a property restore_testing_overrides which is listed as optional(str) variables.tf#315 but is then used in jsondecode() in locals.tf#15 without checking for it's nullability.

Expected Behavior

Either the variable should be mandatory or the jsondecode should check for null values.

Steps To Reproduce

using 1.3.0-rc2

Using the example triggers this issue:

  backup_plan_config_aurora = {
    "compliance_resource_types" : [
      "Aurora"
    ],
    "rules" : [
    ],
    "enable" : false,
    "selection_tag" : "NHSE-Enable-Backup"
  }

Output

Code of Conduct

  • I agree to follow this project's Code of Conduct

Sensitive Information Declaration

  • I confirm that neither PII/PID nor sensitive data are included in this form

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions