aws-ia / terraform-aws-vpc

AWS VPC Module
https://registry.terraform.io/modules/aws-ia/vpc/aws/latest
Apache License 2.0
92 stars 98 forks source link

Experiment "module_variable_optional_attrs" is no longer available. #91

Closed fe-fo closed 1 year ago

fe-fo commented 1 year ago

Hello! Getting below error when trying to use the module from TF v1.3.2 Github Issue

module "vpc" {
  source  = "aws-ia/vpc/aws"
  version = "3.0.0"

  name       = "vpc"
  cidr_block = "10.0.0.0/20"
  az_count   = 3

  subnets = {
    public = {
      netmask                   = 24
      nat_gateway_configuration = "all_azs" # options: "single_az", "none"
    }

    private = {
      netmask                 = 24
      connect_to_public_natgw = true
    }
  }

  vpc_flow_logs = {
    log_destination_type = "cloud-watch-logs"
    retention_in_days    = 180
    traffic_type         = "REJECT"
  }
}

image

drewmullen commented 1 year ago

This will be fixed tomorrow. iirc @pablo19sc has a code change ready to resolve

Thank you for reporting

inas17 commented 1 year ago

Same issue on Azurerm backend: │ Error: Experiment has concluded │ │ on .terraform/modules/key-vault/versions.tf line 2, in terraform: │ 2: experiments = [module_variable_optional_attrs] │ │ Experiment "module_variable_optional_attrs" is no longer available. The final feature corresponding │ to this experiment differs from the experimental form and is available in the Terraform language from │ Terraform v1.3.0 onwards.

pablo19sc commented 1 year ago

Hi! We have released a new version of the VPC Module (v3.0.1) today that solves this issue. The terraform version required now is > 1.3.0