fix awslogs 22.04
"cp /etc/fail2ban/jail.conf /etc/fail2ban/jail.local\n",
"sudo snap install amazon-ssm-agent --classic\n",
"sudo systemctl start snap.amazon-ssm-agent.amazon-ssm-agent.service\n",
- "sudo apt-get -y install curl python3 software-properties-common xz-utils bzip2 gnupg wget graphviz\n",
+ "sudo apt-get -y install curl python3 python2 software-properties-common xz-utils bzip2 gnupg wget graphviz\n",
+ "sudo ln -s /usr/bin/python2 /usr/bin/python\n",
"sudo wget -O /tmp/awslogs-agent-setup.py https://s3.amazonaws.com/aws-cloudwatch/downloads/latest/awslogs-agent-setup.py\n",
"sudo chmod 775 /tmp/awslogs-agent-setup.py\n",
"sudo mkdir -p /var/awslogs/etc/\n",
