Sha256: eb85cd718c6b17085b7b065dbf6085017d64a909081b5d6fb024e4d3d9d4587f
Contents?: true
Size: 662 Bytes
Versions: 9
Compression:
Stored size: 662 Bytes
Contents
#!/bin/bash -eux if [ $# -eq 0 ]; then command=$(basename "$0") echo "Usage: $command LOG_GROUP_NAME" echo "Examples:" echo " $command aws-ec2" echo " $command ec2" exit 1 fi LOG_GROUP_NAME=$1 # shellcheck disable=SC1091 source "/opt/aws-ec2/shared/functions.sh" OS=$(os_name) if [ "$OS" != "amazonlinux2" ] && [ "$OS" != "ubuntu" ] ; then echo "Sorry, cloudwatch logging with the aws-ec2 tool is supported for amazonlinux2 and ubuntu only" exit fi export OS # used by the scripts to delegate to the right OS script /opt/aws-ec2/cloudwatch/install.sh /opt/aws-ec2/cloudwatch/configure.sh "$LOG_GROUP_NAME" /opt/aws-ec2/cloudwatch/service.sh
Version data entries
9 entries across 9 versions & 1 rubygems