Skip to content

Instantly share code, notes, and snippets.

@s-en-o
Last active July 14, 2023 07:23
Show Gist options
  • Save s-en-o/08468e5f343ad52aead328db3905fc46 to your computer and use it in GitHub Desktop.
Save s-en-o/08468e5f343ad52aead328db3905fc46 to your computer and use it in GitHub Desktop.
User script for AWS Linux EC2 instances
#!/bin/bash
# install dependencies
yum groups mark install "Development Tools"
yum -y install \
bzip2-devel.x86_64 \
java-11-amazon-corretto-headless \
libffi-devel \
ncurses-devel \
openssl-devel \
python3 \
readline-devel.x86_64 \
sqlite-devel.x86_64 \
zlib-devel
# install the elastic beanstalk CLI
curl -O https://bootstrap.pypa.io/get-pip.py
/usr/bin/python3 get-pip.py
/usr/local/bin/pip3 install awsebcli
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment