Skip to content

Elastic IP deployed into wrong scope #11

@lindluni

Description

@lindluni

When running terraform apply the provider was reporting back that no Elastic IP was available with the associated tag. This was being caused by the fact that AWS now makes you choose the EIP Scope at provisioning, or wait 24 hours to update. I was able to get around this by adding the vpc = true property to the network.tf file under the aws_eip resource. The updated EIP Resource looks like this:

resource "aws_eip" "icp_ngw_eip" {
  vpc = true
  count = "${length(var.azs)}"
  tags = "${merge(
    var.default_tags,
    map("Name", "${format("${var.subnetname}-${random_id.clusterid.hex}-ngw-eip-%1d", count.index + 1)}"),
    map("kubernetes.io/cluster/${random_id.clusterid.hex}", "${random_id.clusterid.hex}")
  )}"
}

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