Skip to content

deprecation warning in subnets outputs #697

@jnichols3

Description

@jnichols3

TL;DR

When using the latest version of the module, we get a deprecation warning:

Warning: Deprecated value used
 
   on .terraform/modules/vpc/modules/subnets/outputs.tf line 18, in output "subnets":
   18:   value       = google_compute_subnetwork.subnetwork
 
   The deprecation originates from module.vpc.module.subnets.google_compute_subnetwork.subnetwork["us-central1/stage-dashboard-usc1-sub"].enable_flow_logs
 
 Deprecated resource attribute "enable_flow_logs" used. Refer to the
 provider documentation for details.
 
 (and 3 more similar warnings elsewhere)

Expected behavior

Plan completes successfully, no deprecation warning

Observed behavior

Warning: Deprecated value used is emitted

Terraform Configuration

module "vpc" {
  source  = "terraform-google-modules/network/google"
  version = "~> 18.1.0"
...
}

Terraform Version

terraform version
Terraform v1.15.0
on darwin_arm64

Terraform Provider Versions

Providers required by configuration:
.
├── provider[registry.terraform.io/hashicorp/google] >= 4.25.0
├── provider[registry.terraform.io/hashicorp/google-beta] >= 4.25.0
├── module.peering
│   ├── provider[registry.terraform.io/hashicorp/random] >= 3.4.0
│   ├── provider[registry.terraform.io/hashicorp/null] >= 3.2.0
│   ├── provider[registry.terraform.io/hashicorp/google] >= 4.65.0, < 7.0.0
│   └── provider[registry.terraform.io/hashicorp/google-beta] >= 4.65.0, < 7.0.0
└── module.vpc
    ├── provider[registry.terraform.io/hashicorp/google] >= 4.64.0, < 8.0.0
    ├── provider[registry.terraform.io/hashicorp/google-beta] >= 4.64.0, < 8.0.0
    ├── module.routes
        └── provider[registry.terraform.io/hashicorp/google] >= 3.83.0, < 8.0.0
    ├── module.vpc
        ├── provider[registry.terraform.io/hashicorp/google-beta] >= 6.19.0, < 8.0.0
        └── provider[registry.terraform.io/hashicorp/google] >= 6.19.0, < 8.0.0
    ├── module.firewall_rules
        └── provider[registry.terraform.io/hashicorp/google] >= 3.33.0, < 8.0.0
    ├── module.subnets
        └── provider[registry.terraform.io/hashicorp/google] >= 6.28.0, < 8.0.0
    └── module.private_service_access
        ├── provider[registry.terraform.io/hashicorp/google-beta] >= 6.18.0, < 8.0.0
        └── provider[registry.terraform.io/hashicorp/google] >= 6.18.0, < 8.0.0

Additional information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions