Skip to content

Instantly share code, notes, and snippets.

@amcginlay
Last active February 1, 2022 09:50
Show Gist options
  • Save amcginlay/8e8e835ce8a06e29b389a0021d2dccb6 to your computer and use it in GitHub Desktop.
Save amcginlay/8e8e835ce8a06e29b389a0021d2dccb6 to your computer and use it in GitHub Desktop.
Deploying a simple PHP app in Elastic Beanstalk
#!/bin/bash
pip install awsebcli --upgrade --user
mkdir ebdemo && cd $_
git config --global init.defaultBranch main
git init
cat > ./index.php << EOF
<?php
echo gethostname() . "\n";
?>
EOF
git add .
git commit -m "v1"
eb init
eb create # FYI I had more luck using the CLB
# -------------------------------------------
eb terminate
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment