Sha256: aff8b9a2d59f556a5c88f14a6456db54c99b6facca83fd02cff685545d12481e

Contents?: true

Size: 547 Bytes

Versions: 7

Compression:

Stored size: 547 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

source "/opt/aws-ec2/shared/functions.sh"
os=$(os_name)
if [ "$os" != "amazonlinux2" ]; then
  echo "Sorry, enable cloudwatch logging with the aws-ec2 tool is only supported for amazonlinux2 currently"
  exit
fi

/opt/aws-ec2/cloudwatch/install.sh
/opt/aws-ec2/cloudwatch/configure.sh "$LOG_GROUP_NAME"
/opt/aws-ec2/cloudwatch/service.sh

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
aws-ec2-1.3.2 lib/aws_ec2/scripts/cloudwatch.sh
aws-ec2-1.3.1 lib/aws_ec2/scripts/cloudwatch.sh
aws-ec2-1.3.0 lib/aws_ec2/scripts/cloudwatch.sh
aws-ec2-1.2.2 lib/aws_ec2/scripts/cloudwatch.sh
aws-ec2-1.2.1 lib/aws_ec2/scripts/cloudwatch.sh
aws-ec2-1.2.0 lib/aws_ec2/scripts/cloudwatch.sh
aws-ec2-1.1.0 lib/aws_ec2/scripts/cloudwatch.sh