Skip to content

Tunnel is configured with incorrect IP address #6305

@danielsharvey

Description

@danielsharvey

The tunnel is configured with the incorrect IP address.

The value bastion.publicIp is referenced rather then the Elastic IP address(es).

The Pulumi docs state:

Public IP address assigned to the instance, if applicable. 
**NOTE**: If you are using an `aws.ec2.Eip` with your instance, you should 
refer to the EIP's address directly and not use `publicIp` as this field will 
change after the EIP is attached.

This results in the tunnel forwarding to the wrong IP address and does not work.

This seems to be experienced by others e.g. #5657.

The relevant code is:

function registerOutputs() {
self.registerOutputs({
_tunnel: all([
self.bastionInstance,
self.privateKeyValue,
self._privateSubnets,
self._publicSubnets,
]).apply(
([bastion, privateKeyValue, privateSubnets, publicSubnets]) => {
if (!bastion) return;
return {
ip: bastion.publicIp,
username: "ec2-user",
privateKey: privateKeyValue!,
subnets: [...privateSubnets, ...publicSubnets].map(
(s) => s.cidrBlock,
),
};
},
),
});
}

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