Sha256: 9a575cfcf8c8079fdf2c12a4ad7acce16ee74914ae59252a924ab883d478d436

Contents?: true

Size: 679 Bytes

Versions: 1

Compression:

Stored size: 679 Bytes

Contents

#!/bin/bash -eux

if [ $# -eq 0 ]; then
  command=$(basename "$0")
  echo "Usage: $command LOG_GROUP_NAME"
  echo "Examples:"
  echo "  $command forger"
  echo "  $command ec2"
  exit 1
fi
LOG_GROUP_NAME=$1

# shellcheck disable=SC1091
source "/opt/forger/shared/functions.sh"
OS=$(os_name)
if [ "$OS" != "amzn" ] && [ "$OS" != "amazonlinux2" ] && [ "$OS" != "ubuntu" ] ; then
  echo "Sorry, cloudwatch logging with the forger tool is supported for amazonlinux2 and ubuntu only"
  exit
fi

export OS # used by the scripts to delegate to the right OS script
/opt/forger/cloudwatch/install.sh
/opt/forger/cloudwatch/configure.sh "$LOG_GROUP_NAME"
/opt/forger/cloudwatch/service.sh

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
forger-2.0.2 lib/forger/scripts/cloudwatch.sh