-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Description
After upgrading to aws provider 6.12.0, I started getting a deprecation warning from terraform.
β·
β Warning: Argument is deprecated
β
β with module.ec2["ems"].aws_instance.this[0],
β on .terraform/modules/ec2/main.tf line 43, in resource "aws_instance" "this":
β 43: resource "aws_instance" "this" {
β
β network_interface is deprecated. To specify the primary network interface,
β use primary_network_interface instead. To attach additional network
β interfaces, use the aws_network_interface_attachment resource.
β΅
It appears that starting with aws provider 6.10.0 that the aws_instance resource has deprecated the network_interface argument and replaced it primary_network_interface, which only supports a single interface, additional interfaces are to be created separately and attached using aws_network_interface_attachment.