Skip to content

Issue with src-dest-check #51

@JPaineCap

Description

@JPaineCap

When running the cross-az module, the below errors are produced.

The source-dest-check is defined in the ENI, but the error is in the aws_instance block which makes this weird.

Can you suggest a solution...? Copilot suggests the module maintainers need to fix something but I am not sure if this is a provider issue instead (provider assumes one ENI per instance?).

Please advise.

│ Error: modifying EC2 Instance (i-0f29923bdfa60dc87) SourceDestCheck attribute: operation error EC2: ModifyInstanceAttribute, https response error StatusCode: 400, RequestID: d0f062bd-c0ba-4670-bfc6-14d0ff93cd17, api error InvalidInstanceID: There are multiple interfaces attached to instance 'i-0f29923bdfa60dc87'. Please specify an interface ID for the operation instead.

│ with module.ext_xaz.aws_instance.member-a-instance,
│ on .terraform/modules/ext_xaz/modules/cross_az_cluster/main.tf line 148, in resource "aws_instance" "member-a-instance":
│ 148: resource "aws_instance" "member-a-instance" {



│ Error: modifying EC2 Instance (i-009df9ec3feba5c5f) SourceDestCheck attribute: operation error EC2: ModifyInstanceAttribute, https response error StatusCode: 400, RequestID: 1d81d76b-5ac0-4ed8-b832-93f3d451e349, api error InvalidInstanceID: There are multiple interfaces attached to instance 'i-009df9ec3feba5c5f'. Please specify an interface ID for the operation instead.

│ with module.ext_xaz.aws_instance.member-b-instance,
│ on .terraform/modules/ext_xaz/modules/cross_az_cluster/main.tf line 204, in resource "aws_instance" "member-b-instance":
│ 204: resource "aws_instance" "member-b-instance" {

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