grem11n / terraform-aws-vpc-peering

Terraform module to setup VPC peering connection
https://registry.terraform.io/modules/grem11n/vpc-peering/aws/latest
Apache License 2.0
126 stars 91 forks source link

[Deprecation] EC2 Classic attributes deprecated #91

Closed rblaine95 closed 2 years ago

rblaine95 commented 2 years ago

Describe the bug EC2 Classic attributes are deprecated and will be removed in a future version of the AWS Provider.

Terraform version: v1.2.9

Module version: 4.1

Deprecation warning message:

╷
│ Warning: Argument is deprecated
│ 
│   with module.vpc_peering.aws_vpc_peering_connection_options.this,
│   on .terraform/modules/vpc_peering/main.tf line 37, in resource "aws_vpc_peering_connection_options" "this":
│   37:     allow_classic_link_to_remote_vpc = var.this_link_to_peer_classic
│ 
│ With the retirement of EC2-Classic the allow_classic_link_to_remote_vpc attribute has been deprecated and will be removed in a future version.
│ 
│ (and 3 more similar warnings elsewhere)
╵

Terraform code that produces the error: Run any of the examples with AWS provider >=4.29.0

terraform {
  required_providers {
    aws = {
      source  = "hashicorp/aws"
      version = "~> 4.29"
    }
  }
  required_version = ">= 1.0"
}