#!/bin/bash # Copyright (c) HashiCorp, Inc. # SPDX-License-Identifier: BUSL-1.1 set -euo pipefail upsert_config_entry primary ' kind = "api-gateway" name = "api-gateway" listeners = [ { name = "listener-one" port = 9999 protocol = "http" tls = { certificates = [ { kind = "inline-certificate" name = "host-consul-example" } ] } }, { name = "listener-two" port = 9998 protocol = "http" tls = { certificates = [ { kind = "inline-certificate" name = "host-consul-example" }, { kind = "inline-certificate" name = "also-host-consul-example" }, { kind = "inline-certificate" name = "other-consul-example" } ] } } ] ' upsert_config_entry primary ' kind = "inline-certificate" name = "host-consul-example" private_key = <