#!/usr/bin/env bash # A shell on the api host, through SSM Session Manager. Needs the # session-manager-plugin - see DEVELOPING.md. sudo works inside. set -euo pipefail source "$(dirname "$0")/lib/aws.sh" require_aws_credentials ENV_DIR="$(dirname "$0")/../envs/lance.blue" exec aws ssm start-session \ --target "$(tofu -chdir="$ENV_DIR" output -raw api_instance_id)"