#!/usr/bin/env bash set -ex if [[ $AMI_TYPE != "al2gpu" ]]; then exit 0 fi GPG_CHECK=1 # don't do the gpg check in air-gapped regions if [ -n "$AIR_GAPPED" ]; then GPG_CHECK=0 fi tmpfile=$(mktemp) cat >$tmpfile <>/tmp/ecs/ecs.config sudo mv /tmp/ecs/ecs.config /var/lib/ecs/ecs.config