#!/bin/bash # Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. # SPDX-License-Identifier: MIT-0 USAGE="Usage: $(basename $0) pca_arn domain Request a certificate from ACM, i.e., Certificate ARN starting with arn:aws:acm:" usage() { echo -e "$USAGE" >&2; exit 2; } pca=$1 domain=$2 if [ -z "$domain" -o -z "$pca" ]; then usage fi aws acm request-certificate --certificate-authority-arn $pca --domain-name $domain