2023-02-02 17:15:17 -08:00
|
|
|
# Copyright (c) HashiCorp, Inc.
|
2022-10-17 10:27:35 -04:00
|
|
|
# SPDX-License-Identifier: MPL-2.0
|
2023-02-02 17:15:17 -08:00
|
|
|
|
2020-10-12 10:26:26 -07:00
|
|
|
function connect_nc() {
|
|
|
|
|
local id=$1
|
2022-10-17 10:27:35 -04:00
|
|
|
# Note: When this command returns, the session immediately goes into a "canceling" state
|
2020-10-12 10:26:26 -07:00
|
|
|
echo "foo" | boundary connect -exec nc -target-id $id -- {{boundary.ip}} {{boundary.port}}
|
|
|
|
|
}
|