Skip to main content
Gists are examples that demonstrate a concept, but are not actively maintained and may not work in your environment or current versions of Atmos without adaptations.
get-ami-id.sh264 B
View on GitHub
#!/usr/bin/env bash
#
# get-ami-id.sh — print the AMI ID of the most recent Packer build.
#
# Backs `atmos ami get-ami-id <component> -s <stack>`.

set -euo pipefail
# shellcheck source=scripts/atmos/_lib.sh
source "$(dirname "$0")/_lib.sh"

resolve_ami_id
echo