Last active
February 1, 2022 09:50
-
-
Save amcginlay/8e8e835ce8a06e29b389a0021d2dccb6 to your computer and use it in GitHub Desktop.
Deploying a simple PHP app in Elastic Beanstalk
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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