Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

network_interface has been deprecated for primary_network_interface #454

Open
@andrewmiskell

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

        AltStyle γ«γ‚ˆγ£γ¦ε€‰ζ›γ•γ‚ŒγŸγƒšγƒΌγ‚Έ (->γ‚ͺγƒͺγ‚ΈγƒŠγƒ«) /