def construct_console_connect_url(instance_id: str, region: str = "us-east-1") -> str:
    """Assemble the AWS console instance connect url with the current instance id and region."""
    instance_connect_url = f"https://console.aws.amazon.com/ec2/v2/home?region={region}#ConnectToInstance:instanceId={instance_id}"  # noqa: E501
    return instance_connect_url